w3c / csswg-drafts

CSS Working Group Editor Drafts
https://drafts.csswg.org/
Other
4.36k stars 641 forks source link

[css-anchor-position-1] The anchor() function and the section on determining the target anchor element are inconsistent #10385

Open jwatt opened 1 month ago

jwatt commented 1 month ago

The description of the anchor() function's \ argument seems inconsistent with the section on determining the target anchor element.

Specifically, the former makes no mention of an 'implicit' keyword and says that if the anchor specifier is missing then the implicit anchor element is used (not the default), whereas the latter talks about an explicit 'implicit' keyword and says that if the anchor specifies is missing then the default anchor specifier should be used.

jwatt commented 1 month ago

Example 4, in the 'position-anchor' section gives an example using the anchor() function without an <anchor-element> argument, and the comment states "Since no anchor name was specified, this automatically refers to the default anchor element." (That seems to confirm that the spec text for anchor() is missing mention of the default anchor.)