Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-backgrounds] Subsection anchors have the form "#the-background-position" #2005

Closed
theres-waldo opened this issue Nov 22, 2017 · 2 comments

Comments

@theres-waldo
Copy link
Contributor

For example, the link for subsection 3.6, "Positioning images: the background-position property", is

https://drafts.csswg.org/css-backgrounds-3/#the-background-position

Is the word "the" supposed to be there in the anchor? There are links out there (e.g. on MDN) pointing to a version without the "the", suggesting that in an earlier draft it wasn't there.

@tabatkins
Copy link
Member

It's intentional, but not really necessary any longer. The spec-generator that spec previously used would generate id=background-position for the actual property definition, in the propdef table, and so we needed a different ID for the section so it wouldn't collide.

Now tho, the default ID that gets generated for the property is id=propdef-background-position instead, so it's not necessary to have the the- in it.

(The MDN specs were trying to point to the properties themselves, not the section.)

@fantasai
Copy link
Collaborator

fantasai commented Dec 4, 2017

Ah, good catch. That means we need to add extra anchors to not break links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants