Skip to content

Commit

Permalink
[css-anchor-position-1] Editorial tweaks to note/intro text.
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasai committed Oct 4, 2024
1 parent ec00753 commit 0b3a1b7
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions css-anchor-position-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1183,11 +1183,10 @@ Inherited: no
Animation type: discrete
</pre>

There are times when an element's anchors
are not appropriate for positioning the element with,
and it would be better to simply not display the element at all.
'position-visibility' provides several conditions
where this could be the case.
There are some conditions in which it might not make sense
to display an [=absolutely-positioned=] box.
This property allows such boxes to be made conditionally visible,
depending on some commonly needed layout conditions.

<dl dfn-type=value dfn-for=position-visibility>
: <dfn>always</dfn>
Expand Down Expand Up @@ -1857,7 +1856,7 @@ the following [=properties=]:

It is invalid to use ''!important'' on the properties in the <<declaration-list>>.
Doing so causes the property it is used on to become invalid,
but does not invalid the ''@property-try'' rule as a whole.
but does not invalidate the ''@property-try'' rule as a whole.

All of the properties in a ''@position-try'' are applied to the element
as part of the <dfn>Position Fallback Origin</dfn>,
Expand All @@ -1875,14 +1874,18 @@ and acts as specified.)

Note: The [=accepted @position-try properties=] are the smallest group of properties
that affect just the size and position of the box itself,
without changing its contents area.
This significantly simplifies the implementation of position fallback,
without reducing the possible behaviors overly much.
without otherwise changing its contents or styling.
This significantly simplifies the implementation of position fallback
while addressing the fundamental need to move an anchor-positioned box
in response to available space.
Since these rules override normal declarations in the [=Author Origin=],
this also limits the poor interactions of ''@position-try'' declarations
with the normal cascading and inheritance of other properties.
It is expected that a future extension to [=container queries=]
will allow querying an element
based on the position fallback it's using,
allowing many cases not allowed by this restricted list
to be handled.
enabling the sort of conditional styling
not allowed by this restricted list.

Note: If multiple elements using different anchors
want to use the same fallback positioning,
Expand Down

0 comments on commit 0b3a1b7

Please sign in to comment.