Skip to content

Commit f66b127

Browse files
authored
[css-anchor-1] Change anchor-scroll's initial value to default (w3c#8846)
* Change anchor-scroll's initial value to default * Fix note indentation
1 parent e3bea42 commit f66b127

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

css-anchor-position-1/Overview.bs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ Taking Scroll Into Account: the 'anchor-scroll' property {#scroll}
449449
<pre class=propdef>
450450
Name: anchor-scroll
451451
Value: none | default | <<anchor-element>>
452-
Initial: none
452+
Initial: default
453453
Inherited: no
454454
Applies to: [=absolutely-positioned=] elements
455455
Animation Type: discrete
@@ -489,6 +489,11 @@ Its values are:
489489
which will be compensated for in positioning and fallback.
490490
</dl>
491491

492+
Note: When the element uses 'anchor-default'
493+
or has an [=implicit anchor element=],
494+
authors can often avoid explicitly setting an 'anchor-scroll' value
495+
because the initial value is ''anchor-scroll/default''.
496+
492497
<div algorithm="compensate for scroll">
493498
If 'anchor-scroll' is not ''anchor-scroll/none''
494499
on an [=absolutely-positioned=] element |query el|,

0 commit comments

Comments
 (0)