-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Reboot doesn't reset all headings #35612
Comments
This is only a set of suggestion to user agents, I'm not sure it makes any sense for us. Headings levels do not vary depending on where they're used (since the document outline algorithm was abandonned before any implementation) so making their styles vary wouldn't reflect the heading structure—thus lead to potential accessibility issues. Keeping this open to discussions but IMHO this should not be considered. |
It's stronger than a suggestion to user agents that "support the suggested default rendering". Indeed, both Blink and Gecko have some form of this (minus
This was news to me. Further context for those needing it: |
This is a suggestion, just read the first paragraph:
Moreover most of your latest links goes in my way: outline algorithm deprecation and hgroup obsolescence (meaning such styles should not exist). Would you mind providing a HTML only test case with headings in such situations, to compare rendering in browsers? |
That same paragraph ends:
And further down:
Yes, I was providing the references to support your claim about the document outline never having been implemented, and the follow-on implications of that, since I hadn't been aware of that before. But that doesn't change the reality of the situation about browsers' default stylesheets, which is really what this issue is about.
|
Reboot's goal is to normalize styles and set consistent expectations about how HTML elements will be rendered across browsers. I don't see us implementing this as it's not something our users expect from either Reboot or Bootstrap. A core tenant is that these components and elements look and behave as intended in as many places (DOM-wise) as possible. |
The default browser stylesheet for HTML headings has two parts:
https://html.spec.whatwg.org/multipage/rendering.html#sections-and-headings
However, Reboot only resets the first part (the bare h1 through h6); it does not reset the second part (h1 through h6 nested inside certain block elements). This results in heading styling being mismatched depending on where they're used.
In order to also reset the second part, this code:
bootstrap/scss/_reboot.scss
Lines 82 to 126 in deb8e3f
needs to be supplemented with this code:
The text was updated successfully, but these errors were encountered: