Skip to content

Commit 9affa0b

Browse files
committed
[css-anchor-position-1] Add position-anchor:none and make it the initial value. Fix some markup. w3c#13067
1 parent 8d80329 commit 9affa0b

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

css-anchor-position-1/Overview.bs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,8 @@ Default Anchors: the 'position-anchor' property</h3>
500500

501501
<pre class=propdef>
502502
Name: position-anchor
503-
Value: auto | <<anchor-name>>
504-
Initial: auto
503+
Value: none | auto | <<anchor-name>>
504+
Initial: none
505505
Applies to: [=absolutely positioned boxes=]
506506
Inherited: no
507507
Animation type: discrete
@@ -513,6 +513,9 @@ and (by default) all [=anchor functions=] applied to this element.
513513
'position-anchor' is a [=reset-only sub-property=] of 'position'.
514514

515515
<dl dfn-for=position-anchor dfn-type=value>
516+
: <dfn>none</dfn>
517+
::
518+
The box has no [=default anchor element=].
516519

517520
: <dfn>auto</dfn>
518521
::
@@ -890,6 +893,7 @@ The ''anchor()'' function has three arguments:
890893
and ''100%'' being equivalent to ''anchor()/end''.
891894

892895
''anchor()/center'' is equivalent to ''50%''.
896+
</dl>
893897

894898
* the optional <<length-percentage>> final argument is a fallback value,
895899
specifying what the function should compute to
@@ -2605,7 +2609,7 @@ Significant changes since the <a href="https://www.w3.org/TR/2025/WD-css-anchor-
26052609
* Define ''anchor-center'' to also use the [=scrollable containing block=]
26062610
so that it doesn't trigger overflow alignment when positioned outside the [=local containing block=].
26072611
(<a href="https://github.com/w3c/csswg-drafts/issues/12952">Issue 12952</a>)
2608-
* Resolve ''margin/auto'' margins to zero when 'position-area' or 'anchor-center' is in effect,
2612+
* Resolve ''margin/auto'' margins to zero when 'position-area' or ''anchor-center'' is in effect,
26092613
due to the ill-considered HTML UA default stylesheet rules for popovers.
26102614
Also drop the <css>dialog</css> alignment value which was the previous attempt to address this problem.
26112615
(<a href="https://github.com/w3c/csswg-drafts/issues/10258">Issue 10258</a>)

0 commit comments

Comments
 (0)