Skip to content

Commit df1f7d3

Browse files
committed
[css-contain-3] Draft CSSOM CSSContainerRule API #7033
1 parent 3be27da commit df1f7d3

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

css-contain-3/Overview.bs

+34
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,40 @@ Container Relative Lengths: the ''cqw'', ''cqh'', ''cqi'', ''cqb'', ''cqmin'', '
974974
</div>
975975

976976

977+
<h2 id="apis">APIs</h2>
978+
979+
980+
<h3 id="the-csscontainerrule-interface">
981+
The <code>CSSContainerRule</code> interface</h3>
982+
983+
The {{CSSContainerRule}} interface represents a ''@container'' rule.
984+
985+
<pre class='idl'>
986+
[Exposed=Window]
987+
interface CSSContainerRule : CSSConditionRule {
988+
};
989+
</pre>
990+
991+
<dl class='idl-attributes'>
992+
<dt><code>conditionText</code> of type <code>CSSOMString</code> (CSSContainerRule-specific definition for attribute on CSSConditionRule)
993+
<dd>The <code>conditionText</code> attribute (defined on the <code>CSSConditionRule</code> parent rule),
994+
on getting, must return the condition that was specified,
995+
without any logical simplifications,
996+
so that the returned condition will evaluate to the same result
997+
as the specified condition
998+
in any conformant implementation of this specification
999+
(including implementations that implement future extensions
1000+
allowed by the <<general-enclosed>> extensibility mechanism in this specification).
1001+
In other words,
1002+
token stream simplifications are allowed
1003+
(such as reducing whitespace to a single space
1004+
or omitting it in cases where it is known to be optional),
1005+
but logical simplifications (such as removal of unneeded parentheses,
1006+
or simplification based on evaluating results) are not allowed.
1007+
</dl>
1008+
1009+
Issue(7033): Add CSSOM API for CSSContainerRule
1010+
9771011
Suppressing An Element’s Contents Entirely: the 'content-visibility' property {#content-visibility}
9781012
=================
9791013

0 commit comments

Comments
 (0)