Skip to content

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

Description

@mmoskal

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions