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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/CSSMetadata.js

Issue 2644703002: DevTools: Show CSS variables in the inherited properties cascade (Closed)
Patch Set: test Created 3 years, 11 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/devtools/front_end/sdk/CSSMetadata.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/CSSMetadata.js b/third_party/WebKit/Source/devtools/front_end/sdk/CSSMetadata.js
index 8add4b5bdbd628080367f4ef647395046326ca5c..6a76d0283de77b417d5c5f03548c54c7231c4be0 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/CSSMetadata.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/CSSMetadata.js
@@ -180,7 +180,8 @@ SDK.CSSMetadata = class {
*/
isPropertyInherited(propertyName) {
propertyName = propertyName.toLowerCase();
- return this._inherited.has(this.canonicalPropertyName(propertyName)) || this._inherited.has(propertyName);
+ return propertyName.startsWith('--') || this._inherited.has(this.canonicalPropertyName(propertyName)) ||
+ this._inherited.has(propertyName);
}
/**

Powered by Google App Engine
This is Rietveld 408576698