Skip to content

Commit 27a5bfa

Browse files
committed
[css-anchor-1] Make anchor-scroll use <anchor-element>, and add 'default' for it to defer to anchor-default.
1 parent 284593b commit 27a5bfa

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

css-anchor-1/Overview.bs

+8-13
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ Taking Scroll Into Account: the 'anchor-scroll' property {#scroll}
417417

418418
<pre class=propdef>
419419
Name: anchor-scroll
420-
Value: none | <<dashed-ident>>
420+
Value: none | default | <<anchor-element>>
421421
Initial: none
422422
Inherited: no
423423
Applies to: [=absolutely-positioned=] elements
@@ -447,26 +447,21 @@ Its values are:
447447
: <dfn>none</dfn>
448448
:: No effect.
449449

450-
: <dfn><<dashed-ident>></dfn>
451-
::
452-
The scroll offsets of the [=target anchor element=]
453-
with the name given by the <<dashed-ident>>
454-
will be compensated for in positioning and fallback.
450+
: <dfn>default</dfn>
451+
:: Behaves as the value of 'anchor-default' on the element.
455452

456-
: <dfn>implicit</dfn>
453+
: <dfn><<anchor-element>></dfn>
457454
::
458-
The scroll offsets of the [=implicit anchor element=]
459-
will be compensated for in positioning and fallback.
455+
Selects a [=target anchor element=]
456+
the same as ''anchor()'',
457+
which will be compensated for in positioning and fallback.
460458
</dl>
461459

462460
<div algorithm="compensate for scroll">
463461
If 'anchor-scroll' is not ''anchor-scroll/none''
464462
on an [=absolutely-positioned=] element |query el|,
465463
and there is a [=target anchor element=] for |query el|
466-
with either the name given by 'anchor-scroll'
467-
(if its value is a <<dashed-ident>>)
468-
or no name
469-
(if its value is ''anchor-scroll/implicit''),
464+
given the 'anchor-scroll' value,
470465
and at least one ''anchor()'' function on |query el|
471466
refers to the same [=target anchor element=],
472467
then |query el| has a <dfn>snapshotted scroll offset</dfn>,

0 commit comments

Comments
 (0)