Skip to content

Commit 3ca3460

Browse files
committed
[css-conditional-3] Fix bikeshed <var>-related warnings.
This fixes the bikeshed warnings: The following <var>s were only used once in the document: 'property' 'value' 'value', in algorithm 'supports(property, value)' 'document.querySelector("a|b")' If these are not typos, please add an ignore='' attribute to the <var>. Successfully generated, with warnings Mostly it does so by expanding the <div algorithm=""></div> elements to include the entire algorithm, but also converts one <var> to a <code> (which it should have been).
1 parent d3c2b5c commit 3ca3460

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

css-conditional-3/Overview.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -643,10 +643,10 @@ partial namespace CSS {
643643
<dt><code>supports(CSSOMString property, CSSOMString value)</code>, returns <code>boolean</code>
644644
<dt><code>supports(CSSOMString conditionText)</code>, returns <code>boolean</code>
645645
<dd>
646+
<div algorithm="supports(property, value)">
646647
When the {{supports(property, value)}} method is invoked
647648
with two arguments <var>property</var> and <var>value</var>:
648649

649-
<div algorithm="supports(property, value)">
650650
1. If |property| is an [=ASCII case-insensitive=] match
651651
for any defined CSS property that the UA supports,
652652
and |value| successfully [=CSS/parses=] according to that property's grammar,
@@ -660,10 +660,10 @@ partial namespace CSS {
660660
as " width" isn't the name of any property due to the leading space.
661661
</div>
662662

663+
<div algorithm="supports(conditionText)">
663664
When the {{supports(conditionText)}} method is invoked
664665
with a single <var>conditionText</var> argument:
665666

666-
<div algorithm="supports(conditionText)">
667667
1. If |conditionText|,
668668
[=CSS/parsed=] and evaluated as a <<supports-condition>>,
669669
would return true,
@@ -676,11 +676,11 @@ partial namespace CSS {
676676
return <code>true</code>.
677677
3. Otherwise, return <code>false</code>.
678678

679-
</div>
680679

681680
All namespaces in the <var>conditionText</var> argument
682681
are considered invalid,
683-
just as they are in <var>document.querySelector("a|b")</var>.
682+
just as they are in <code>document.querySelector("a|b")</code>.
683+
</div>
684684
</dl>
685685

686686
<h2 class=no-num id=priv-sec>Privacy and Security Considerations</h2>

0 commit comments

Comments
 (0)