Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #138 from PolymerElements/insert-hidden-into-head-…
Browse files Browse the repository at this point in the history
…of-doc

insert hidden globally
  • Loading branch information
e111077 authored Feb 12, 2018
2 parents 7f2433e + 50ab1ae commit 7f388ef
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion iron-flex-layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,19 @@
@pseudoElement iron-flex-layout
@demo demo/index.html
-->
<script>
// This is left only for backward compatibility with projects
// that incorrectly relied on unscoped global [hidden] rules;
// removing would be a breaking change, but new projects
// should never rely on this.
(function() {
var style = document.createElement('style');
style.textContent = '[hidden] { display: none !important; }';
document.head.appendChild(style);
})();
</script>
<custom-style>
<style is="custom-style">
/* IE 10 support for HTML5 hidden attr */
[hidden] {
display: none !important;
}
Expand Down

0 comments on commit 7f388ef

Please sign in to comment.