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

Don't change color inheritance for <hr> #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

atjn
Copy link

@atjn atjn commented Aug 10, 2024

Hi :) I think you should remove the color: inherit declaration from the <hr> element.

The comment for this declaration makes it sound like it is fixing a bug only present in Firefox, but that is incorrect. None of the major browsers support inheritance by default, so there is no reason to include it in normalize.css.

I can understand why you might want it in opinionated.css, since it feels intuitive that <hr> would inherit the text color, but unfortunately, Chromium browsers do not support color inheritance at all, so by adding it you are un-normalizing the styles because the color now will be different between browser engines.

I made a test document and took some screenshots here: sindresorhus/modern-normalize#75

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

Successfully merging this pull request may close these issues.

1 participant