@@ -746,31 +746,23 @@ The <code>CSSScopeRule</code> interface</h3>
746
746
<pre class='idl' export>
747
747
[Exposed=Window]
748
748
interface CSSScopeRule : CSSGroupingRule {
749
- readonly attribute CSSOMString start;
750
- readonly attribute CSSOMString end;
749
+ readonly attribute CSSOMString? start;
750
+ readonly attribute CSSOMString? end;
751
751
};
752
752
</pre>
753
753
754
754
<dl class='idl-attributes'>
755
755
<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>> .
764
760
765
761
<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>> .
774
766
</dl>
775
767
776
768
<!--
@@ -804,6 +796,7 @@ Changes since the 21 December 2021 First Public Working Draft</h3>
804
796
(<a href="https://github.com/w3c/csswg-drafts/issues/6895">Issue 6895</a> )
805
797
806
798
* Added the {{CSSScopeRule}} interface.
799
+ (<a href="https://github.com/w3c/csswg-drafts/issues/8626">Issue 8626</a> )
807
800
808
801
* Added implicit scopes by making ''<<scope-start>>'' optional.
809
802
(<a href="https://github.com/w3c/csswg-drafts/issues/6606">Issue 6606</a> )
0 commit comments