<!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>[217844] 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/217844">217844</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2017-06-06 11:27:53 -0700 (Tue, 06 Jun 2017)</dd>
</dl>

<h3>Log Message</h3>
<pre>[css-conditional] The one-string version of CSS.supports should be wrapped in implied parentheses.
https://bugs.webkit.org/show_bug.cgi?id=172906

Patch by Emilio Cobos Álvarez <ecobos@igalia.com> on 2017-06-06
Reviewed by Darin Adler.

Source/WebCore:

>From https://drafts.csswg.org/css-conditional/#the-css-interface:

> When invoked with a single conditionText argument, it must return
> true if conditionText, when either parsed and evaluated as a
> supports_condition or parsed as a declaration, wrapped in implied
> parentheses, and evaluated as a supports_condition, would return
> true.

Note the "wrapped in implied parentheses" bit.

Gecko is fixing it in https://bugzil.la/1338486, and Blink in
https://crbug.com/729403.

Tests: css3/supports-dom-api.html
       imported/w3c/web-platform-tests/cssom/CSS.html

* css/parser/CSSParser.cpp:
(WebCore::CSSParser::parseSupportsCondition):
* css/parser/CSSParserImpl.cpp:
(WebCore::CSSParserImpl::consumeSupportsRule):
* css/parser/CSSSupportsParser.cpp:
(WebCore::CSSSupportsParser::supportsCondition):
* css/parser/CSSSupportsParser.h:

LayoutTests:

* css3/supports-dom-api-expected.txt:
* css3/supports-dom-api.html: Added test</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestscss3supportsdomapiexpectedtxt">trunk/LayoutTests/css3/supports-dom-api-expected.txt</a></li>
<li><a href="#trunkLayoutTestscss3supportsdomapihtml">trunk/LayoutTests/css3/supports-dom-api.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestscssomCSSexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/cssom/CSS-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorecssparserCSSParsercpp">trunk/Source/WebCore/css/parser/CSSParser.cpp</a></li>
<li><a href="#trunkSourceWebCorecssparserCSSParserImplcpp">trunk/Source/WebCore/css/parser/CSSParserImpl.cpp</a></li>
<li><a href="#trunkSourceWebCorecssparserCSSSupportsParsercpp">trunk/Source/WebCore/css/parser/CSSSupportsParser.cpp</a></li>
<li><a href="#trunkSourceWebCorecssparserCSSSupportsParserh">trunk/Source/WebCore/css/parser/CSSSupportsParser.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (217843 => 217844)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog      2017-06-06 18:15:31 UTC (rev 217843)
+++ trunk/LayoutTests/ChangeLog 2017-06-06 18:27:53 UTC (rev 217844)
</span><span class="lines">@@ -1,3 +1,13 @@
</span><ins>+2017-06-06  Emilio Cobos Álvarez  <ecobos@igalia.com>
+
+        [css-conditional] The one-string version of CSS.supports should be wrapped in implied parentheses.
+        https://bugs.webkit.org/show_bug.cgi?id=172906
+
+        Reviewed by Darin Adler.
+
+        * css3/supports-dom-api-expected.txt:
+        * css3/supports-dom-api.html: Added test
+
</ins><span class="cx"> 2017-06-06  Joseph Pecoraro  <pecoraro@apple.com>
</span><span class="cx"> 
</span><span class="cx">         Unreviewed rollout r217807. Caused a test to crash.
</span></span></pre></div>
<a id="trunkLayoutTestscss3supportsdomapiexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/css3/supports-dom-api-expected.txt (217843 => 217844)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/css3/supports-dom-api-expected.txt     2017-06-06 18:15:31 UTC (rev 217843)
+++ trunk/LayoutTests/css3/supports-dom-api-expected.txt        2017-06-06 18:27:53 UTC (rev 217844)
</span><span class="lines">@@ -3,8 +3,20 @@
</span><span class="cx"> On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
</span><span class="cx"> 
</span><span class="cx"> 
</span><ins>+PASS CSS.supports("display: none") is true
</ins><span class="cx"> PASS CSS.supports("(display: none)") is true
</span><ins>+PASS CSS.supports("  display: none ") is true
</ins><span class="cx"> PASS CSS.supports("(display: deadbeef)") is false
</span><ins>+PASS CSS.supports("display: deadbeef") is false
+PASS CSS.supports("(display: none) and ((display: block) or (display: inline))") is true
+PASS CSS.supports("(not (display: deadbeef)) and (display: block)") is true
+PASS CSS.supports("top: -webkit-calc(80% - 20px)") is true
+PASS CSS.supports("background-color: rgb(0, 128, 0)") is true
+PASS CSS.supports("background: url('/blah')") is true
+PASS CSS.supports("background: invalid('/blah')") is false
+PASS CSS.supports("display: none;") is false
+PASS CSS.supports("display: none; garbage") is false
+PASS CSS.supports("  display: none ; garbage ") is false
</ins><span class="cx"> PASS CSS.supports("not (display: deadbeef)") is true
</span><span class="cx"> PASS CSS.supports("not (display: none)") is false
</span><span class="cx"> PASS CSS.supports("not (not (display: none))") is true
</span><span class="lines">@@ -27,6 +39,7 @@
</span><span class="cx"> PASS CSS.supports("(display: none) or(-webkit-transition: all 1s    )") is true
</span><span class="cx"> PASS CSS.supports("(((((((display: none)))))))") is true
</span><span class="cx"> PASS CSS.supports("(!important)") is false
</span><ins>+PASS CSS.supports("!important") is false
</ins><span class="cx"> PASS CSS.supports("not not not not (display: none)") is false
</span><span class="cx"> PASS CSS.supports("(top: -webkit-calc(80% - 20px))") is true
</span><span class="cx"> PASS CSS.supports("(background-color: rgb(0, 128, 0))") is true
</span></span></pre></div>
<a id="trunkLayoutTestscss3supportsdomapihtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/css3/supports-dom-api.html (217843 => 217844)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/css3/supports-dom-api.html     2017-06-06 18:15:31 UTC (rev 217843)
+++ trunk/LayoutTests/css3/supports-dom-api.html        2017-06-06 18:27:53 UTC (rev 217844)
</span><span class="lines">@@ -7,9 +7,22 @@
</span><span class="cx"> <script>
</span><span class="cx">     description("Test window.CSS.supports()");
</span><span class="cx"> 
</span><ins>+    shouldBeTrue('CSS.supports("display: none")');
</ins><span class="cx">     shouldBeTrue('CSS.supports("(display: none)")');
</span><ins>+    shouldBeTrue('CSS.supports("  display: none ")');
</ins><span class="cx">     shouldBeFalse('CSS.supports("(display: deadbeef)")');
</span><span class="cx"> 
</span><ins>+    shouldBeFalse('CSS.supports("display: deadbeef")');
+    shouldBeTrue('CSS.supports("(display: none) and ((display: block) or (display: inline))")');
+    shouldBeTrue('CSS.supports("(not (display: deadbeef)) and (display: block)")');
+    shouldBeTrue('CSS.supports("top: -webkit-calc(80% - 20px)")');
+    shouldBeTrue('CSS.supports("background-color: rgb(0, 128, 0)")');
+    shouldBeTrue('CSS.supports("background: url(\'/blah\')")');
+    shouldBeFalse('CSS.supports("background: invalid(\'/blah\')")');
+    shouldBeFalse('CSS.supports("display: none;")');
+    shouldBeFalse('CSS.supports("display: none; garbage")');
+    shouldBeFalse('CSS.supports("  display: none ; garbage ")');
+
</ins><span class="cx">     // Negation
</span><span class="cx">     shouldBeTrue('CSS.supports("not (display: deadbeef)")');
</span><span class="cx">     shouldBeFalse('CSS.supports("not (display: none)")');
</span><span class="lines">@@ -43,6 +56,7 @@
</span><span class="cx">     shouldBeTrue('CSS.supports("(display: none) or(-webkit-transition: all 1s    )")');
</span><span class="cx">     shouldBeTrue('CSS.supports("(((((((display: none)))))))")');
</span><span class="cx">     shouldBeFalse('CSS.supports("(!important)")');
</span><ins>+    shouldBeFalse('CSS.supports("!important")');
</ins><span class="cx">     shouldBeFalse('CSS.supports("not not not not (display: none)")');
</span><span class="cx"> 
</span><span class="cx">     // Functions.
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestscssomCSSexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/cssom/CSS-expected.txt (217843 => 217844)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/cssom/CSS-expected.txt 2017-06-06 18:15:31 UTC (rev 217843)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/cssom/CSS-expected.txt    2017-06-06 18:27:53 UTC (rev 217844)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> 
</span><span class="cx"> PASS CSS.escape 
</span><del>-FAIL CSS.supports, one argument form assert_equals: CSS.supports: Single-argument form allows for declarations without enclosing parentheses expected true but got false
</del><ins>+PASS CSS.supports, one argument form 
</ins><span class="cx"> FAIL CSS.supports, two argument form assert_equals: CSS.supports: two argument form succeeds for custom property expected true but got false
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (217843 => 217844)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog   2017-06-06 18:15:31 UTC (rev 217843)
+++ trunk/Source/WebCore/ChangeLog      2017-06-06 18:27:53 UTC (rev 217844)
</span><span class="lines">@@ -1,3 +1,34 @@
</span><ins>+2017-06-06  Emilio Cobos Álvarez  <ecobos@igalia.com>
+
+        [css-conditional] The one-string version of CSS.supports should be wrapped in implied parentheses.
+        https://bugs.webkit.org/show_bug.cgi?id=172906
+
+        Reviewed by Darin Adler.
+
+        From https://drafts.csswg.org/css-conditional/#the-css-interface:
+
+        > When invoked with a single conditionText argument, it must return
+        > true if conditionText, when either parsed and evaluated as a
+        > supports_condition or parsed as a declaration, wrapped in implied
+        > parentheses, and evaluated as a supports_condition, would return
+        > true.
+
+        Note the "wrapped in implied parentheses" bit.
+
+        Gecko is fixing it in https://bugzil.la/1338486, and Blink in
+        https://crbug.com/729403.
+
+        Tests: css3/supports-dom-api.html
+               imported/w3c/web-platform-tests/cssom/CSS.html
+
+        * css/parser/CSSParser.cpp:
+        (WebCore::CSSParser::parseSupportsCondition):
+        * css/parser/CSSParserImpl.cpp:
+        (WebCore::CSSParserImpl::consumeSupportsRule):
+        * css/parser/CSSSupportsParser.cpp:
+        (WebCore::CSSSupportsParser::supportsCondition):
+        * css/parser/CSSSupportsParser.h:
+
</ins><span class="cx"> 2017-06-06  Joseph Pecoraro  <pecoraro@apple.com>
</span><span class="cx"> 
</span><span class="cx">         Move Resource Timing / User Timing from experimental features into main preferences
</span></span></pre></div>
<a id="trunkSourceWebCorecssparserCSSParsercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/parser/CSSParser.cpp (217843 => 217844)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/parser/CSSParser.cpp    2017-06-06 18:15:31 UTC (rev 217843)
+++ trunk/Source/WebCore/css/parser/CSSParser.cpp       2017-06-06 18:27:53 UTC (rev 217844)
</span><span class="lines">@@ -146,7 +146,7 @@
</span><span class="cx"> bool CSSParser::parseSupportsCondition(const String& condition)
</span><span class="cx"> {
</span><span class="cx">     CSSParserImpl parser(m_context, condition);
</span><del>-    return CSSSupportsParser::supportsCondition(parser.tokenizer()->tokenRange(), parser) == CSSSupportsParser::Supported;
</del><ins>+    return CSSSupportsParser::supportsCondition(parser.tokenizer()->tokenRange(), parser, CSSSupportsParser::ForWindowCSS) == CSSSupportsParser::Supported;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> Color CSSParser::parseColor(const String& string, bool strict)
</span></span></pre></div>
<a id="trunkSourceWebCorecssparserCSSParserImplcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/parser/CSSParserImpl.cpp (217843 => 217844)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/parser/CSSParserImpl.cpp        2017-06-06 18:15:31 UTC (rev 217843)
+++ trunk/Source/WebCore/css/parser/CSSParserImpl.cpp   2017-06-06 18:27:53 UTC (rev 217844)
</span><span class="lines">@@ -562,7 +562,7 @@
</span><span class="cx"> 
</span><span class="cx"> RefPtr<StyleRuleSupports> CSSParserImpl::consumeSupportsRule(CSSParserTokenRange prelude, CSSParserTokenRange block)
</span><span class="cx"> {
</span><del>-    CSSSupportsParser::SupportsResult supported = CSSSupportsParser::supportsCondition(prelude, *this);
</del><ins>+    CSSSupportsParser::SupportsResult supported = CSSSupportsParser::supportsCondition(prelude, *this, CSSSupportsParser::ForAtRule);
</ins><span class="cx">     if (supported == CSSSupportsParser::Invalid)
</span><span class="cx">         return nullptr; // Parse error, invalid @supports condition
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorecssparserCSSSupportsParsercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/parser/CSSSupportsParser.cpp (217843 => 217844)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/parser/CSSSupportsParser.cpp    2017-06-06 18:15:31 UTC (rev 217843)
+++ trunk/Source/WebCore/css/parser/CSSSupportsParser.cpp       2017-06-06 18:27:53 UTC (rev 217844)
</span><span class="lines">@@ -34,12 +34,19 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-CSSSupportsParser::SupportsResult CSSSupportsParser::supportsCondition(CSSParserTokenRange range, CSSParserImpl& parser)
</del><ins>+CSSSupportsParser::SupportsResult CSSSupportsParser::supportsCondition(CSSParserTokenRange range, CSSParserImpl& parser, SupportsParsingMode mode)
</ins><span class="cx"> {
</span><span class="cx">     // FIXME: The spec allows leading whitespace in @supports but not CSS.supports,
</span><span class="cx">     // but major browser vendors allow it in CSS.supports also.
</span><span class="cx">     range.consumeWhitespace();
</span><del>-    return CSSSupportsParser(parser).consumeCondition(range);
</del><ins>+    CSSSupportsParser supportsParser(parser);
+    auto result = supportsParser.consumeCondition(range);
+    if (mode != ForWindowCSS || result != Invalid)
+        return result;
+    // window.CSS.supports requires parsing as-if the condition was wrapped in
+    // parenthesis. The only productions that wouldn't have parsed above are the
+    // declaration condition or the general enclosed productions.
+    return supportsParser.consumeDeclarationConditionOrGeneralEnclosed(range);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> enum ClauseType { Unresolved, Conjunction, Disjunction };
</span><span class="lines">@@ -105,6 +112,16 @@
</span><span class="cx">     return result ? Unsupported : Supported;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+CSSSupportsParser::SupportsResult CSSSupportsParser::consumeDeclarationConditionOrGeneralEnclosed(CSSParserTokenRange& range)
+{
+    if (range.peek().type() == FunctionToken) {
+        range.consumeComponentValue();
+        return Unsupported;
+    }
+
+    return range.peek().type() == IdentToken && m_parser.supportsDeclaration(range) ? Supported : Unsupported;
+}
+
</ins><span class="cx"> CSSSupportsParser::SupportsResult CSSSupportsParser::consumeConditionInParenthesis(CSSParserTokenRange& range, CSSParserTokenType startTokenType)
</span><span class="cx"> {
</span><span class="cx">     if (startTokenType == IdentToken && range.peek().type() != LeftParenthesisToken)
</span><span class="lines">@@ -115,13 +132,7 @@
</span><span class="cx">     SupportsResult result = consumeCondition(innerRange);
</span><span class="cx">     if (result != Invalid)
</span><span class="cx">         return result;
</span><del>-    
-    if (innerRange.peek().type() == FunctionToken) {
-        innerRange.consumeComponentValue();
-        return Unsupported;
-    }
-
-    return innerRange.peek().type() == IdentToken && m_parser.supportsDeclaration(innerRange) ? Supported : Unsupported;
</del><ins>+    return consumeDeclarationConditionOrGeneralEnclosed(innerRange);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorecssparserCSSSupportsParserh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/parser/CSSSupportsParser.h (217843 => 217844)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/parser/CSSSupportsParser.h      2017-06-06 18:15:31 UTC (rev 217843)
+++ trunk/Source/WebCore/css/parser/CSSSupportsParser.h 2017-06-06 18:27:53 UTC (rev 217844)
</span><span class="lines">@@ -44,8 +44,13 @@
</span><span class="cx">         Invalid
</span><span class="cx">     };
</span><span class="cx"> 
</span><del>-    static SupportsResult supportsCondition(CSSParserTokenRange, CSSParserImpl&);
</del><ins>+    enum SupportsParsingMode {
+        ForAtRule,
+        ForWindowCSS,
+    };
</ins><span class="cx"> 
</span><ins>+    static SupportsResult supportsCondition(CSSParserTokenRange, CSSParserImpl&, SupportsParsingMode);
+
</ins><span class="cx"> private:
</span><span class="cx">     CSSSupportsParser(CSSParserImpl& parser)
</span><span class="cx">         : m_parser(parser) { }
</span><span class="lines">@@ -52,6 +57,7 @@
</span><span class="cx"> 
</span><span class="cx">     SupportsResult consumeCondition(CSSParserTokenRange);
</span><span class="cx">     SupportsResult consumeNegation(CSSParserTokenRange);
</span><ins>+    SupportsResult consumeDeclarationConditionOrGeneralEnclosed(CSSParserTokenRange&);
</ins><span class="cx"> 
</span><span class="cx">     SupportsResult consumeConditionInParenthesis(CSSParserTokenRange&, CSSParserTokenType);
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>