[hidden] rule breaks hidden=until-found
Author: mmoskalCreated Feb 11, 2024Updated 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:
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
Source: pure-css/pure