Skip to content

Commit

Permalink
[css-contain-3] Draft CSSOM CSSContainerRule API #7033
Browse files Browse the repository at this point in the history
  • Loading branch information
mirisuzanne committed Feb 18, 2022
1 parent 3be27da commit df1f7d3
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions css-contain-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,40 @@ Container Relative Lengths: the ''cqw'', ''cqh'', ''cqi'', ''cqb'', ''cqmin'', '
</div>


<h2 id="apis">APIs</h2>


<h3 id="the-csscontainerrule-interface">
The <code>CSSContainerRule</code> interface</h3>

The {{CSSContainerRule}} interface represents a ''@container'' rule.

<pre class='idl'>
[Exposed=Window]
interface CSSContainerRule : CSSConditionRule {
};
</pre>

<dl class='idl-attributes'>
<dt><code>conditionText</code> of type <code>CSSOMString</code> (CSSContainerRule-specific definition for attribute on CSSConditionRule)
<dd>The <code>conditionText</code> attribute (defined on the <code>CSSConditionRule</code> parent rule),
on getting, must return the condition that was specified,
without any logical simplifications,
so that the returned condition will evaluate to the same result
as the specified condition
in any conformant implementation of this specification
(including implementations that implement future extensions
allowed by the <<general-enclosed>> extensibility mechanism in this specification).
In other words,
token stream simplifications are allowed
(such as reducing whitespace to a single space
or omitting it in cases where it is known to be optional),
but logical simplifications (such as removal of unneeded parentheses,
or simplification based on evaluating results) are not allowed.
</dl>

Issue(7033): Add CSSOM API for CSSContainerRule

Suppressing An Element’s Contents Entirely: the 'content-visibility' property {#content-visibility}
=================

Expand Down

0 comments on commit df1f7d3

Please sign in to comment.