WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 243234
Bug 95123
<table> should have box-sizing: border-box in UA stylesheet
https://bugs.webkit.org/show_bug.cgi?id=95123
Summary
<table> should have box-sizing: border-box in UA stylesheet
Ojan Vafai
Reported
2012-08-27 13:48:08 PDT
Right now we implement this as hacks in RenderTable*. The html spec recently changed to require this
http://html5.org/r/7278
. There'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'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.
Attachments
Add attachment
proposed patch, testcase, etc.
Aleksandar Totic
Comment 1
2020-01-16 13:32:53 PST
FYI: Chrome will be fixing table's default box-sizing for the next release, patch is on its way:
https://chromium-review.googlesource.com/c/chromium/src/+/2003810
Tim Nguyen (:ntim)
Comment 2
2022-05-16 06:37:39 PDT
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&label=experimental&aligned
This WPT is part of Interop 2022.
Radar WebKit Bug Importer
Comment 3
2022-05-16 06:38:04 PDT
<
rdar://problem/93341589
>
Tim Nguyen (:ntim)
Comment 4
2022-08-10 17:59:28 PDT
*** This bug has been marked as a duplicate of
bug 243234
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug