<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>215681</bug_id>
          
          <creation_ts>2020-08-19 20:03:41 -0700</creation_ts>
          <short_desc>Web Inspector: Elements: Styles: don&apos;t show swatches for properties that aren&apos;t used/apply</short_desc>
          <delta_ts>2020-08-24 10:24:57 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>215680</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Devin Rousso">hi</reporter>
          <assigned_to name="Devin Rousso">hi</assigned_to>
          <cc>bburg</cc>
    
    <cc>hi</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>nvasilyev</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1681588</commentid>
    <comment_count>0</comment_count>
    <who name="Devin Rousso">hi</who>
    <bug_when>2020-08-19 20:03:41 -0700</bug_when>
    <thetext>a common pattern in CSS is to have two of the same property next to each other, the earlier intended as a fallback for the latter

```
    color: black;
    color: var(--color);
```

showing a swatch in front of the former property isn&apos;t all that useful as it&apos;s not used/applied and just adds to the confusion of what is used/applied (especially after bug 215680)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1681591</commentid>
    <comment_count>1</comment_count>
      <attachid>406903</attachid>
    <who name="Devin Rousso">hi</who>
    <bug_when>2020-08-19 20:05:28 -0700</bug_when>
    <thetext>Created attachment 406903
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1681611</commentid>
    <comment_count>2</comment_count>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2020-08-19 21:05:09 -0700</bug_when>
    <thetext>I&apos;m a little bit on the fence about this. Leaning towards that the benefits of this patch outweigh the downsides.

On one hand, the strikethrough doesn&apos;t go over the swatches and it looks bad. From the visual design perspective, this patch is an improvement.
On the other hand, I find it useful to see what colors are overridden.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1681763</commentid>
    <comment_count>3</comment_count>
    <who name="Devin Rousso">hi</who>
    <bug_when>2020-08-20 12:20:35 -0700</bug_when>
    <thetext>(In reply to Nikita Vasilyev from comment #2)
&gt; On one hand, the strikethrough doesn&apos;t go over the swatches and it looks bad. From the visual design perspective, this patch is an improvement.

Agreed.

&gt; On the other hand, I find it useful to see what colors are overridden.

Really?  I&apos;ve never really found this to be something I cared for.  Not to mention, in my experience the thing that&apos;s overridden is often a raw color (i.e. not a variable), meaning that I can just read it to see what color is used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1682359</commentid>
    <comment_count>4</comment_count>
      <attachid>406903</attachid>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2020-08-24 10:00:34 -0700</bug_when>
    <thetext>Comment on attachment 406903
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=406903&amp;action=review

r=me with a question.

&gt; Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js:466
&gt; +        if (this._property.enabled &amp;&amp; !this._property.overridden &amp;&amp; this._property.valid &amp;&amp; !this._property.hasOtherVendorNameOrKeyword())

Do we support any hasOtherVendorNameOrKeyword properties that do not have an unprefixed counterpart? This seems fine, unless it means some obscure --webkit- properties no longer get swatches.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1682367</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-08-24 10:11:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/67685687&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1682379</commentid>
    <comment_count>6</comment_count>
      <attachid>406903</attachid>
    <who name="Devin Rousso">hi</who>
    <bug_when>2020-08-24 10:22:58 -0700</bug_when>
    <thetext>Comment on attachment 406903
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=406903&amp;action=review

&gt;&gt; Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js:466
&gt;&gt; +        if (this._property.enabled &amp;&amp; !this._property.overridden &amp;&amp; this._property.valid &amp;&amp; !this._property.hasOtherVendorNameOrKeyword())
&gt; 
&gt; Do we support any hasOtherVendorNameOrKeyword properties that do not have an unprefixed counterpart? This seems fine, unless it means some obscure --webkit- properties no longer get swatches.

IIRC `hasOtherVendorNameOrKeyword` checks to see whether the name/value starts with `-moz-`/`-ms-`/`-o-`, so it shouldn&apos;t ever affect anything starting with `-webkit`.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1682380</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2020-08-24 10:24:56 -0700</bug_when>
    <thetext>Committed r266070: &lt;https://trac.webkit.org/changeset/266070&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 406903.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>406903</attachid>
            <date>2020-08-19 20:05:28 -0700</date>
            <delta_ts>2020-08-24 10:24:57 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>215681.diff</filename>
            <type>text/plain</type>
            <size>1549</size>
            <attacher name="Devin Rousso">hi</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJJbnNwZWN0b3J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