Skip to content

Commit a27afa4

Browse files
committed
[css-anchor-position] Rename anchor-default to position-anchor. w3c#10004
1 parent 72d894d commit a27afa4

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

css-anchor-position-1/Overview.bs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ This can be done with the following CSS:
8181

8282
/* All the anchoring behavior will default to
8383
referring to the --tooltip anchor. */
84-
anchor-default: --tooltip;
84+
position-anchor: --tooltip;
8585

8686
/* Align the tooltip's bottom to the top of the anchor;
8787
this also defaults to horizontally center-aligning
@@ -247,7 +247,7 @@ This property has no effect on [=implicit anchor elements=].
247247
}
248248
li .positioned {
249249
position: absolute;
250-
anchor-default: --list-item;
250+
position-anchor: --list-item;
251251
inset-area: inline-start;
252252
}
253253
</pre>
@@ -384,19 +384,19 @@ or nothing (a missing specifier).
384384
████▌ █████▌ █▌ █▌ █▌ ███▌ █████ █▌
385385
-->
386386

387-
<h3 id=anchor-default>
388-
Default Anchors: the 'anchor-default' property</h3>
387+
<h3 id=position-anchor>
388+
Default Anchors: the 'position-anchor' property</h3>
389389

390390
<pre class=propdef>
391-
Name: anchor-default
391+
Name: position-anchor
392392
Value: <<anchor-element>>
393393
Initial: implicit
394394
Applies to: [=absolutely positioned=] elements
395395
Inherited: no
396396
Animation type: discrete
397397
</pre>
398398

399-
The 'anchor-default' property defines the <dfn>default anchor specifier</dfn>
399+
The 'position-anchor' property defines the <dfn>default anchor specifier</dfn>
400400
for all [=anchor functions=] on the element,
401401
allowing multiple elements to use the same set of [=anchor functions=]
402402
(and [=position options lists=]!)
@@ -425,10 +425,10 @@ in ''anchor()'' and ''anchor-size()''.
425425
}
426426

427427
.foo.anchored {
428-
anchor-default: --foo;
428+
position-anchor: --foo;
429429
}
430430
.bar.anchored {
431-
anchor-default: --bar;
431+
position-anchor: --bar;
432432
}
433433
</pre>
434434
</div>
@@ -1260,7 +1260,7 @@ the [=position options list=] will be tried.
12601260
.anchor { anchor-name: --foo; }
12611261
.list {
12621262
position: fixed;
1263-
anchor-default: --foo;
1263+
position-anchor: --foo;
12641264
top: anchor(bottom);
12651265
left: anchor(left);
12661266
align-self: start;
@@ -1403,7 +1403,7 @@ the following [=properties=]:
14031403
* [=margin properties=]
14041404
* [=sizing properties=]
14051405
* [=self-alignment properties=]
1406-
* 'anchor-default'
1406+
* 'position-anchor'
14071407
* 'inset-area'
14081408

14091409
Issue(#9195): What exactly are the constraints that determine what's allowed here?
@@ -1426,7 +1426,7 @@ Note: If multiple elements using different anchors
14261426
want to use the same fallback positioning,
14271427
just relative to their own anchor elements,
14281428
omit the <<anchor-element>> in ''anchor()''
1429-
and specify each element's anchor in 'anchor-default' instead.
1429+
and specify each element's anchor in 'position-anchor' instead.
14301430

14311431
Note: The most common types of fallback positioning
14321432
(putting the positioned element on one side of the anchor normally,

0 commit comments

Comments
 (0)