Skip to content

Commit 235852f

Browse files
committed
[css-anchor-position-1] Use newly-defined force-hidden value for visibility hacking #10182
1 parent 469547b commit 235852f

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

css-anchor-position-1/Overview.bs

+6-18
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ depending on some commonly needed layout conditions.
13201320
::
13211321
If any of the box's [=required anchor references=]
13221322
do not resolve to a [=target anchor element=],
1323-
the box is [=strongly hidden=].
1323+
the box's 'visibility' property computes to ''force-hidden''.
13241324

13251325
Issue: What is a <dfn dfn for>required anchor reference</dfn>?
13261326
''anchor()'' functions that don't have a fallback value;
@@ -1335,14 +1335,14 @@ depending on some commonly needed layout conditions.
13351335
: <dfn>anchors-visible</dfn>
13361336
::
13371337
If the box has a [=default anchor box=]
1338-
but that [=anchor box=] is [=clipped by intervening boxes=],
1339-
this box is also [=strongly hidden=].
1338+
but that [=anchor box=] is [=invisible=] or [=clipped by intervening boxes=],
1339+
the box's 'visibility' property computes to ''force-hidden''.
13401340

13411341
: <dfn>no-overflow</dfn>
13421342
::
13431343
If the box overflows its [=inset-modified containing block=]
13441344
even after applying 'position-try',
1345-
then the box is [=strongly hidden=].
1345+
the box's 'visibility' property computes to ''force-hidden''.
13461346
</dl>
13471347

13481348
<div algorithm>
@@ -1366,25 +1366,13 @@ depending on some commonly needed layout conditions.
13661366
is consistent with View Transitions,
13671367
which wants a similar concept.
13681368

1369-
|anchor| is also considered [=clipped by intervening boxes=]
1370-
if it is [=strongly hidden=]
1371-
by 'position-visibility'.
1372-
1373-
Note: This ensures that in a "chained anchor" situation,
1369+
Note: This ensures that in a “chained anchor” situation,
13741370
if the first abspos is hidden due to this property
13751371
(due to its anchor being scrolled off),
13761372
then another abspos using it as an anchor will also be hidden,
13771373
rather than <em>also</em> floating in a nonsensical location.
13781374
</div>
13791375

1380-
A box that is <dfn noexport>strongly hidden</dfn>
1381-
acts as if it
1382-
and all of its descendants
1383-
were ''visibility: hidden'',
1384-
regardless of what their actual 'visibility' value is.
1385-
(This does not affect any [=computed values=].)
1386-
1387-
13881376
<!-- Big Text: a-size()
13891377

13901378
███▌ ███▌ ████ █████▌ █████▌ ██ ██
@@ -1460,7 +1448,7 @@ whichever is in the specified axis)
14601448
of the [=target anchor element=].
14611449

14621450

1463-
<h4 id=anchor-resolution oldids=anchor-valid>
1451+
<h4 id=anchor-size-resolution oldids=anchor-size-valid>
14641452
Resolution of ''anchor-size()''</h4>
14651453

14661454
An ''anchor-size()'' function is a

0 commit comments

Comments
 (0)