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

feature: If hidden="until-found", it's not display: none. #879

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions normalize.css
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,13 @@ template {

/**
* Add the correct display in IE 10.
* Except `hidden="until-found"` because `content-visibility: hidden` is applied.
yamanoku marked this conversation as resolved.
Show resolved Hide resolved
*/

[hidden] {
display: none;
}

[hidden="until-found"] {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good

display: revert;
}
1 change: 1 addition & 0 deletions test.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ <h1>{{title}}</h1>
<content></content>
</template>
<p hidden>This should be hidden</p>
<p hidden="until-found">This is not display none</p>
</div>

<h2 class="Test-describe"><code>a</code></h2>
Expand Down