Skip to content

Commit cf8ce23

Browse files
committed
[css-anchor-position-1][editorial] Move <anchor-name> definition to 'anchor-name', use it in a few more places. #12895
1 parent a2fc933 commit cf8ce23

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

‎css-anchor-position-1/Overview.bs‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,17 @@ Creating an Anchor: the 'anchor-name' property {#name}
199199

200200
<pre class=propdef>
201201
Name: anchor-name
202-
Value: none | <<dashed-ident>>#
202+
Value: none | <<anchor-name>>#
203203
Initial: none
204204
Inherited: no
205205
Applies to: all elements that generate a [=principal box=]
206206
Animation Type: discrete
207207
</pre>
208208

209+
<pre class=prod>
210+
<dfn>&lt;anchor-name></dfn> = <<dashed-ident>>
211+
</pre>
212+
209213
The 'anchor-name' property declares
210214
that an element is an <dfn>anchor element</dfn>,
211215
whose [=principal box=] is an [=anchor box=],
@@ -216,7 +220,7 @@ Values are defined as follows:
216220
: <dfn>none</dfn>
217221
:: The property has no effect.
218222

219-
: <dfn><<dashed-ident>>#</dfn>
223+
: <dfn><<anchor-name>>#</dfn>
220224
:: If the element generates a [=principal box=],
221225
the element is an [=anchor element=],
222226
with a list of [=anchor names=] as specified.
@@ -270,7 +274,7 @@ Scoping Anchor Names: the 'anchor-scope' property</h3>
270274

271275
<pre class=propdef>
272276
Name: anchor-scope
273-
Value: none | all | <<dashed-ident>>#
277+
Value: none | all | <<anchor-name>>#
274278
Initial: none
275279
Applies to: all elements
276280
Inherited: no
@@ -304,15 +308,15 @@ Values have the following meanings:
304308
to ''anchor-scope: --foo, --bar, ...'',
305309
listing all relevant [=anchor names=].)
306310

307-
<dt><dfn><<dashed-ident>></dfn>
311+
<dt><dfn><<anchor-name>></dfn>
308312
<dd>
309313
Specifies that a matching [=anchor name=] defined by this element or its descendants--
310314
whose scope is not already limited by a descendant using 'anchor-scope'--
311315
to be in scope only for this element's descendants;
312316
and limits descendants to only match these [=anchor names=]
313317
to [=anchor elements=] within this subtree.
314318

315-
The <<dashed-ident>> represents a [=tree-scoped name/strictly matched=] [=tree-scoped name=],
319+
The <<anchor-name>> represents a [=tree-scoped name/strictly matched=] [=tree-scoped name=],
316320
i.e. it can only match against [=anchor names=] in the same shadow tree.[[!CSS-SCOPING-1]]
317321
</dl>
318322

@@ -844,7 +848,6 @@ New values: <<anchor()>>
844848

845849
<pre class=prod>
846850
&lt;anchor()> = anchor( <<anchor-name>>? && <<anchor-side>>, <<length-percentage>>? )
847-
<dfn><<anchor-name>></dfn> = <<dashed-ident>>
848851
<dfn><<anchor-side>></dfn> = inside | outside
849852
| top | left | right | bottom
850853
| start | end | self-start | self-end

0 commit comments

Comments
 (0)