Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(634)

Unified Diff: Source/core/css/mediaControls.css

Issue 1166743004: Force display:none for audio elements with no controls attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/media/audio-controls-computed-display.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/mediaControls.css
diff --git a/Source/core/css/mediaControls.css b/Source/core/css/mediaControls.css
index 794af3fa6e30c5c7578995075b513551f5f14ed9..c8b17dd34baa03d91dfa66b24ab908f151648a9a 100644
--- a/Source/core/css/mediaControls.css
+++ b/Source/core/css/mediaControls.css
@@ -27,6 +27,10 @@
/* WARNING: This css file can only style <audio> and <video> elements */
+audio:not([controls]) {
+ display: none !important;
+}
+
audio {
width: 300px;
height: 30px;
« no previous file with comments | « LayoutTests/media/audio-controls-computed-display.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698