-
Notifications
You must be signed in to change notification settings - Fork 22.6k
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
move rel="alternate stylesheet" from CSS guide to HTML attribute #38146
base: main
Are you sure you want to change the base?
Conversation
Preview URLs (7 pages)Flaws (17)URL:
URL:
URL:
URL:
URL:
URL:
URL:
External URLs (1)URL:
(comment last updated: 2025-02-14 23:34:15) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@estelle Again, this makes sense. Few comments for you, but nothing major.
files/en-us/web/html/attributes/rel/alternate_stylesheet/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/html/attributes/rel/alternate_stylesheet/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/html/attributes/rel/alternate_stylesheet/index.md
Outdated
Show resolved
Hide resolved
@@ -28,7 +28,7 @@ The alternate stylesheets are commonly specified using a {{HTMLElement("link")}} | |||
|
|||
In this example, the styles "Default Style", "Fancy", and "Basic" will be listed in the _Page Style_ submenu, with "Default Style" pre-selected. When the user selects a different style, the page will immediately be re-rendered using that style sheet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is Firefox-specific. Make that clear?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow-up — looking at the BCD table, this is now only supported in Firefox, although it is still a standard. This might affect how you decide to update this wording, if at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one is, so added.
@@ -42,7 +42,7 @@ Any stylesheet in a document falls into one of the following categories: | |||
- **Preferred** (has `rel="stylesheet"`, with `title="…"` specified): applied by default, but {{domxref("StyleSheet.disabled", "disabled", "", 1)}} if an alternate stylesheet is selected. **There can only be one preferred stylesheet**, so providing stylesheets with different title attributes will cause some of them to be ignored. | |||
- **Alternate** (`rel="alternate stylesheet"`, with `title="…"` specified): disabled by default, can be selected. | |||
|
|||
When style sheets are referenced with a `title` attribute on the {{HTMLElement("link", "<link rel=\"stylesheet\">")}} or {{HTMLElement("style")}} element, the title becomes one of the choices offered to the user. Style sheets linked with the same `title` are part of the same choice. Style sheets linked without a `title` attribute are always applied. | |||
When style sheets are referenced with a `title` attribute on the {{HTMLElement("link", "<link rel=\"stylesheet\">")}} or {{HTMLElement("style")}} element, the title becomes one of the choices offered to the user. Style sheets linked with the same [`title`](/en-US/docs/Web/HTML/Global_attributes/title) are part of the same choice. Style sheets linked without a `title` attribute are always applied. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, Firefox-specific, in terms of how this is offered to the user?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extensions exists, so edited to reflect that.
files/en-us/web/html/attributes/rel/alternate_stylesheet/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/html/attributes/rel/alternate_stylesheet/index.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Chris Mills <chrisdavidmills@gmail.com>
This pull request has merge conflicts that must be resolved before it can be merged. |
This is an HTML feature (and contains no CSS), so it belongs under HTML.
The moved page defines "Alternative style sheet", which is the main place where the term is defined, so link terms my read "alternate stylesheet" which is the slug value and attribute value, while others read Alternative style sheet, which is defined in the intro, so can't link to a #heading.