@@ -417,7 +417,7 @@ Taking Scroll Into Account: the 'anchor-scroll' property {#scroll}
417
417
418
418
<pre class=propdef>
419
419
Name : anchor-scroll
420
- Value : none | <<dashed-ident >>
420
+ Value : none | default | <<anchor-element >>
421
421
Initial : none
422
422
Inherited : no
423
423
Applies to : [=absolutely-positioned=] elements
@@ -447,26 +447,21 @@ Its values are:
447
447
: <dfn>none</dfn>
448
448
:: No effect.
449
449
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.
455
452
456
- : <dfn>implicit </dfn>
453
+ : <dfn><<anchor-element>> </dfn>
457
454
::
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.
460
458
</dl>
461
459
462
460
<div algorithm="compensate for scroll">
463
461
If 'anchor-scroll' is not ''anchor-scroll/none''
464
462
on an [=absolutely-positioned=] element |query el|,
465
463
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,
470
465
and at least one ''anchor()'' function on |query el|
471
466
refers to the same [=target anchor element=] ,
472
467
then |query el| has a <dfn>snapshotted scroll offset</dfn> ,
0 commit comments