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

[hidden] rule breaks hidden=until-found #1246

Open
mmoskal opened this issue Feb 11, 2024 · 0 comments
Open

[hidden] rule breaks hidden=until-found #1246

mmoskal opened this issue Feb 11, 2024 · 0 comments

Comments

@mmoskal
Copy link

mmoskal commented Feb 11, 2024

Describe the bug
Recent Chromium supports hidden="until-found" attribute which allows for Ctrl-F search in hidden accordions, see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/hidden and https://developer.chrome.com/docs/css-ui/hidden-until-found

purecss adds "display:none !important" to "[hidden]" which breaks it:

[hidden] {

It seems that "display:none" without "!important" also breaks it.

I'm not sure why this rule is there in the first place.

To Reproduce
Steps to reproduce the behavior:
Use recent Chrome or Edge
Head to https://codepen.io/web-dot-dev/pen/JjMxmom
Click on white demo area
Search for papaya -> works
Reload
Add on top of HTML
Click on white demo area
Search for papaya -> doesn't work

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

No branches or pull requests

1 participant