Skip to content

Commit 7c2b8a4

Browse files
committed
[css-anchor-position] Specify where fallback rules live in the cascade. Specify that bang-important is invalid. #10058 #9149
1 parent 7b6bced commit 7c2b8a4

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

css-anchor-position-1/Overview.bs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,8 +1422,6 @@ is the rule's name.
14221422
If multiple ''@position-try'' rules are declared with the same name,
14231423
the last one in document order "wins".
14241424

1425-
Issue: Or should they cascade together?
1426-
14271425
The ''@position-try'' rule only <dfn export lt="accepted @position-try properties">accepts</dfn>
14281426
the following [=properties=]:
14291427

@@ -1434,6 +1432,21 @@ the following [=properties=]:
14341432
* 'position-anchor'
14351433
* 'inset-area'
14361434

1435+
It is invalid to use ''!important'' on the properties in the <<declaration-list>>.
1436+
1437+
All of the properties in a ''@position-try'' are applied to the element
1438+
as part of the <dfn>Position Fallback Origin</dfn>,
1439+
a new [=cascade origin=] that lies between
1440+
the [=Author Origin=]
1441+
and the [=Animation Origin=].
1442+
1443+
Similar to the [=Animation Origin=],
1444+
use of the ''revert'' or ''revert-layer'' values
1445+
(or anything else that would rollback the property to the preceding origin)
1446+
acts as if the property was part of the [=Author Origin=].
1447+
(Thus, it instead reverts back to the [=User Origin=].)
1448+
1449+
14371450
Issue(#9195): What exactly are the constraints that determine what's allowed here?
14381451
Current list is based off of what's reasonable
14391452
from Chrome's experimental impl.

0 commit comments

Comments
 (0)