Skip to content

Test color inheritance on the hr element #48254

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

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

Conversation

atjn
Copy link
Contributor

@atjn atjn commented Sep 18, 2024

It should be possible to make the hr element inherit the color of its parent, but this behavior is not supported in Chromium.

This PR adds a test for that specific behavior. It passes in Firefox and Webkit while failing in Chromium.

Specification: https://html.spec.whatwg.org/multipage/rendering.html#the-hr-element-2

@atjn
Copy link
Contributor Author

atjn commented Sep 20, 2024

This also seems to be tested by:
css/css-color/border-color-currentcolor.html

But that is a more general test, whereas this is a more specific test for a real-world issue. I think you can argue both for and against having this more specific test, so I will let you decide whether or not to merge it :)

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

Successfully merging this pull request may close these issues.

3 participants