HTML anchor attribute #216
Labels
from: Google
Proposed, edited, or co-edited by Google.
topic: html
Spec relates to HTML (Hypertext Markup Language)
venue: WHATWG HTML Workstream
WebKittens
No response
Title of the spec
HTML anchor attribute
URL to the spec
whatwg/html#9144
URL to the spec's repository
https://github.com/whatwg/html
Issue Tracker URL
No response
Explainer URL
No response
TAG Design Review URL
w3ctag/design-reviews#848
Mozilla standards-positions issue URL
mozilla/standards-positions#836
WebKit Bugzilla URL
No response
Radar URL
No response
Description
The
anchor
attribute allows HTML to hook into CSS Anchor positioning to set an implicit anchor element: https://drafts.csswg.org/css-anchor-position-1/#implicit-anchor-elementBy using the
anchor
attribute, you don't have to use theanchor-name
andanchor-default
CSS properties to set up an anchor positioning relationship.Here is an example without the anchor attribute:
And here is an example of the same thing with the anchor attribute which gets rid of
anchor-name
andanchor-default
:The text was updated successfully, but these errors were encountered: