<?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>243234</bug_id>
          
          <creation_ts>2022-07-26 16:29:45 -0700</creation_ts>
          <short_desc>Adds &quot;box-sizing: border-box&quot; to table in UA stylesheet</short_desc>
          <delta_ts>2022-08-18 21:28:11 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=95123</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Nguyen (:ntim)">ntim</reporter>
          <assigned_to name="Karl Dubost">karlcow</assigned_to>
          <cc>akeerthi</cc>
    
    <cc>karlcow</cc>
    
    <cc>ojan</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1886939</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-07-26 16:29:45 -0700</bug_when>
    <thetext>https://wpt.fyi/results/html/rendering/non-replaced-elements/form-controls/resets.html?label=master&amp;label=experimental&amp;product=chrome&amp;product=firefox&amp;product=safari&amp;aligned&amp;q=label%3Ainterop-2022-forms</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1886941</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-26 16:30:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/97634949&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1887012</commentid>
    <comment_count>2</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2022-07-26 22:42:07 -0700</bug_when>
    <thetext>Testing 

Firefox Nightly 105.0a1
Google Chrome Canary 106.0.5203.0
Safari 16.0 18614.1.19.1.5



# Safari

https://github.com/WebKit/WebKit/blob/96a2ba1a024f4616153ea11eeabc148b68820cbf/Source/WebCore/css/html.css#L265-L272


```
td, th {
    display: table-cell;
    vertical-align: inherit;
}

th {
    font-weight: bold;
}
```

and

```
table {
    display: table;
    border-collapse: separate;
    border-spacing: 2px;
    border-color: gray;
    text-indent: initial;
}
```


# Firefox

https://searchfox.org/mozilla-central/rev/23bf1890e07f780ba70e075bc8f46ffb85d1128c/layout/style/res/html.css#476-481

```
td {
  display: table-cell;
  vertical-align: inherit;
  text-align: unset;
  padding: 1px;
}

th {
  display: table-cell;
  vertical-align: inherit;
  font-weight: bold;
  padding: 1px;
  text-align: -moz-center-or-inherit;
}
```

and

```
table {
  display: table;
  border-spacing: 2px;
  border-collapse: separate;
  /* XXXldb do we want this if we&apos;re border-collapse:collapse ? */
  box-sizing: border-box;
  text-indent: 0;
}
```


# Chrome

https://github.com/chromium/chromium/blob/27bbedde58559fefdf22316519176f712e112baa/third_party/blink/renderer/core/html/resources/html.css#L290-L294

```
td, th {
    display: table-cell;
    vertical-align: inherit
}

th {
    font-weight: bold;
    text-align: -internal-center
}
```

and table


```
table {
    display: table;
    border-collapse: separate;
    border-spacing: 2px;
    border-color: gray;
    box-sizing: border-box;
    text-indent: initial
}
```


Let&apos;s try to add box-sizing: border-box to table.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1887052</commentid>
    <comment_count>3</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2022-07-27 07:59:48 -0700</bug_when>
    <thetext>Adding box-sizing: border-box 
to 

table {
    display: table;
    border-collapse: separate;
    border-spacing: 2px;
    border-color: gray;
    text-indent: initial;
}


doesn&apos;t solve the issue.

The test has already an open bug which is Bug 95123</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1887053</commentid>
    <comment_count>4</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2022-07-27 08:07:18 -0700</bug_when>
    <thetext>Probably to check out for https://searchfox.org/wubkat/rev/607499977734f77ef66a84a9df7f9b2bf4a03278/Source/WebCore/rendering/RenderTable.cpp#330-365</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1887211</commentid>
    <comment_count>5</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2022-07-27 17:56:01 -0700</bug_when>
    <thetext>Ah wait. No it fixes it I had the wrong build when I tested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1887251</commentid>
    <comment_count>6</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2022-07-27 19:41:44 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/2800</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1887310</commentid>
    <comment_count>7</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2022-07-28 06:36:34 -0700</bug_when>
    <thetext>It seems it will fix other tests too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890475</commentid>
    <comment_count>8</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-08-10 17:59:28 -0700</bug_when>
    <thetext>*** Bug 95123 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892364</commentid>
    <comment_count>9</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-08-18 21:28:08 -0700</bug_when>
    <thetext>Committed 253581@main (8915be4c0470): &lt;https://commits.webkit.org/253581@main&gt;

Reviewed commits have been landed. Closing PR #2800 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>