[go: nahoru, domu]

Skip to content

Commit

Permalink
[css-cascade-6] Make CSSScopeRule.start/end optional
Browse files Browse the repository at this point in the history
  • Loading branch information
andruud committed Apr 14, 2023
1 parent 119d25e commit 5d22213
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions css-cascade-6/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -746,31 +746,23 @@ The <code>CSSScopeRule</code> interface</h3>
<pre class='idl' export>
[Exposed=Window]
interface CSSScopeRule : CSSGroupingRule {
readonly attribute CSSOMString start;
readonly attribute CSSOMString end;
readonly attribute CSSOMString? start;
readonly attribute CSSOMString? end;
};
</pre>

<dl class='idl-attributes'>
<dt><code>start</code> of type <code>CSSOMString</code>
<dd>The <code>start</code> attribute must return a value as follows:

<dl class="switch">
<dt data-md>The ''@scope'' rule has an associated <<scope-start>>
<dd data-md>The result of serializing that <<scope-start>>.
<dt data-md>Otherwise
<dd data-md>An empty string.
</dl>
<dd>The <code>start</code> attribute
returns the result of serializing the <<scope-start>> of the rule
(without the enclosing parentheses),
or null if there is no <<scope-start>>.

<dt><code>end</code> of type <code>CSSOMString</code>
<dd>The <code>end</code> attribute must return a value as follows:

<dl class="switch">
<dt data-md>The ''@scope'' rule has an associated <<scope-end>>
<dd data-md>The result of serializing that <<scope-end>>.
<dt data-md>Otherwise
<dd data-md>An empty string.
</dl>
<dd>The <code>end</code> attribute
returns the result of serializing the <<scope-end>> of the rule
(without the enclosing parentheses),
or null if there is no <<scope-end>>.
</dl>

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

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

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

0 comments on commit 5d22213

Please sign in to comment.