<?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>284726</bug_id>
          
          <creation_ts>2024-12-15 19:24:50 -0800</creation_ts>
          <short_desc>WPT regression for css/css-tables/html-to-css-mapping-2.html</short_desc>
          <delta_ts>2025-01-13 23:55:19 -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>CSS</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://wpt.live/css/css-tables/html-to-css-mapping-2.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>195016</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Karl Dubost">karlcow</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dholbert</cc>
    
    <cc>koivisto</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2081923</commentid>
    <comment_count>0</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-12-15 19:24:50 -0800</bug_when>
    <thetext>When fixing Bug 195016 
table border-color should be currentColor by default, not gray

with 
https://github.com/WebKit/WebKit/pull/33916

The test 
https://github.com/web-platform-tests/wpt/blob/38623a53d6598cb7aab4be8a810102b352a652df/css/css-tables/html-to-css-mapping-2.html

progressed one test, but regressed 5 others.

``` 
git diff a1fc5cb7c15cd65d8c5b784f8f0e6db3fb2df7df..main -- ../../LayoutTests/imported/w3c/web-platform-tests/css/css-tables/html-to-css-mapping-2-expected.txt
```

Gives:


```diff
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-tables/html-to-css-mapping-2-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-tables/html-to-css-mapping-2-expected.txt
index 65dcc14e8ce3..444f05f14f3c 100644
--- a/LayoutTests/imported/w3c/web-platform-tests/css/css-tables/html-to-css-mapping-2-expected.txt
+++ b/LayoutTests/imported/w3c/web-platform-tests/css/css-tables/html-to-css-mapping-2-expected.txt
@@ -53,13 +53,13 @@ border-color:gray comes from table[border=$w]
 
 PASS 1: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (table left width)
 PASS 1: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (table left style)
-PASS 1: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (table left color)
+FAIL 1: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (table left color) assert_equals: expected &quot;rgb(128, 128, 128)&quot; but got &quot;rgb(0, 0, 0)&quot;
 PASS 2: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (table left width)
 FAIL 2: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (table left style) assert_equals: expected &quot;outset&quot; but got &quot;solid&quot;
-FAIL 2: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (table left color) assert_equals: expected &quot;rgb(0, 0, 0)&quot; but got &quot;rgb(128, 128, 128)&quot;
+PASS 2: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (table left color)
 FAIL 3a: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (table left width) assert_equals: expected &quot;10px&quot; but got &quot;1px&quot;
 FAIL 3a: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (table left style) assert_equals: expected &quot;outset&quot; but got &quot;solid&quot;
-PASS 3a: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (table left color)
+FAIL 3a: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (table left color) assert_equals: expected &quot;rgb(128, 128, 128)&quot; but got &quot;rgb(0, 0, 0)&quot;
 FAIL 3b: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (td top width) assert_equals: expected &quot;1px&quot; but got &quot;0px&quot;
 FAIL 3b: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (td top style) assert_equals: expected &quot;inset&quot; but got &quot;none&quot;
 FAIL 3b: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (td top color) assert_equals: expected &quot;rgb(128, 128, 128)&quot; but got &quot;rgb(0, 0, 0)&quot;
@@ -68,12 +68,12 @@ FAIL 3c: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (t
 FAIL 3c: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (td left color) assert_equals: expected &quot;rgb(128, 128, 128)&quot; but got &quot;rgb(0, 0, 0)&quot;
 PASS 4: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (table left width)
 PASS 4: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (table left style)
-PASS 4: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (table left color)
+FAIL 4: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (table left color) assert_equals: expected &quot;rgb(128, 128, 128)&quot; but got &quot;rgb(0, 0, 0)&quot;
 PASS 4: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (td left width)
 PASS 4: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (td left style)
-PASS 4: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (td left color)
+FAIL 4: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (td left color) assert_equals: expected &quot;rgb(128, 128, 128)&quot; but got &quot;rgb(0, 0, 0)&quot;
 PASS 5a: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (table left style)
 FAIL 5b: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (table right width) assert_equals: expected &quot;10px&quot; but got &quot;1px&quot;
 PASS 5b: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (table right style)
-PASS 5b: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (table right color)
+FAIL 5b: HTML -&gt; CSS Mapping for borders is applied correctly on table markup (table right color) assert_equals: expected &quot;rgb(128, 128, 128)&quot; but got &quot;rgb(0, 0, 0)&quot;

```

There is probably some other differences to fix with regards to the way the table colors are applied.

see http://wpt.live/css/css-tables/html-to-css-mapping-2.html for the live test. 

Regressed. 

1. Table left color      (failed by Firefox too)
3a. Table left color   (failed by Firefox too)
4. Table left color.    (failed by Firefox too)
5b. Tablet left color (failed by Firefox too)

Mozilla Bugzilla 
https://bugzilla.mozilla.org/show_bug.cgi?id=1887417

Is it an issue with the tests?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2081927</commentid>
    <comment_count>1</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-12-15 19:39:00 -0800</bug_when>
    <thetext>I also filed https://github.com/w3c/csswg-drafts/issues/11377

and note the same test regression for Firefox.
https://bugzilla.mozilla.org/show_bug.cgi?id=1887417</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2081928</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-12-15 19:39:29 -0800</bug_when>
    <thetext>&lt;rdar://problem/141526764&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2086983</commentid>
    <comment_count>3</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2025-01-13 23:55:19 -0800</bug_when>
    <thetext>I have the feeling the test needs to be updated. 

Some of these tests are also failed by all browsers.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>