Title: [266070] trunk/Source/WebInspectorUI
Revision
266070
Author
drou...@apple.com
Date
2020-08-24 10:24:52 -0700 (Mon, 24 Aug 2020)

Log Message

Web Inspector: Elements: Styles: don't show swatches for properties that aren't used/apply
https://bugs.webkit.org/show_bug.cgi?id=215681

Reviewed by Brian Burg.

* UserInterface/Views/SpreadsheetStyleProperty.js:
(WI.SpreadsheetStyleProperty.prototype._renderValue):

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (266069 => 266070)


--- trunk/Source/WebInspectorUI/ChangeLog	2020-08-24 17:21:07 UTC (rev 266069)
+++ trunk/Source/WebInspectorUI/ChangeLog	2020-08-24 17:24:52 UTC (rev 266070)
@@ -1,5 +1,15 @@
 2020-08-24  Devin Rousso  <drou...@apple.com>
 
+        Web Inspector: Elements: Styles: don't show swatches for properties that aren't used/apply
+        https://bugs.webkit.org/show_bug.cgi?id=215681
+
+        Reviewed by Brian Burg.
+
+        * UserInterface/Views/SpreadsheetStyleProperty.js:
+        (WI.SpreadsheetStyleProperty.prototype._renderValue):
+
+2020-08-24  Devin Rousso  <drou...@apple.com>
+
         Web Inspector: Elements: Styles: don't show non-inherited properties
         https://bugs.webkit.org/show_bug.cgi?id=215682
 

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js (266069 => 266070)


--- trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js	2020-08-24 17:21:07 UTC (rev 266069)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js	2020-08-24 17:24:52 UTC (rev 266070)
@@ -463,7 +463,7 @@
         const maxValueLength = 150;
         let tokens = WI.tokenizeCSSValue(value);
 
-        if (this._property.enabled)
+        if (this._property.enabled && !this._property.overridden && this._property.valid && !this._property.hasOtherVendorNameOrKeyword())
             tokens = this._replaceSpecialTokens(tokens);
 
         tokens = tokens.map((token) => {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to