Skip to content

Commit f5da764

Browse files
committed
[css-anchor-position-1] Change position-anchor initial value to 'auto', and only let you specify that behavior in anchor()/anchor-size() via omission. w3c#10312
1 parent 4059f3b commit f5da764

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

css-anchor-position-1/Overview.bs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ Default Anchors: the 'position-anchor' property</h3>
402402

403403
<pre class=propdef>
404404
Name: position-anchor
405-
Value: <<anchor-element>>
406-
Initial: implicit
405+
Value: auto | <<anchor-element>>
406+
Initial: auto
407407
Applies to: [=absolutely positioned=] elements
408408
Inherited: no
409409
Animation type: discrete
@@ -421,7 +421,10 @@ The [=target anchor element=] selected by the [=default anchor specifier=]
421421
is the element's <dfn>default anchor element</dfn>.
422422

423423
Its values are identical to the <<anchor-element>> term
424-
in ''anchor()'' and ''anchor-size()''.
424+
in ''anchor()'' and ''anchor-size()'',
425+
except that the ''position-anchor/auto'' value
426+
is equivalent to omitting the <<anchor-element>> in ''anchor()''
427+
(referring to the [=implicit anchor element=], if one exists).
425428

426429
<div class=example>
427430
For example, in the following code
@@ -706,7 +709,7 @@ It is only valid to be used in the [=inset properties=].
706709

707710
<pre class=prod>
708711
&lt;anchor()> = anchor( <<anchor-element>>? <<anchor-side>>, <<length-percentage>>? )
709-
<dfn><<anchor-element>></dfn> = <<dashed-ident>> | implicit
712+
<dfn><<anchor-element>></dfn> = <<dashed-ident>>
710713
<dfn><<anchor-side>></dfn> = inside | outside
711714
| top | left | right | bottom
712715
| start | end | self-start | self-end
@@ -718,15 +721,14 @@ The ''anchor()'' function has three arguments:
718721
* the <<anchor-element>> value
719722
specifies how to find the [=anchor element=]
720723
it will be drawing positioning information from.
721-
If omitted, it behaves as the element's [=default anchor specifier=].
722724
Its possible values are:
723725

724726
<dl dfn-type=value dfn-for="anchor()">
725727
: <dfn><<dashed-ident>></dfn>
726728
:: Specifies the [=anchor name=] it will look for.
727729
This name is a [=tree-scoped reference=].
728730

729-
: <dfn>implicit</dfn>
731+
: omitted
730732
:: Selects the [=implicit anchor element=]
731733
defined for the element,
732734
if possible.

0 commit comments

Comments
 (0)