<?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>95123</bug_id>
          
          <creation_ts>2012-08-27 13:48:08 -0700</creation_ts>
          <short_desc>&lt;table&gt; should have box-sizing: border-box in UA stylesheet</short_desc>
          <delta_ts>2022-08-10 17:59:28 -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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>243234</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=243234</see_also>
          <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="Ojan Vafai">ojan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>a</cc>
    
    <cc>eric</cc>
    
    <cc>hyatt</cc>
    
    <cc>jchaffraix</cc>
    
    <cc>ntim</cc>
    
    <cc>tony</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>705628</commentid>
    <comment_count>0</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2012-08-27 13:48:08 -0700</bug_when>
    <thetext>Right now we implement this as hacks in RenderTable*. The html spec recently changed to require this http://html5.org/r/7278.

There&apos;s a difference in behavior from our current table code, but it brings us in line with gecko/opera. In standards mode a table element that is display:block should still be border-box, but we render it as content-box. Also, we&apos;d correctly return border-box for the computed style of tables instead of content-box and web sites would be able to override it to make their tables be content-box.

http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=1621
http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=1622

In gecko, opera, webkit a div that is display:table currently defaults to content-box.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1607633</commentid>
    <comment_count>1</comment_count>
    <who name="Aleksandar Totic">a</who>
    <bug_when>2020-01-16 13:32:53 -0800</bug_when>
    <thetext>FYI: Chrome will be fixing table&apos;s default box-sizing for the next release, patch is on its way:

https://chromium-review.googlesource.com/c/chromium/src/+/2003810</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1869211</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-05-16 06:37:39 -0700</bug_when>
    <thetext>This is consistent with other browsers, and part of the spec: https://html.spec.whatwg.org/#tables-2

https://wpt.fyi/results/html/rendering/non-replaced-elements/form-controls/resets.html?label=master&amp;label=experimental&amp;aligned

This WPT is part of Interop 2022.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1869212</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-05-16 06:38:04 -0700</bug_when>
    <thetext>&lt;rdar://problem/93341589&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890474</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-08-10 17:59:28 -0700</bug_when>
    <thetext>

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

    </bug>

</bugzilla>