Skip to content

Commit c321857

Browse files
committed
[css-anchor-position] Fix the OM to the new @position-try rule
1 parent 7b9bdf0 commit c321857

1 file changed

Lines changed: 11 additions & 19 deletions

File tree

css-anchor-position-1/Overview.bs

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,36 +1601,28 @@ DOM Interfaces {#interfaces}
16011601
The CSSPositionFallbackRule interface {#position-fallback-rule}
16021602
-------------------------------------
16031603

1604-
The {{CSSPositionFallbackRule}} interface represents
1605-
the ''@position-fallback'' rule:
1604+
The {{CSSPositionTryRule}} interface represents
1605+
the ''@position-try'' rule:
16061606

16071607
<pre class='idl' export>
16081608
[Exposed=Window]
1609-
interface CSSPositionFallbackRule : CSSGroupingRule {
1609+
interface CSSPositionTryRule : CSSRule {
16101610
readonly attribute CSSOMString name;
1611+
[SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
16111612
};
16121613
</pre>
16131614

1614-
Its <dfn attribute for=CSSPositionFallbackRule>name</dfn> attribute
1615-
represents the name declared by the at-rule itself.
1616-
1615+
Its <dfn attribute for=CSSPositionTryRule>name</dfn> attribute
1616+
represents the name declared in the rule's prelude.
16171617

1618+
Its <dfn attribute for=CSSPositionTryRule>style</dfn> attribute
1619+
represents the styles declared in the rule's body,
1620+
in the specified order.
1621+
Only the [=allowed @position-try properties=] are valid in this rule.
16181622

1619-
The CSSTryRule interface {#position-try-rule}
1620-
-------------------------------------
1623+
Issue: match the concept of validity to whatever we do in similar situations.
16211624

1622-
The {{CSSTryRule}} interface represents a ''@try'' block
1623-
declared in a ''@position-fallback'' rule:
1624-
1625-
<pre class='idl' export>
1626-
[Exposed=Window]
1627-
interface CSSTryRule : CSSRule {
1628-
[SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
1629-
};
1630-
</pre>
16311625

1632-
Its <dfn attribute for=CSSTryRule>style</dfn> attribute
1633-
represents the declarations declared by the ''@try'' block itself in the specified order.
16341626

16351627

16361628
Security Considerations {#sec}

0 commit comments

Comments
 (0)