Skip to content

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.

2 participants