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

Unified Diff: third_party/WebKit/Source/core/css/html.css

Issue 1958073002: Introduce :-internal-shadow-host-has-appearance pseudo class, and apply it to METER element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove null host check Created 4 years, 7 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
Index: third_party/WebKit/Source/core/css/html.css
diff --git a/third_party/WebKit/Source/core/css/html.css b/third_party/WebKit/Source/core/css/html.css
index dd64b36891dff501a8974f50a76df44dee6ea3dc..bd2b86a1b6323bdea86486bddf9383a5fe45f575 100644
--- a/third_party/WebKit/Source/core/css/html.css
+++ b/third_party/WebKit/Source/core/css/html.css
@@ -851,11 +851,20 @@ meter {
meter::-webkit-meter-inner-element {
-webkit-appearance: inherit;
box-sizing: inherit;
+ display: none;
-webkit-user-modify: read-only !important;
height: 100%;
width: 100%;
}
+meter::-webkit-meter-inner-element:-internal-shadow-host-has-appearance {
+ display: block;
+}
+
+meter::-internal-fallback:-internal-shadow-host-has-appearance {
+ display: none;
+}
+
meter::-webkit-meter-bar {
background: linear-gradient(to bottom, #ddd, #eee 20%, #ccc 45%, #ccc 55%, #ddd);
height: 100%;
« no previous file with comments | « third_party/WebKit/Source/core/css/SelectorChecker.cpp ('k') | third_party/WebKit/Source/core/css/parser/CSSParserSelector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698