Skip to content

Commit 8260695

Browse files
committed
fix(base): respect 'hidden' attribute of elements
1 parent 795b5ba commit 8260695

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- **base:** respect `hidden` attribute of embedded content elements (`img`, `iframe`, `embed`, `object`, `video`, `audio`, `svg`) and `canvas`
13+
1014
## [3.0.1] - 2023-06-03
1115

1216
### Fixed

base.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@ audio {
7676
width: 100%;
7777
}
7878

79-
audio:not([controls]) {
80-
/* Prioritize default behavior over custom styles above */
81-
display: none;
82-
}
83-
8479
/* https://github.com/jensimmons/cssremedy/issues/39 */
8580
table {
8681
/* Prevent double borders */
@@ -95,3 +90,9 @@ textarea {
9590
resize: vertical;
9691
resize: block;
9792
}
93+
94+
[hidden],
95+
audio:not([controls]) {
96+
/* Prioritize default behavior over custom styles above */
97+
display: none;
98+
}

0 commit comments

Comments
 (0)