<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[176711] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/176711">176711</a></dd>
<dt>Author</dt> <dd>benjamin@webkit.org</dd>
<dt>Date</dt> <dd>2014-12-02 22:36:21 -0800 (Tue, 02 Dec 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Little cleanup of the default stylesheet
https://bugs.webkit.org/show_bug.cgi?id=139168

Reviewed by Antti Koivisto.

Source/WebCore:

The default stylesheet has a lot of historical junk that need cleaning. This patch addresses
only the bits that do not change behaviors and have positive perf and readability impact.

I have limited :matches() to attributes for now. The idea is to only target
simple selectors that are not used for filtering by the collectors.
We should eventually clean up more cases, one thing at a time.

Tests: fast/css/map-tag-default-display.html
       fast/selectors/map-tag-default-display.html

* css/html.css:
(map): Deleted.
map was explicitely setting its display to inline. Remove that since it is the default.

(head): Deleted.
(meta): Deleted.
(title): Deleted.
(link): Deleted.
(style): Deleted.
(script): Deleted.
(div): Deleted.
(layer): Deleted.
(article, aside, footer, header, hgroup, main, nav, section): Deleted.
(address): Deleted.
(head, link, meta, script, style, title):
(address, article, aside, div, footer, header, hgroup, layer, main, nav, section):
Group the standard blocks in a single rule.

(input:matches([type=&quot;hidden&quot;], [type=&quot;image&quot;], [type=&quot;file&quot;])):
(input:matches([type=&quot;radio&quot;], [type=&quot;checkbox&quot;])):
(input:matches([type=&quot;button&quot;], [type=&quot;submit&quot;], [type=&quot;reset&quot;])):
(input:matches([type=&quot;button&quot;], [type=&quot;submit&quot;], [type=&quot;reset&quot;]), input[type=&quot;file&quot;]::-webkit-file-upload-button, button):
(input:matches([type=&quot;button&quot;], [type=&quot;submit&quot;], [type=&quot;reset&quot;]):active, input[type=&quot;file&quot;]::-webkit-file-upload-button:active, button:active):
(input:matches([type=&quot;button&quot;], [type=&quot;submit&quot;], [type=&quot;reset&quot;]):active, input[type=&quot;file&quot;]:active::-webkit-file-upload-button, button:active):
(input[type=&quot;file&quot;]:active:disabled::-webkit-file-upload-button, button:active:disabled):
(input:matches([type=&quot;checkbox&quot;], [type=&quot;radio&quot;]):checked):
(input:matches([type=&quot;checkbox&quot;], [type=&quot;radio&quot;]):checked:disabled):
(select:matches([size], [multiple], [size][multiple])):
(select:matches([size=&quot;0&quot;], [size=&quot;1&quot;])):
(input[type=&quot;hidden&quot;], input[type=&quot;image&quot;], input[type=&quot;file&quot;]): Deleted.
(input[type=&quot;radio&quot;], input[type=&quot;checkbox&quot;]): Deleted.
(input[type=&quot;button&quot;], input[type=&quot;submit&quot;], input[type=&quot;reset&quot;]): Deleted.
(input[type=&quot;button&quot;], input[type=&quot;submit&quot;], input[type=&quot;reset&quot;], input[type=&quot;file&quot;]::-webkit-file-upload-button, button): Deleted.
(input[type=&quot;button&quot;]:active, input[type=&quot;submit&quot;]:active, input[type=&quot;reset&quot;]:active, input[type=&quot;file&quot;]::-webkit-file-upload-button:active, button:active): Deleted.
(input[type=&quot;button&quot;]:active, input[type=&quot;submit&quot;]:active, input[type=&quot;reset&quot;]:active, input[type=&quot;file&quot;]:active::-webkit-file-upload-button, button:active): Deleted.
(input[type=&quot;button&quot;]:active:disabled, input[type=&quot;submit&quot;]:active:disabled, input[type=&quot;reset&quot;]:active:disabled, input[type=&quot;file&quot;]:active:disabled::-webkit-file-upload-button, button:active:disabled): Deleted.
(input[type=&quot;checkbox&quot;]:checked, input[type=&quot;radio&quot;]:checked): Deleted.
(input[type=&quot;checkbox&quot;]:checked:disabled, input[type=&quot;radio&quot;]:checked:disabled): Deleted.
(select[size][multiple]): Deleted.
(select[size=&quot;1&quot;]): Deleted.
Group every selector lists that only differentiates complex selectors through attributes
into a simple complex selector with :matches().

LayoutTests:

Test the default display type of &lt;map&gt; since it is not longer explicitely set.

* fast/css/map-tag-default-display-expected.html: Added.
* fast/css/map-tag-default-display.html: Added.
* fast/selectors/map-tag-default-display-expected.txt: Added.
* fast/selectors/map-tag-default-display.html: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorecsshtmlcss">trunk/Source/WebCore/css/html.css</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastcssmaptagdefaultdisplayexpectedhtml">trunk/LayoutTests/fast/css/map-tag-default-display-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastcssmaptagdefaultdisplayhtml">trunk/LayoutTests/fast/css/map-tag-default-display.html</a></li>
<li><a href="#trunkLayoutTestsfastselectorsmaptagdefaultdisplayexpectedtxt">trunk/LayoutTests/fast/selectors/map-tag-default-display-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastselectorsmaptagdefaultdisplayhtml">trunk/LayoutTests/fast/selectors/map-tag-default-display.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (176710 => 176711)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2014-12-03 04:17:32 UTC (rev 176710)
+++ trunk/LayoutTests/ChangeLog        2014-12-03 06:36:21 UTC (rev 176711)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2014-12-02  Benjamin Poulain  &lt;benjamin@webkit.org&gt;
+
+        Little cleanup of the default stylesheet
+        https://bugs.webkit.org/show_bug.cgi?id=139168
+
+        Reviewed by Antti Koivisto.
+
+        Test the default display type of &lt;map&gt; since it is not longer explicitely set.
+
+        * fast/css/map-tag-default-display-expected.html: Added.
+        * fast/css/map-tag-default-display.html: Added.
+        * fast/selectors/map-tag-default-display-expected.txt: Added.
+        * fast/selectors/map-tag-default-display.html: Added.
+
</ins><span class="cx"> 2014-12-02  Joanmarie Diggs  &lt;jdiggs@igalia.com&gt;
</span><span class="cx"> 
</span><span class="cx">         AX: [ATK] Table captions and table rows are missing from the accessible hierarchy
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssmaptagdefaultdisplayexpectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/map-tag-default-display-expected.html (0 => 176711)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/map-tag-default-display-expected.html                                (rev 0)
+++ trunk/LayoutTests/fast/css/map-tag-default-display-expected.html        2014-12-03 06:36:21 UTC (rev 176711)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+&lt;html&gt;
+&lt;head&gt;
+&lt;style&gt;
+    map {
+        display: inline !important;
+    }
+&lt;/style&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;p&gt;Checks the default &quot;display&quot; property of &amp;lt;map&amp;gt;.&lt;/p&gt;
+&lt;map&gt;Foo&lt;/map&gt; &lt;map&gt;Bar&lt;/map&gt;
+&lt;map&gt;&lt;div&gt;Foo&lt;/div&gt;&lt;/map&gt; &lt;map&gt;&lt;div&gt;Bar&lt;/div&gt;&lt;/map&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastcssmaptagdefaultdisplayhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/map-tag-default-display.html (0 => 176711)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/map-tag-default-display.html                                (rev 0)
+++ trunk/LayoutTests/fast/css/map-tag-default-display.html        2014-12-03 06:36:21 UTC (rev 176711)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+&lt;html&gt;
+&lt;body&gt;
+&lt;p&gt;Checks the default &quot;display&quot; property of &amp;lt;map&amp;gt;.&lt;/p&gt;
+&lt;map&gt;Foo&lt;/map&gt; &lt;map&gt;Bar&lt;/map&gt;
+&lt;map&gt;&lt;div&gt;Foo&lt;/div&gt;&lt;/map&gt; &lt;map&gt;&lt;div&gt;Bar&lt;/div&gt;&lt;/map&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastselectorsmaptagdefaultdisplayexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/selectors/map-tag-default-display-expected.txt (0 => 176711)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/selectors/map-tag-default-display-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/selectors/map-tag-default-display-expected.txt        2014-12-03 06:36:21 UTC (rev 176711)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+Verify default display of &lt;map&gt;.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS getComputedStyle(document.getElementById('target')).display is &quot;inline&quot;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsfastselectorsmaptagdefaultdisplayhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/selectors/map-tag-default-display.html (0 => 176711)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/selectors/map-tag-default-display.html                                (rev 0)
+++ trunk/LayoutTests/fast/selectors/map-tag-default-display.html        2014-12-03 06:36:21 UTC (rev 176711)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;style id=&quot;style-target&quot;&gt;&lt;/style&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;map id=&quot;target&quot;&gt;&lt;/map&gt;
+&lt;script&gt;
+description('Verify default display of &amp;lt;map&amp;gt;.');
+
+shouldBeEqualToString(&quot;getComputedStyle(document.getElementById('target')).display&quot;, &quot;inline&quot;);
+&lt;/script&gt;
+&lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (176710 => 176711)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-12-03 04:17:32 UTC (rev 176710)
+++ trunk/Source/WebCore/ChangeLog        2014-12-03 06:36:21 UTC (rev 176711)
</span><span class="lines">@@ -1,3 +1,63 @@
</span><ins>+2014-12-02  Benjamin Poulain  &lt;benjamin@webkit.org&gt;
+
+        Little cleanup of the default stylesheet
+        https://bugs.webkit.org/show_bug.cgi?id=139168
+
+        Reviewed by Antti Koivisto.
+
+        The default stylesheet has a lot of historical junk that need cleaning. This patch addresses
+        only the bits that do not change behaviors and have positive perf and readability impact.
+
+        I have limited :matches() to attributes for now. The idea is to only target
+        simple selectors that are not used for filtering by the collectors.
+        We should eventually clean up more cases, one thing at a time.
+
+        Tests: fast/css/map-tag-default-display.html
+               fast/selectors/map-tag-default-display.html
+
+        * css/html.css:
+        (map): Deleted.
+        map was explicitely setting its display to inline. Remove that since it is the default.
+
+        (head): Deleted.
+        (meta): Deleted.
+        (title): Deleted.
+        (link): Deleted.
+        (style): Deleted.
+        (script): Deleted.
+        (div): Deleted.
+        (layer): Deleted.
+        (article, aside, footer, header, hgroup, main, nav, section): Deleted.
+        (address): Deleted.
+        (head, link, meta, script, style, title):
+        (address, article, aside, div, footer, header, hgroup, layer, main, nav, section):
+        Group the standard blocks in a single rule.
+
+        (input:matches([type=&quot;hidden&quot;], [type=&quot;image&quot;], [type=&quot;file&quot;])):
+        (input:matches([type=&quot;radio&quot;], [type=&quot;checkbox&quot;])):
+        (input:matches([type=&quot;button&quot;], [type=&quot;submit&quot;], [type=&quot;reset&quot;])):
+        (input:matches([type=&quot;button&quot;], [type=&quot;submit&quot;], [type=&quot;reset&quot;]), input[type=&quot;file&quot;]::-webkit-file-upload-button, button):
+        (input:matches([type=&quot;button&quot;], [type=&quot;submit&quot;], [type=&quot;reset&quot;]):active, input[type=&quot;file&quot;]::-webkit-file-upload-button:active, button:active):
+        (input:matches([type=&quot;button&quot;], [type=&quot;submit&quot;], [type=&quot;reset&quot;]):active, input[type=&quot;file&quot;]:active::-webkit-file-upload-button, button:active):
+        (input[type=&quot;file&quot;]:active:disabled::-webkit-file-upload-button, button:active:disabled):
+        (input:matches([type=&quot;checkbox&quot;], [type=&quot;radio&quot;]):checked):
+        (input:matches([type=&quot;checkbox&quot;], [type=&quot;radio&quot;]):checked:disabled):
+        (select:matches([size], [multiple], [size][multiple])):
+        (select:matches([size=&quot;0&quot;], [size=&quot;1&quot;])):
+        (input[type=&quot;hidden&quot;], input[type=&quot;image&quot;], input[type=&quot;file&quot;]): Deleted.
+        (input[type=&quot;radio&quot;], input[type=&quot;checkbox&quot;]): Deleted.
+        (input[type=&quot;button&quot;], input[type=&quot;submit&quot;], input[type=&quot;reset&quot;]): Deleted.
+        (input[type=&quot;button&quot;], input[type=&quot;submit&quot;], input[type=&quot;reset&quot;], input[type=&quot;file&quot;]::-webkit-file-upload-button, button): Deleted.
+        (input[type=&quot;button&quot;]:active, input[type=&quot;submit&quot;]:active, input[type=&quot;reset&quot;]:active, input[type=&quot;file&quot;]::-webkit-file-upload-button:active, button:active): Deleted.
+        (input[type=&quot;button&quot;]:active, input[type=&quot;submit&quot;]:active, input[type=&quot;reset&quot;]:active, input[type=&quot;file&quot;]:active::-webkit-file-upload-button, button:active): Deleted.
+        (input[type=&quot;button&quot;]:active:disabled, input[type=&quot;submit&quot;]:active:disabled, input[type=&quot;reset&quot;]:active:disabled, input[type=&quot;file&quot;]:active:disabled::-webkit-file-upload-button, button:active:disabled): Deleted.
+        (input[type=&quot;checkbox&quot;]:checked, input[type=&quot;radio&quot;]:checked): Deleted.
+        (input[type=&quot;checkbox&quot;]:checked:disabled, input[type=&quot;radio&quot;]:checked:disabled): Deleted.
+        (select[size][multiple]): Deleted.
+        (select[size=&quot;1&quot;]): Deleted.
+        Group every selector lists that only differentiates complex selectors through attributes
+        into a simple complex selector with :matches().
+
</ins><span class="cx"> 2014-12-02  Mark Lam  &lt;mark.lam@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Rolling out r176592, r176603, r176616, and r176705 until build and perf issues are resolved.
</span></span></pre></div>
<a id="trunkSourceWebCorecsshtmlcss"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/html.css (176710 => 176711)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/html.css        2014-12-03 04:17:32 UTC (rev 176710)
+++ trunk/Source/WebCore/css/html.css        2014-12-03 06:36:21 UTC (rev 176711)
</span><span class="lines">@@ -28,30 +28,10 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /* children of the &lt;head&gt; element all have display:none */
</span><del>-head {
</del><ins>+head, link, meta, script, style, title {
</ins><span class="cx">     display: none
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-meta {
-    display: none
-}
-
-title {
-    display: none
-}
-
-link {
-    display: none
-}
-
-style {
-    display: none
-}
-
-script {
-    display: none
-}
-
</del><span class="cx"> /* generic block-level elements */
</span><span class="cx"> 
</span><span class="cx"> body {
</span><span class="lines">@@ -67,27 +47,15 @@
</span><span class="cx">     -webkit-margin-end: 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-div {
</del><ins>+address, article, aside, div, footer, header, hgroup, layer, main, nav, section {
</ins><span class="cx">     display: block
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-layer {
-    display: block
-}
-
-article, aside, footer, header, hgroup, main, nav, section {
-    display: block
-}
-
</del><span class="cx"> marquee {
</span><span class="cx">     display: inline-block;
</span><span class="cx">     overflow: -webkit-marquee
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-address {
-    display: block
-}
-
</del><span class="cx"> blockquote {
</span><span class="cx">     display: block;
</span><span class="cx">     -webkit-margin-before: 1__qem;
</span><span class="lines">@@ -136,10 +104,6 @@
</span><span class="cx">     border-width: 1px
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-map {
-    display: inline
-}
-
</del><span class="cx"> video {
</span><span class="cx">     object-fit: contain;
</span><span class="cx"> }
</span><span class="lines">@@ -412,8 +376,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> input,
</span><del>-input[type=&quot;password&quot;],
-input[type=&quot;search&quot;],
</del><ins>+input:matches([type=&quot;password&quot;], [type=&quot;search&quot;]),
</ins><span class="cx"> #if defined(WTF_PLATFORM_IOS) &amp;&amp; WTF_PLATFORM_IOS
</span><span class="cx"> textarea,
</span><span class="cx"> input[type=&quot;range&quot;],
</span><span class="lines">@@ -624,7 +587,7 @@
</span><span class="cx">     -webkit-text-security: disc !important;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-input[type=&quot;hidden&quot;], input[type=&quot;image&quot;], input[type=&quot;file&quot;] {
</del><ins>+input:matches([type=&quot;hidden&quot;], [type=&quot;image&quot;], [type=&quot;file&quot;]) {
</ins><span class="cx">     -webkit-appearance: initial;
</span><span class="cx">     padding: initial;
</span><span class="cx">     background-color: initial;
</span><span class="lines">@@ -647,7 +610,7 @@
</span><span class="cx">     color: #000000 !important;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-input[type=&quot;radio&quot;], input[type=&quot;checkbox&quot;] {
</del><ins>+input:matches([type=&quot;radio&quot;], [type=&quot;checkbox&quot;]) {
</ins><span class="cx">     margin: 3px 2px;
</span><span class="cx"> #if defined(WTF_PLATFORM_IOS) &amp;&amp; WTF_PLATFORM_IOS
</span><span class="cx">     border: 1px solid #4c4c4c;
</span><span class="lines">@@ -659,7 +622,7 @@
</span><span class="cx"> #endif
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-input[type=&quot;button&quot;], input[type=&quot;submit&quot;], input[type=&quot;reset&quot;] {
</del><ins>+input:matches([type=&quot;button&quot;], [type=&quot;submit&quot;], [type=&quot;reset&quot;]) {
</ins><span class="cx">     -webkit-appearance: push-button;
</span><span class="cx">     white-space: pre
</span><span class="cx"> }
</span><span class="lines">@@ -671,7 +634,7 @@
</span><span class="cx">     font-size: inherit;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-input[type=&quot;button&quot;], input[type=&quot;submit&quot;], input[type=&quot;reset&quot;], input[type=&quot;file&quot;]::-webkit-file-upload-button, button {
</del><ins>+input:matches([type=&quot;button&quot;], [type=&quot;submit&quot;], [type=&quot;reset&quot;]), input[type=&quot;file&quot;]::-webkit-file-upload-button, button {
</ins><span class="cx">     -webkit-align-items: flex-start;
</span><span class="cx">     text-align: center;
</span><span class="cx">     cursor: default;
</span><span class="lines">@@ -690,7 +653,7 @@
</span><span class="cx">     box-sizing: border-box
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-input[type=&quot;button&quot;]:active, input[type=&quot;submit&quot;]:active, input[type=&quot;reset&quot;]:active, input[type=&quot;file&quot;]::-webkit-file-upload-button:active, button:active {
</del><ins>+input:matches([type=&quot;button&quot;], [type=&quot;submit&quot;], [type=&quot;reset&quot;]):active, input[type=&quot;file&quot;]::-webkit-file-upload-button:active, button:active {
</ins><span class="cx">     color: ActiveButtonText;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -746,7 +709,7 @@
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-input[type=&quot;button&quot;]:disabled, input[type=&quot;submit&quot;]:disabled, input[type=&quot;reset&quot;]:disabled,
</del><ins>+input:matches([type=&quot;button&quot;], [type=&quot;submit&quot;], [type=&quot;reset&quot;]):disabled,
</ins><span class="cx"> input[type=&quot;file&quot;]:disabled::-webkit-file-upload-button, button:disabled,
</span><span class="cx"> select:disabled, keygen:disabled, optgroup:disabled, option:disabled,
</span><span class="cx"> select[disabled]&gt;option {
</span><span class="lines">@@ -754,11 +717,12 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if !(defined(WTF_PLATFORM_IOS) &amp;&amp; WTF_PLATFORM_IOS)
</span><del>-input[type=&quot;button&quot;]:active, input[type=&quot;submit&quot;]:active, input[type=&quot;reset&quot;]:active, input[type=&quot;file&quot;]:active::-webkit-file-upload-button, button:active {
</del><ins>+input:matches([type=&quot;button&quot;], [type=&quot;submit&quot;], [type=&quot;reset&quot;]):active, input[type=&quot;file&quot;]:active::-webkit-file-upload-button, button:active {
</ins><span class="cx">     border-style: inset
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-input[type=&quot;button&quot;]:active:disabled, input[type=&quot;submit&quot;]:active:disabled, input[type=&quot;reset&quot;]:active:disabled, input[type=&quot;file&quot;]:active:disabled::-webkit-file-upload-button, button:active:disabled {
</del><ins>+input:matches([type=&quot;button&quot;], [type=&quot;submit&quot;], [type=&quot;reset&quot;]):active:disabled,
+input[type=&quot;file&quot;]:active:disabled::-webkit-file-upload-button, button:active:disabled {
</ins><span class="cx">     border-style: outset
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="lines">@@ -792,12 +756,12 @@
</span><span class="cx">     background-color: rgba(255, 255, 255, 0.01);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-input[type=&quot;checkbox&quot;]:checked, input[type=&quot;radio&quot;]:checked {
</del><ins>+input:matches([type=&quot;checkbox&quot;], [type=&quot;radio&quot;]):checked {
</ins><span class="cx">     background:rgba(0, 0, 0, 0.8);
</span><span class="cx">     border-color:rgba(255, 255, 255, 0.0);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-input[type=&quot;checkbox&quot;]:checked:disabled, input[type=&quot;radio&quot;]:checked:disabled {
</del><ins>+input:matches([type=&quot;checkbox&quot;], [type=&quot;radio&quot;]):checked:disabled {
</ins><span class="cx">     opacity:0.4;
</span><span class="cx">     background:rgba(0, 0, 0, 0.8);
</span><span class="cx"> }
</span><span class="lines">@@ -884,9 +848,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if !(defined(WTF_PLATFORM_IOS) &amp;&amp; WTF_PLATFORM_IOS)
</span><del>-select[size],
-select[multiple],
-select[size][multiple] {
</del><ins>+select:matches([size], [multiple], [size][multiple]) {
</ins><span class="cx">     -webkit-appearance: listbox;
</span><span class="cx">     -webkit-align-items: flex-start;
</span><span class="cx">     border: 1px inset gray;
</span><span class="lines">@@ -894,8 +856,7 @@
</span><span class="cx">     white-space: initial;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-select[size=&quot;0&quot;],
-select[size=&quot;1&quot;] {
</del><ins>+select:matches([size=&quot;0&quot;], [size=&quot;1&quot;]) {
</ins><span class="cx">     -webkit-appearance: menulist;
</span><span class="cx">     -webkit-align-items: center;
</span><span class="cx">     border: 1px solid;
</span><span class="lines">@@ -1131,15 +1092,7 @@
</span><span class="cx">     outline-offset: -2px
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-input[type=&quot;button&quot;]:focus,
-input[type=&quot;checkbox&quot;]:focus,
-input[type=&quot;file&quot;]:focus,
-input[type=&quot;hidden&quot;]:focus,
-input[type=&quot;image&quot;]:focus,
-input[type=&quot;radio&quot;]:focus,
-input[type=&quot;reset&quot;]:focus,
-input[type=&quot;search&quot;]:focus,
-input[type=&quot;submit&quot;]:focus,
</del><ins>+input:matches([type=&quot;button&quot;], [type=&quot;checkbox&quot;], [type=&quot;file&quot;], [type=&quot;hidden&quot;], [type=&quot;image&quot;], [type=&quot;radio&quot;], [type=&quot;reset&quot;], [type=&quot;search&quot;], [type=&quot;submit&quot;]):focus,
</ins><span class="cx"> input[type=&quot;file&quot;]:focus::-webkit-file-upload-button {
</span><span class="cx">     outline-offset: 0
</span><span class="cx"> }
</span></span></pre>
</div>
</div>

</body>
</html>