Skip to content

Commit d6dc068

Browse files
authored
[css-cascade-6] Make CSSScopeRule.start/end optional (#8716)
#8626
1 parent 119d25e commit d6dc068

File tree

1 file changed

+11
-18
lines changed

1 file changed

+11
-18
lines changed

css-cascade-6/Overview.bs

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -746,31 +746,23 @@ The <code>CSSScopeRule</code> interface</h3>
746746
<pre class='idl' export>
747747
[Exposed=Window]
748748
interface CSSScopeRule : CSSGroupingRule {
749-
readonly attribute CSSOMString start;
750-
readonly attribute CSSOMString end;
749+
readonly attribute CSSOMString? start;
750+
readonly attribute CSSOMString? end;
751751
};
752752
</pre>
753753

754754
<dl class='idl-attributes'>
755755
<dt><code>start</code> of type <code>CSSOMString</code>
756-
<dd>The <code>start</code> attribute must return a value as follows:
757-
758-
<dl class="switch">
759-
<dt data-md>The ''@scope'' rule has an associated <<scope-start>>
760-
<dd data-md>The result of serializing that <<scope-start>>.
761-
<dt data-md>Otherwise
762-
<dd data-md>An empty string.
763-
</dl>
756+
<dd>The <code>start</code> attribute
757+
returns the result of serializing the <<scope-start>> of the rule
758+
(without the enclosing parentheses),
759+
or null if there is no <<scope-start>>.
764760

765761
<dt><code>end</code> of type <code>CSSOMString</code>
766-
<dd>The <code>end</code> attribute must return a value as follows:
767-
768-
<dl class="switch">
769-
<dt data-md>The ''@scope'' rule has an associated <<scope-end>>
770-
<dd data-md>The result of serializing that <<scope-end>>.
771-
<dt data-md>Otherwise
772-
<dd data-md>An empty string.
773-
</dl>
762+
<dd>The <code>end</code> attribute
763+
returns the result of serializing the <<scope-end>> of the rule
764+
(without the enclosing parentheses),
765+
or null if there is no <<scope-end>>.
774766
</dl>
775767

776768
<!--
@@ -804,6 +796,7 @@ Changes since the 21 December 2021 First Public Working Draft</h3>
804796
(<a href="https://github.com/w3c/csswg-drafts/issues/6895">Issue 6895</a>)
805797

806798
* Added the {{CSSScopeRule}} interface.
799+
(<a href="https://github.com/w3c/csswg-drafts/issues/8626">Issue 8626</a>)
807800

808801
* Added implicit scopes by making ''<<scope-start>>'' optional.
809802
(<a href="https://github.com/w3c/csswg-drafts/issues/6606">Issue 6606</a>)

0 commit comments

Comments
 (0)