<?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>162047</bug_id>
          
          <creation_ts>2016-09-15 21:29:29 -0700</creation_ts>
          <short_desc>Web Inspector: Use CSS variables for common text colors</short_desc>
          <delta_ts>2016-12-16 11:13:27 -0800</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>NEW</bug_status>
          <resolution></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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Baker">mattbaker</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1230307</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Baker">mattbaker</who>
    <bug_when>2016-09-15 21:29:29 -0700</bug_when>
    <thetext>Summary:
Use CSS variables for common text colors.

Color usage identified by running ack over the UserInterface directory:

&gt; ack -ohi --nogroup --css --match=&quot;hsl\(.*\)&quot; | sort -r | uniq -c | sort -r

9  color: hsl(0, 0%, 60%)
9  color: hsl(0, 0%, 50%)
3  color: hsl(0, 0%, 70%)
3  color: hsl(0, 0%, 22%)
3  color: hsl(0, 0%, 18%)
2  color: hsl(209, 100%, 50%)
2  color: hsl(0, 0%, 85%)
2  color: hsl(0, 0%, 40%)
2  color: hsl(0, 0%, 4%)
2  color: hsl(0, 0%, 30%)
2  color: hsl(0, 0%, 23%)
2  color: hsl(0, 0%, 20%)
2  color: hsl(0, 0%, 0%, 0.25)
9  color: hsl(0, 0%, 60%)
9  color: hsl(0, 0%, 50%)
3  color: hsl(0, 0%, 70%)
3  color: hsl(0, 0%, 22%)
3  color: hsl(0, 0%, 18%)
2  color: hsl(209, 100%, 50%)
2  color: hsl(0, 0%, 85%)
2  color: hsl(0, 0%, 40%)
2  color: hsl(0, 0%, 4%)
2  color: hsl(0, 0%, 30%)
2  color: hsl(0, 0%, 23%)
2  color: hsl(0, 0%, 20%)
2  color: hsl(0, 0%, 0%, 0.25)
1  color: hsl(44, 53%, 33%)
1  color: hsl(43, 96%, 44%)
1  color: hsl(359, 57%, 50%)
1  color: hsl(309, 21%, 70%)
1  color: hsl(30, 90%, 35%)
1  color: hsl(295, 76%, 32%)
1  color: hsl(248, 52%, 78%)
1  color: hsl(240, 55%, 30%)
1  color: hsl(240, 55%, 25%)
1  color: hsl(240, 100%, 52%)
1  color: hsl(210, 100%, 40%)
1  color: hsl(210, 100%, 33%)
1  color: hsl(210, 0%, 0%)
1  color: hsl(207, 46%, 59%)
1  color: hsl(206, 69%, 45%)
1  color: hsl(119, 27%, 65%)
1  color: hsl(119, 100%, 22%)
1  color: hsl(1, 33%, 70%)
1  color: hsl(0, 86%, 47%)
1  color: hsl(0, 75%, 45%)
1  color: hsl(0, 59%, 41%)
1  color: hsl(0, 33%, 49%)
1  color: hsl(0, 100%, 100%)
1  color: hsl(0, 0%, 82%)
1  color: hsl(0, 0%, 75%)
1  color: hsl(0, 0%, 74%)
1  color: hsl(0, 0%, 65%)
1  color: hsl(0, 0%, 57%)
1  color: hsl(0, 0%, 46%)
1  color: hsl(0, 0%, 45%)
1  color: hsl(0, 0%, 37%)
1  color: hsl(0, 0%, 34%)
1  color: hsl(0, 0%, 33%)
1  color: hsl(0, 0%, 32%)
1  color: hsl(0, 0%, 31%)
1  color: hsl(0, 0%, 14%)
1  color: hsl(0, 0%, 12%)
1  color: hsl(0, 0%, 11%)

The most frequently used colors should be added to Variables.css. Colors that are used only once, and visually indistinguishable from another more frequently used color, should be replaced.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1230308</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-09-15 21:29:56 -0700</bug_when>
    <thetext>&lt;rdar://problem/28332668&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1230655</commentid>
    <comment_count>2</comment_count>
    <who name="Matt Baker">mattbaker</who>
    <bug_when>2016-09-16 16:00:49 -0700</bug_when>
    <thetext>This should have been:
&gt; ack -ohi --nogroup --css --match=&quot; color: hsl\(.*\)&quot; | sort -r | uniq -c | sort -r

Which limits the search to `color` properties:

9  color: hsl(0, 0%, 60%)
9  color: hsl(0, 0%, 50%)
3  color: hsl(0, 0%, 70%)
3  color: hsl(0, 0%, 22%)
3  color: hsl(0, 0%, 18%)
2  color: hsl(209, 100%, 50%)
2  color: hsl(0, 0%, 85%)
2  color: hsl(0, 0%, 40%)
2  color: hsl(0, 0%, 4%)
2  color: hsl(0, 0%, 23%)
2  color: hsl(0, 0%, 20%)
2  color: hsl(0, 0%, 0%, 0.25)
1  color: hsl(44, 53%, 33%)
1  color: hsl(43, 96%, 44%)
1  color: hsl(359, 57%, 50%)
1  color: hsl(309, 21%, 70%)
1  color: hsl(30, 90%, 35%)
1  color: hsl(295, 76%, 32%)
1  color: hsl(248, 52%, 78%)
1  color: hsl(240, 55%, 30%)
1  color: hsl(240, 55%, 25%)
1  color: hsl(240, 100%, 52%)
1  color: hsl(210, 100%, 40%)
1  color: hsl(210, 100%, 33%)
1  color: hsl(210, 0%, 0%)
1  color: hsl(207, 46%, 59%)
1  color: hsl(206, 69%, 45%)
1  color: hsl(119, 27%, 65%)
1  color: hsl(119, 100%, 22%)
1  color: hsl(1, 33%, 70%)
1  color: hsl(0, 86%, 47%)
1  color: hsl(0, 75%, 45%)
1  color: hsl(0, 59%, 41%)
1  color: hsl(0, 33%, 49%)
1  color: hsl(0, 100%, 100%)
1  color: hsl(0, 0%, 82%)
1  color: hsl(0, 0%, 75%)
1  color: hsl(0, 0%, 74%)
1  color: hsl(0, 0%, 65%)
1  color: hsl(0, 0%, 57%)
1  color: hsl(0, 0%, 46%)
1  color: hsl(0, 0%, 45%)
1  color: hsl(0, 0%, 37%)
1  color: hsl(0, 0%, 34%)
1  color: hsl(0, 0%, 33%)
1  color: hsl(0, 0%, 32%)
1  color: hsl(0, 0%, 31%)
1  color: hsl(0, 0%, 30%)
1  color: hsl(0, 0%, 14%)
1  color: hsl(0, 0%, 12%)
1  color: hsl(0, 0%, 11%)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1230656</commentid>
    <comment_count>3</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2016-09-16 16:04:52 -0700</bug_when>
    <thetext>This one is invalid: color: hsl(0, 0%, 0%, 0.25)

Should be hsla() or just black.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1230660</commentid>
    <comment_count>4</comment_count>
    <who name="Matt Baker">mattbaker</who>
    <bug_when>2016-09-16 16:16:01 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; This one is invalid: color: hsl(0, 0%, 0%, 0.25)
&gt; 
&gt; Should be hsla() or just black.

Good catch! This should be --text-color-placeholder, which is hsla(0, 0%, 0%, 0.35).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1260658</commentid>
    <comment_count>5</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2016-12-16 11:13:27 -0800</bug_when>
    <thetext>I don&apos;t think this is important to do by itself. We can just refactor as we touch text colors in UI changes.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>