diff options
Diffstat (limited to 'Source/WebCore/css/html.css')
-rw-r--r-- | Source/WebCore/css/html.css | 512 |
1 files changed, 222 insertions, 290 deletions
diff --git a/Source/WebCore/css/html.css b/Source/WebCore/css/html.css index d27beb8ad..35610fd93 100644 --- a/Source/WebCore/css/html.css +++ b/Source/WebCore/css/html.css @@ -2,7 +2,7 @@ * The default style sheet used to render HTML. * * Copyright (C) 2000 Lars Knoll (knoll@kde.org) - * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. + * Copyright (C) 2003-2011, 2014 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -24,46 +24,20 @@ @namespace "http://www.w3.org/1999/xhtml"; html { - display: block + display: block; } /* children of the <head> element all have display:none */ -head { - display: none -} - -meta { - display: none -} - -title { - display: none -} - -link { - display: none -} - -style { - display: none -} - -script { - display: none +head, link, meta, script, style, title { + display: none; } /* generic block-level elements */ body { display: block; - margin: 8px -} - -#if defined(ENABLE_IFRAME_SEAMLESS) && ENABLE_IFRAME_SEAMLESS -body:-webkit-seamless-document { - margin: 0px; + margin: 8px; } -#endif p { display: block; @@ -73,25 +47,12 @@ p { -webkit-margin-end: 0; } -div { - display: block -} - -layer { - display: block -} - -article, aside, footer, header, hgroup, main, nav, section { - display: block +address, article, aside, div, footer, header, hgroup, layer, main, nav, section { + display: block; } marquee { display: inline-block; - overflow: -webkit-marquee -} - -address { - display: block } blockquote { @@ -103,7 +64,7 @@ blockquote { } figcaption { - display: block + display: block; } figure { @@ -115,21 +76,21 @@ figure { } q { - display: inline + display: inline; } -q:before { +q::before { content: open-quote; } -q:after { +q::after { content: close-quote; } center { display: block; /* special centering to be able to emulate the html4/netscape behaviour */ - text-align: -webkit-center + text-align: -webkit-center; } hr { @@ -139,15 +100,14 @@ hr { -webkit-margin-start: auto; -webkit-margin-end: auto; border-style: inset; - border-width: 1px -} - -map { - display: inline + border-width: 1px; } video { object-fit: contain; +#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS + -webkit-tap-highlight-color: transparent; +#endif } /* heading elements */ @@ -159,34 +119,34 @@ h1 { -webkit-margin-after: 0.67em; -webkit-margin-start: 0; -webkit-margin-end: 0; - font-weight: bold + font-weight: bold; } -:-webkit-any(article,aside,nav,section) h1 { +:matches(article, aside, nav, section) h1 { font-size: 1.5em; -webkit-margin-before: 0.83__qem; -webkit-margin-after: 0.83em; } -:-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1 { +:matches(article, aside, nav, section) :matches(article, aside, nav, section) h1 { font-size: 1.17em; -webkit-margin-before: 1__qem; -webkit-margin-after: 1em; } -:-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1 { +:matches(article, aside, nav, section) :matches(article, aside, nav, section) :matches(article, aside, nav, section) h1 { font-size: 1.00em; -webkit-margin-before: 1.33__qem; -webkit-margin-after: 1.33em; } -:-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1 { +:matches(article, aside, nav, section) :matches(article, aside, nav, section) :matches(article, aside, nav, section) :matches(article, aside, nav, section) h1 { font-size: .83em; -webkit-margin-before: 1.67__qem; -webkit-margin-after: 1.67em; } -:-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1 { +:matches(article, aside, nav, section) :matches(article, aside, nav, section) :matches(article, aside, nav, section) :matches(article, aside, nav, section) :matches(article, aside, nav, section) h1 { font-size: .67em; -webkit-margin-before: 2.33__qem; -webkit-margin-after: 2.33em; @@ -199,7 +159,7 @@ h2 { -webkit-margin-after: 0.83em; -webkit-margin-start: 0; -webkit-margin-end: 0; - font-weight: bold + font-weight: bold; } h3 { @@ -209,7 +169,7 @@ h3 { -webkit-margin-after: 1em; -webkit-margin-start: 0; -webkit-margin-end: 0; - font-weight: bold + font-weight: bold; } h4 { @@ -218,7 +178,7 @@ h4 { -webkit-margin-after: 1.33em; -webkit-margin-start: 0; -webkit-margin-end: 0; - font-weight: bold + font-weight: bold; } h5 { @@ -228,7 +188,7 @@ h5 { -webkit-margin-after: 1.67em; -webkit-margin-start: 0; -webkit-margin-end: 0; - font-weight: bold + font-weight: bold; } h6 { @@ -238,7 +198,7 @@ h6 { -webkit-margin-after: 2.33em; -webkit-margin-start: 0; -webkit-margin-end: 0; - font-weight: bold + font-weight: bold; } /* tables */ @@ -247,25 +207,25 @@ table { display: table; border-collapse: separate; border-spacing: 2px; - border-color: gray + border-color: gray; } thead { display: table-header-group; vertical-align: middle; - border-color: inherit + border-color: inherit; } tbody { display: table-row-group; vertical-align: middle; - border-color: inherit + border-color: inherit; } tfoot { display: table-footer-group; vertical-align: middle; - border-color: inherit + border-color: inherit; } /* for tables without table section elements (can happen with XHTML or dynamically created tables) */ @@ -274,31 +234,31 @@ table > tr { } col { - display: table-column + display: table-column; } colgroup { - display: table-column-group + display: table-column-group; } tr { display: table-row; vertical-align: inherit; - border-color: inherit + border-color: inherit; } td, th { display: table-cell; - vertical-align: inherit + vertical-align: inherit; } th { - font-weight: bold + font-weight: bold; } caption { display: table-caption; - text-align: -webkit-center + text-align: -webkit-center; } /* lists */ @@ -310,7 +270,7 @@ ul, menu, dir { -webkit-margin-after: 1em; -webkit-margin-start: 0; -webkit-margin-end: 0; - -webkit-padding-start: 40px + -webkit-padding-start: 40px; } ol { @@ -320,7 +280,7 @@ ol { -webkit-margin-after: 1em; -webkit-margin-start: 0; -webkit-margin-end: 0; - -webkit-padding-start: 40px + -webkit-padding-start: 40px; } li { @@ -329,16 +289,16 @@ li { } ul ul, ol ul { - list-style-type: circle + list-style-type: circle; } ol ol ul, ol ul ul, ul ol ul, ul ul ul { - list-style-type: square + list-style-type: square; } dd { display: block; - -webkit-margin-start: 40px + -webkit-margin-start: 40px; } dl { @@ -350,12 +310,12 @@ dl { } dt { - display: block + display: block; } ol ul, ul ol, ul ul, ol ol { -webkit-margin-before: 0; - -webkit-margin-after: 0 + -webkit-margin-after: 0; } /* form elements */ @@ -373,7 +333,7 @@ legend { display: block; -webkit-padding-start: 2px; -webkit-padding-end: 2px; - border: none + border: none; } fieldset { @@ -393,11 +353,11 @@ button { } /* Form controls don't go vertical. */ -input, textarea, keygen, select, button, isindex, meter, progress { +input, textarea, keygen, select, button, meter, progress { -webkit-writing-mode: horizontal-tb !important; } -input, textarea, keygen, select, button, isindex { +input, textarea, keygen, select, button { margin: 0__qem; #if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) font: -webkit-small-control; @@ -413,22 +373,16 @@ input, textarea, keygen, select, button, isindex { text-align: start; } -input { - line-height: normal !important; -} - input[type="hidden"] { - display: none + display: none; } -input, -input[type="password"], -input[type="search"], #if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS textarea, input[type="range"], #endif -isindex { +input, +input:matches([type="password"], [type="search"]) { -webkit-appearance: textfield; background-color: white; #if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS @@ -451,56 +405,46 @@ input[type="search"] { } input::-webkit-textfield-decoration-container { - display: -webkit-flex; - -webkit-align-items: center; - -webkit-user-modify: read-only !important; + display: flex; + align-items: center; content: none !important; } -input[type="search"]::-webkit-textfield-decoration-container { - direction: ltr; -} - input::-webkit-clear-button { -webkit-appearance: searchfield-cancel-button; display: inline-block; - -webkit-flex: none; - -webkit-user-modify: read-only !important; + flex: none; margin-left: 2px; } input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: searchfield-cancel-button; display: block; - -webkit-flex: none; - -webkit-user-modify: read-only !important; - -webkit-align-self: flex-start; + flex: none; + align-self: flex-start; margin: auto 0; } input[type="search"]::-webkit-search-decoration { -webkit-appearance: searchfield-decoration; display: block; - -webkit-flex: none; - -webkit-user-modify: read-only !important; - -webkit-align-self: flex-start; + flex: none; + align-self: flex-start; margin: auto 0; } input[type="search"]::-webkit-search-results-decoration { -webkit-appearance: searchfield-results-decoration; display: block; - -webkit-flex: none; - -webkit-user-modify: read-only !important; - -webkit-align-self: flex-start; + flex: none; + align-self: flex-start; margin: auto 0; } input[type="search"]::-webkit-search-results-button { -webkit-appearance: searchfield-results-button; display: block; - -webkit-flex: none; - -webkit-user-modify: read-only !important; + flex: none; } #if defined(ENABLE_DATALIST_ELEMENT) && ENABLE_DATALIST_ELEMENT @@ -511,7 +455,7 @@ datalist { #if defined(ENABLE_INPUT_TYPE_DATE) && ENABLE_INPUT_TYPE_DATE input[type="date"] { - -webkit-align-items: center; + align-items: center; -webkit-appearance: menulist-button; display: -webkit-inline-flex; overflow: hidden; @@ -522,7 +466,7 @@ input[type="date"] { #endif #if defined(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) && ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE input[type="datetime"] { - -webkit-align-items: center; + align-items: center; -webkit-appearance: menulist-button; display: -webkit-inline-flex; overflow: hidden; @@ -533,7 +477,7 @@ input[type="datetime"] { #endif #if defined(ENABLE_INPUT_TYPE_DATETIMELOCAL) && ENABLE_INPUT_TYPE_DATETIMELOCAL input[type="datetime-local"] { - -webkit-align-items: center; + align-items: center; -webkit-appearance: menulist-button; display: -webkit-inline-flex; overflow: hidden; @@ -544,7 +488,7 @@ input[type="datetime-local"] { #endif #if defined(ENABLE_INPUT_TYPE_MONTH) && ENABLE_INPUT_TYPE_MONTH input[type="month"] { - -webkit-align-items: center; + align-items: center; -webkit-appearance: menulist-button; display: -webkit-inline-flex; overflow: hidden; @@ -555,7 +499,7 @@ input[type="month"] { #endif #if defined(ENABLE_INPUT_TYPE_TIME) && ENABLE_INPUT_TYPE_TIME input[type="time"] { - -webkit-align-items: center; + align-items: center; -webkit-appearance: menulist-button; display: -webkit-inline-flex; overflow: hidden; @@ -567,7 +511,7 @@ input[type="time"] { #if defined(ENABLE_INPUT_TYPE_WEEK) && ENABLE_INPUT_TYPE_WEEK #if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) input[type="week"] { - -webkit-align-items: center; + align-items: center; -webkit-appearance: menulist-button; display: -webkit-inline-flex; overflow: hidden; @@ -576,12 +520,14 @@ input[type="week"] { #endif #endif -#if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) input::-webkit-date-and-time-value { +#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS + margin-right: 18px; +#else margin: 1px 24px 1px 4px; white-space: pre; -} #endif +} input::-webkit-inner-spin-button { -webkit-appearance: inner-spin-button; @@ -593,22 +539,57 @@ input::-webkit-inner-spin-button { * button in layout(). */ height: 1.5em; vertical-align: top; - -webkit-flex: none; + flex: none; -webkit-user-select: none; - -webkit-user-modify: read-only !important; } -#if defined(ENABLE_INPUT_SPEECH) && ENABLE_INPUT_SPEECH -input::-webkit-input-speech-button { - -webkit-appearance: -webkit-input-speech-button; - display: block; - vertical-align: top; - -webkit-flex: none; - -webkit-user-modify: read-only !important; - -webkit-align-self: flex-start; - margin: auto 0; +input::-webkit-credentials-auto-fill-button { + -webkit-mask-image: -webkit-image-set(url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAMCAYAAAC9QufkAAAAAXNSR0IB2cksfwAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAAsTAAALEwEAmpwYAAADyWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzE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YEgTfhEWAPTM88VV4ozDP9HEyyBijHLdKQ4l2AR+YAGBMNhcFJVgETU8+xqIXCVXNtxm9cdJyU58VVhUKe/khwB+55XaeYqDC/zdoUtbzWFDPj7fQCLFjB+Vf4xaA2SvkK65iumLvwJNLkOFL79xJXfQhwlQTjsnu61r+2fEs/b4ZbzrEPMzEAAAAASUVORK5CYII=") 2x); + -webkit-mask-size: 15px 12px; + width: 15px; + height: 12px; + margin-left: 3px; + margin-right: 2px; + background-color: black; + flex: none; + -webkit-user-select: none; +} + +input::-webkit-credentials-auto-fill-button:hover { + background-color: rgb(0, 122, 255); +} + +input::-webkit-credentials-auto-fill-button:active { + background-color: rgb(0, 60, 219); +} + +input::-webkit-contacts-auto-fill-button { + -webkit-mask-image: -webkit-image-set(url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAMCAYAAABm+U3GAAAAAXNSR0IArs4c6QAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAAsTAAALEwEAmpwYAAADzWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIgogICAgICAgICAgICB4bWxuczpleGlmPSJodHRwOi8vbnMuYWRvYmUuY29tL2V4aWYvMS4wLyI+CiAgICAgICAgIDx4bXA6TW9kaWZ5RGF0ZT4yM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ml0PgogICAgICAgICA8dGlmZjpYUmVzb2x1dGlvbj43MjwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+NDQ8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+MjQ8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KZQbeMQAAAZxJREFUWMPNlrFKA0EQhhMUBVErCy0ECxFUECzEWt9ALNMbDkv1AQSLgEhEEG0sBAsbEYKFj6AIVtoJQTClBALRmBjXf2AP1mNvM3vZizvwwR3szX0sszObyfBjFhyBV1AFJbAGBrkJhBB/npPAiT4QgBb9R8MbmPFJ+DhGVOXKF+F+UGcI130RHmbIhoz4UhJNhmxL1roXwmWG8IsvJTEEnhnCj77s8LRFDU9aCF+CL5BnSuZBQ35njCyoMGQrci1XWD0XQQfZQFnb5JTeBUP43LKGtyPfB4adVdftcP5D7erDIPsJRm0PHWJXyfEDchHZHGgra/a4XYLiwSB8l/QugSgoedqhtEa2YNPWKA4MwvvdXH400qdxsjbCEzFlUQNj3d7WDBtSTDI4KAbAtyZhg9MdGMKU4ySSm96zSYXnDSUx5eI+LKWLsnUd6mQ7CdPkWgAb4MkgfA/Wwfh/TbplOVFqFlNOvcyfgaVeCM+B6wSScdyAxbSEN+VsF46hg7rlWnhVThqREpR7xaXwbYqyISWXwtUeCL+7Ev4FRky1YsGhhMUAAAAASUVORK5CYII=") 2x); + -webkit-mask-size: 22px 12px; + width: 22px; + height: 12px; + margin-left: 3px; + margin-right: 2px; + background-color: black; + flex: none; + -webkit-user-select: none; +} + +input::-webkit-contacts-auto-fill-button:hover { + background-color: rgb(0, 122, 255); +} + +input::-webkit-contacts-auto-fill-button:active { + background-color: rgb(0, 60, 219); +} + +input::-webkit-caps-lock-indicator { + -webkit-appearance: caps-lock-indicator; + content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17"><path fill="black" fill-opacity="0.4" d="M12.5 0.5A 4 4 0 0 1 16.5 4.5L 16.5 12.5A 4 4 0 0 1 12.5 16.5L 4.5 16.5A 4 4 0 0 1 0.5 12.5L 0.5 4.5A 4 4 0 0 1 4.5 0.5L 12.5 0.5M 8.5 2L 4 7L 6.25 7L 6.25 10.25L 10.75 10.25L 10.75 7L 13 7L 8.5 2M 10.75 12L 6.25 12L 6.25 14.25L 10.75 14.25L 10.75 12"/></svg>'); + align-self: stretch; + flex: none; + -webkit-user-select: none; } -#endif keygen, select { border-radius: 5px; @@ -629,7 +610,7 @@ textarea { -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; #endif - -webkit-flex-direction: column; + flex-direction: column; resize: auto; cursor: auto; padding: 2px; @@ -637,25 +618,23 @@ textarea { word-wrap: break-word; } -::-webkit-input-placeholder { +::placeholder { -webkit-text-security: none; color: darkGray; - display: block !important; pointer-events: none !important; } -input::-webkit-input-placeholder, isindex::-webkit-input-placeholder { +input::placeholder { white-space: pre; word-wrap: normal; overflow: hidden; - -webkit-user-modify: read-only !important; } input[type="password"] { -webkit-text-security: disc !important; } -input[type="hidden"], input[type="image"], input[type="file"] { +input:matches([type="hidden"], [type="image"], [type="file"]) { -webkit-appearance: initial; padding: initial; background-color: initial; @@ -663,7 +642,7 @@ input[type="hidden"], input[type="image"], input[type="file"] { } input[type="file"] { - -webkit-align-items: baseline; + align-items: baseline; color: inherit; text-align: start !important; } @@ -674,11 +653,11 @@ input:-webkit-autofill { #else background-color: #FAFFBD !important; #endif - background-image:none !important; + background-image: none !important; color: #000000 !important; } -input[type="radio"], input[type="checkbox"] { +input:matches([type="radio"], [type="checkbox"]) { margin: 3px 2px; #if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS border: 1px solid #4c4c4c; @@ -690,21 +669,20 @@ input[type="radio"], input[type="checkbox"] { #endif } -input[type="button"], input[type="submit"], input[type="reset"] { +input:matches([type="button"], [type="submit"], [type="reset"]) { -webkit-appearance: push-button; - white-space: pre + white-space: pre; } input[type="file"]::-webkit-file-upload-button { -webkit-appearance: push-button; - -webkit-user-modify: read-only !important; white-space: nowrap; margin: 0; font-size: inherit; } -input[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button, button { - -webkit-align-items: flex-start; +input:matches([type="button"], [type="submit"], [type="reset"]), input[type="file"]::-webkit-file-upload-button, button { + align-items: flex-start; text-align: center; cursor: default; color: ButtonText; @@ -719,7 +697,11 @@ input[type="button"], input[type="submit"], input[type="reset"], input[type="fil background-color: rgba(255, 255, 255, 0.01); font: 11px Helvetica; #endif - box-sizing: border-box + box-sizing: border-box; +} + +input:matches([type="button"], [type="submit"], [type="reset"]):active, input[type="file"]::-webkit-file-upload-button:active, button:active { + color: ActiveButtonText; } input[type="range"] { @@ -731,26 +713,23 @@ input[type="range"] { } input[type="range"]::-webkit-slider-container, input[type="range"]::-webkit-media-slider-container { - -webkit-flex: 1; + flex: 1; box-sizing: border-box; - -webkit-user-modify: read-only !important; - display: -webkit-flex; - -webkit-align-contents: center; + display: flex; + align-contents: center; } input[type="range"]::-webkit-slider-runnable-track { - -webkit-flex: 1; - -webkit-align-self: center; + flex: 1; + align-self: center; box-sizing: border-box; - -webkit-user-modify: read-only !important; display: block; } input[type="range"]::-webkit-slider-thumb, input[type="range"]::-webkit-media-slider-thumb { -webkit-appearance: sliderthumb-horizontal; box-sizing: border-box; - -webkit-user-modify: read-only !important; display: block; #if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS background-color: white; @@ -772,30 +751,31 @@ input[readonly], textarea[readonly] { border-color: rgb(188, 188, 188); } -textarea::-webkit-input-placeholder { +textarea::placeholder { text-indent: 2px; } #endif -input[type="button"]:disabled, input[type="submit"]:disabled, input[type="reset"]:disabled, +input:matches([type="button"], [type="submit"], [type="reset"]):disabled, input[type="file"]:disabled::-webkit-file-upload-button, button:disabled, select:disabled, keygen:disabled, optgroup:disabled, option:disabled, select[disabled]>option { - color: GrayText + color: GrayText; } #if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) -input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, input[type="file"]:active::-webkit-file-upload-button, button:active { - border-style: inset +input:matches([type="button"], [type="submit"], [type="reset"]):active, input[type="file"]:active::-webkit-file-upload-button, button:active { + border-style: inset; } -input[type="button"]:active:disabled, input[type="submit"]:active:disabled, input[type="reset"]:active:disabled, input[type="file"]:active:disabled::-webkit-file-upload-button, button:active:disabled { - border-style: outset +input:matches([type="button"], [type="submit"], [type="reset"]):active:disabled, +input[type="file"]:active:disabled::-webkit-file-upload-button, button:active:disabled { + border-style: outset; } #endif area, param { - display: none + display: none; } input[type="checkbox"] { @@ -815,7 +795,7 @@ input[type="checkbox"] { #if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS input[type="radio"] { -webkit-appearance: radio; - border-radius: 8px; + border-radius: 50%; width: 16px; height: 16px; padding: 0px; @@ -823,14 +803,14 @@ input[type="radio"] { background-color: rgba(255, 255, 255, 0.01); } -input[type="checkbox"]:checked, input[type="radio"]:checked { - background:rgba(0, 0, 0, 0.8); - border-color:rgba(255, 255, 255, 0.0); +input:matches([type="checkbox"], [type="radio"]):checked { + background: rgba(0, 0, 0, 0.8); + border-color: rgba(255, 255, 255, 0.0); } -input[type="checkbox"]:checked:disabled, input[type="radio"]:checked:disabled { - opacity:0.4; - background:rgba(0, 0, 0, 0.8); +input:matches([type="checkbox"], [type="radio"]):checked:disabled { + opacity: 0.4; + background: rgba(0, 0, 0, 0.8); } #endif @@ -856,19 +836,17 @@ input[type="color"] { } input[type="color"]::-webkit-color-swatch-wrapper { - display:-webkit-flex; + display: flex; padding: 4px 2px; box-sizing: border-box; - -webkit-user-modify: read-only !important; width: 100%; - height: 100% + height: 100%; } input[type="color"]::-webkit-color-swatch { background-color: #000000; border: 1px solid #777777; - -webkit-flex: 1; - -webkit-user-modify: read-only !important; + flex: 1; } #if defined(ENABLE_DATALIST_ELEMENT) && ENABLE_DATALIST_ELEMENT @@ -903,34 +881,31 @@ select { /* We want to be as close to background:transparent as possible without actually being transparent */ background-color: rgba(255, 255, 255, 0.01); font: 11px Helvetica; - padding: 0 0.5em 0 0.5em; + padding: 0 0.4em 0 0.4em; #else -webkit-appearance: menulist; border: 1px solid; color: black; background-color: white; #endif - -webkit-align-items: center; + align-items: center; white-space: pre; -webkit-rtl-ordering: logical; cursor: default; } #if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) -select[size], -select[multiple], -select[size][multiple] { +select:matches([size], [multiple], [size][multiple]) { -webkit-appearance: listbox; - -webkit-align-items: flex-start; + align-items: flex-start; border: 1px inset gray; border-radius: initial; white-space: initial; } -select[size="0"], -select[size="1"] { +select:matches([size="0"], [size="1"]) { -webkit-appearance: menulist; - -webkit-align-items: center; + align-items: center; border: 1px solid; border-radius: 5px; white-space: pre; @@ -959,12 +934,11 @@ output { line-height: 0; margin: 0; -webkit-text-security: none; - -webkit-transition: opacity 05.5s ease; - -webkit-user-modify: read-only !important; + transition: opacity 05.5s ease; } ::-webkit-validation-bubble-message { - display: -webkit-flex; + display: flex; position: relative; top: -4px; font: message-box; @@ -978,20 +952,17 @@ output { -webkit-box-shadow: 4px 4px 4px rgba(100,100,100,0.6), inset -2px -2px 1px #d0c4c4, inset 2px 2px 1px white; - -webkit-user-modify: read-only !important; line-height: normal; white-space: normal; z-index: 2147483644; } ::-webkit-validation-bubble-text-block { - -webkit-flex: 1; - -webkit-user-modify: read-only !important; + flex: 1; } ::-webkit-validation-bubble-heading { font-weight: bold; - -webkit-user-modify: read-only !important; } ::-webkit-validation-bubble-arrow { @@ -1006,8 +977,7 @@ output { border-color: #400; box-shadow: inset 2px 2px 1px white; -webkit-transform-origin: 0 0; - -webkit-transform: rotate(45deg); - -webkit-user-modify: read-only !important; + transform: rotate(45deg); z-index: 2147483645; } @@ -1015,7 +985,6 @@ output { display: block; overflow: hidden; height: 16px; - -webkit-user-modify: read-only !important; } #if defined(ENABLE_METER_ELEMENT) && ENABLE_METER_ELEMENT @@ -1030,45 +999,8 @@ meter { vertical-align: -0.2em; } -meter::-webkit-meter-inner-element { - -webkit-appearance: inherit; - box-sizing: inherit; - -webkit-user-modify: read-only !important; - height: 100%; - width: 100%; -} - -meter::-webkit-meter-bar { - background: -webkit-gradient(linear, left top, left bottom, from(#ddd), to(#ddd), color-stop(0.20, #eee), color-stop(0.45, #ccc), color-stop(0.55, #ccc)); - height: 100%; - width: 100%; - -webkit-user-modify: read-only !important; - box-sizing: border-box; -} - -meter::-webkit-meter-optimum-value { - background: -webkit-gradient(linear, left top, left bottom, from(#ad7), to(#ad7), color-stop(0.20, #cea), color-stop(0.45, #7a3), color-stop(0.55, #7a3)); - height: 100%; - -webkit-user-modify: read-only !important; - box-sizing: border-box; -} - -meter::-webkit-meter-suboptimum-value { - background: -webkit-gradient(linear, left top, left bottom, from(#fe7), to(#fe7), color-stop(0.20, #ffc), color-stop(0.45, #db3), color-stop(0.55, #db3)); - height: 100%; - -webkit-user-modify: read-only !important; - box-sizing: border-box; -} - -meter::-webkit-meter-even-less-good-value { - background: -webkit-gradient(linear, left top, left bottom, from(#f77), to(#f77), color-stop(0.20, #fcc), color-stop(0.45, #d44), color-stop(0.55, #d44)); - height: 100%; - -webkit-user-modify: read-only !important; - box-sizing: border-box; -} #endif -#if defined(ENABLE_PROGRESS_ELEMENT) && ENABLE_PROGRESS_ELEMENT /* progress */ progress { @@ -1083,7 +1015,6 @@ progress { progress::-webkit-progress-inner-element { -webkit-appearance: inherit; box-sizing: inherit; - -webkit-user-modify: read-only; height: 100%; width: 100%; } @@ -1092,7 +1023,6 @@ progress::-webkit-progress-bar { background-color: gray; height: 100%; width: 100%; - -webkit-user-modify: read-only !important; box-sizing: border-box; } @@ -1100,107 +1030,93 @@ progress::-webkit-progress-value { background-color: green; height: 100%; width: 50%; /* should be removed later */ - -webkit-user-modify: read-only !important; box-sizing: border-box; } -#endif /* inline elements */ u, ins { - text-decoration: underline + text-decoration: underline; } strong, b { - font-weight: bold + font-weight: bold; } i, cite, em, var, address, dfn { - font-style: italic + font-style: italic; } tt, code, kbd, samp { - font-family: monospace + font-family: monospace; } pre, xmp, plaintext, listing { display: block; font-family: monospace; white-space: pre; - margin: 1__qem 0 + margin: 1__qem 0; } mark { background-color: yellow; - color: black + color: black; } big { - font-size: larger + font-size: larger; } small { - font-size: smaller + font-size: smaller; } s, strike, del { - text-decoration: line-through + text-decoration: line-through; } sub { vertical-align: sub; - font-size: smaller + font-size: smaller; } sup { vertical-align: super; - font-size: smaller + font-size: smaller; } nobr { - white-space: nowrap + white-space: nowrap; } /* states */ -:focus { - outline: auto 5px -webkit-focus-ring-color +:focus { + outline: auto 5px -webkit-focus-ring-color; } /* Read-only text fields do not show a focus ring but do still receive focus */ -html:focus, body:focus, input[readonly]:focus { - outline: none +html:focus, body:focus, input[readonly]:focus, applet:focus, embed:focus, iframe:focus, object:focus { + outline: none; } -applet:focus, embed:focus, iframe:focus, object:focus { - outline: none -} - -input:focus, textarea:focus, isindex:focus, keygen:focus, select:focus { - outline-offset: -2px +input:focus, textarea:focus, keygen:focus, select:focus { + outline-offset: -2px; } -input[type="button"]:focus, -input[type="checkbox"]:focus, -input[type="file"]:focus, -input[type="hidden"]:focus, -input[type="image"]:focus, -input[type="radio"]:focus, -input[type="reset"]:focus, -input[type="search"]:focus, -input[type="submit"]:focus, +input:matches([type="button"], [type="checkbox"], [type="file"], [type="hidden"], [type="image"], [type="radio"], [type="reset"], [type="search"], [type="submit"]):focus, input[type="file"]:focus::-webkit-file-upload-button { - outline-offset: 0 + outline-offset: 0; } - -a:-webkit-any-link { + +a:any-link { color: -webkit-link; text-decoration: underline; cursor: auto; } -a:-webkit-any-link:active { - color: -webkit-activelink +a:any-link:active { + color: -webkit-activelink; } /* HTML5 ruby elements */ @@ -1216,7 +1132,7 @@ rt { ruby > rt { display: block; - font-size: 50%; + font-size: -webkit-ruby-text; text-align: start; } @@ -1227,31 +1143,27 @@ ruby > rp { /* other elements */ noframes { - display: none + display: none; } frameset, frame { - display: block + display: block; } frameset { - border-color: inherit -} - -iframe:not([seamless]) { - border: 2px inset + border-color: inherit; } -iframe[seamless] { - display: block +iframe { + border: 2px inset; } details { - display: block + display: block; } summary { - display: block + display: block; } summary::-webkit-details-marker { @@ -1261,11 +1173,9 @@ summary::-webkit-details-marker { margin-right: 0.4em; } -#if defined(ENABLE_TEMPLATE_ELEMENT) && ENABLE_TEMPLATE_ELEMENT template { - display: none + display: none; } -#endif bdi, output { unicode-bidi: -webkit-isolate; @@ -1275,6 +1185,28 @@ bdo { unicode-bidi: bidi-override; } +slot { + display: contents; +} + +#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS +applet, embed, object, img { + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); +} +:any-link img { + -webkit-tap-highlight-color: inherit; +} +#endif + +#if defined(ENABLE_ATTACHMENT_ELEMENT) && ENABLE_ATTACHMENT_ELEMENT +attachment { + -webkit-appearance: attachment; +#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS + color: -apple-system-blue; +#endif +} +#endif + /* page */ @page { |