Skip to content

Commit a2fc933

Browse files
committed
[css-anchor-position-1] Add position-anchor:normal that depends on position-area. w3c#13067
1 parent 103d619 commit a2fc933

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

css-anchor-position-1/Overview.bs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ This property has no effect on [=implicit anchor elements=].
321321
Note: Since ancestors of the positioned element are checked first,
322322
there's usually no need to use 'anchor-scope'
323323
if the desired anchor is an ancestor.
324-
It's only needed when the desired anchor is somewhere else,
324+
It's only needed when the desired anchor is not an ancestor,
325325
or you explicitly want to "hide" an anchor
326326
from being referenced elsewhere in the page.
327327

@@ -497,8 +497,8 @@ Default Anchors: the 'position-anchor' property</h3>
497497

498498
<pre class=propdef>
499499
Name: position-anchor
500-
Value: none | auto | <<anchor-name>>
501-
Initial: none
500+
Value: normal | none | auto | <<anchor-name>>
501+
Initial: normal
502502
Applies to: [=absolutely positioned boxes=]
503503
Inherited: no
504504
Animation type: discrete
@@ -510,6 +510,13 @@ and (by default) all [=anchor functions=] applied to this element.
510510
'position-anchor' is a [=reset-only sub-property=] of 'position'.
511511

512512
<dl dfn-for=position-anchor dfn-type=value>
513+
: <dfn>normal</dfn>
514+
::
515+
If 'position-area' is ''position-area/none'',
516+
behaves as ''position-anchor/none''.
517+
Otherwise,
518+
behaves as ''position-anchor/auto''.
519+
513520
: <dfn>none</dfn>
514521
::
515522
The box has no [=default anchor element=].
@@ -525,10 +532,6 @@ and (by default) all [=anchor functions=] applied to this element.
525532
is the box's [=default anchor element=].
526533
</dl>
527534

528-
Issue(#13067): We might want to change the initial value to be slightly more magical,
529-
auto-choosing between ''position-anchor/none'' and ''position-anchor/auto''
530-
based on 'position-area' being used or not.
531-
532535
The [=principal box=] of the [=default anchor element=]
533536
is the box's <dfn>default anchor box</dfn>.
534537

0 commit comments

Comments
 (0)