Skip to content

Commit bc27c11

Browse files
committed
[css-anchor-1] Specify that anchor-name only applies to elements that generate principal boxes, since anchor() relies on them doing so. w3c#7914
1 parent 6533e07 commit bc27c11

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

css-anchor-1/Overview.bs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ Name: anchor-name
284284
Value: none | <<dashed-ident>>
285285
Initial: none
286286
Inherited: no
287-
Applies to: all elements
287+
Applies to: all elements that generate a [=principal box=]
288288
Animation Type: discrete
289289
</pre>
290290

@@ -295,8 +295,11 @@ Values are defined as follows:
295295
:: The property has no effect.
296296

297297
: <dfn><<dashed-ident>></dfn>
298-
:: The element is an <dfn dfn for local-lt="anchor">anchor element</dfn>,
298+
:: If the element generates a [=principal box=],
299+
the element is an <dfn dfn for local-lt="anchor">anchor element</dfn>,
299300
with an <dfn dfn for>anchor name</dfn> equal to the <<dashed-ident>>.
301+
302+
Otherwise, the property has no effect.
300303
</dl>
301304

302305
The [=anchor functions=]

0 commit comments

Comments
 (0)