<?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>256528</bug_id>
          
          <creation_ts>2023-05-09 09:24:32 -0700</creation_ts>
          <short_desc>Sync `hr` element UA stylesheet for missing &apos;color: gray&apos;</short_desc>
          <delta_ts>2023-07-14 12:06:07 -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>CSS</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>258725</dup_id>
          
          <bug_file_loc>http://wpt.live/html/rendering/non-replaced-elements/the-hr-element-0/hr.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>annevk</cc>
    
    <cc>karlcow</cc>
    
    <cc>ntim</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1954054</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-09 09:24:32 -0700</bug_when>
    <thetext>HI Team,

While looking into failing testcase on WPT, I noticed that Firefox is passing this test case:

WPT Link - https://wpt.fyi/results/html/rendering/non-replaced-elements/the-hr-element-0/hr.html?label=experimental&amp;label=master&amp;aligned

Color - !EQ(&quot;rgb(128, 128, 128)&quot;, &quot;rgb(0, 0, 0)&quot;)

While looking at HTML Standard: https://html.spec.whatwg.org/#the-hr-element-2

I noticed that it has:

color: gray;

^ it is also present in &apos;Firefox&apos; html.css file (UA stylesheet).

Adding this in local build and checking above testcase, we start to pass failing test case.

Just wanted to raise so we can fix this and if we have any reason to not do this then we can do so.

NOTE - we are doing opposite in this regard for &lt;table&gt; border to ask for removing &apos;color: gray&apos; while asking to have it for &apos;hr&apos; element.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955374</commentid>
    <comment_count>1</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-05-15 01:28:36 -0700</bug_when>
    <thetext>We could do it. I don&apos;t think there is an issue against it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955377</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-15 01:44:12 -0700</bug_when>
    <thetext>(In reply to Karl Dubost from comment #1)
&gt; We could do it. I don&apos;t think there is an issue against it.

My only concern is that WebKit had ‘table-border: gray’ and standards said a ‘Nope’, you have ‘black’ as default but nothing from UA Stylesheet and now we have web-spec saying for ‘gray’ to be in UA stylesheet. It seems like two opposite things to do in forcing colors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955397</commentid>
    <comment_count>3</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-05-15 04:44:22 -0700</bug_when>
    <thetext>Given that Chromium and WebKit match I would suggest raising an issue against whatwg/html to get the standard changed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955553</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2023-05-15 17:53:34 -0700</bug_when>
    <thetext>I think all browsers display it gray, or some variation. Blink &amp; WebKit display it at rgb(154,154,154) which is close to gray (rgb(128,128,128)).

The only difference is that the spec suggests to use `border-color: currentColor` and then set the `color` to the actual color (which is nicer, since you can tweak the color the HR using the color property as well).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955679</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-05-16 09:25:20 -0700</bug_when>
    <thetext>&lt;rdar://problem/109409002&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1966787</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-07-14 12:06:07 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 258725 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>