Bug 126576 - display:table with padding and/or borders in border-box calculates height incorrectly
Summary: display:table with padding and/or borders in border-box calculates height inc...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P1 Critical
Assignee: Nobody
URL: http://jsfiddle.net/qpMQC/
Keywords: BlinkMergeCandidate
Depends on:
Blocks:
 
Reported: 2014-01-07 05:31 PST by aaron
Modified: 2014-02-25 14:25 PST (History)
13 users (show)

See Also:


Attachments
Testcase (483 bytes, text/html)
2014-01-07 05:32 PST, aaron
no flags Details
Patch (14.01 KB, patch)
2014-01-27 08:46 PST, Laszlo Vidacs
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description aaron 2014-01-07 05:31:34 PST
Applying display:table on elements in box-sizing:border-box mode reduces the total height of the element when padding or a border is added.
Comment 1 aaron 2014-01-07 05:32:03 PST
Created attachment 220516 [details]
Testcase
Comment 2 aaron 2014-01-23 10:51:14 PST
This only seems to apply for absolutely positioned elements.
Comment 3 aaron 2014-01-24 12:01:53 PST
This has been confirmed to work on Chrome Version 32.0.1700.76m. Closing.
Comment 4 Csaba Osztrogonác 2014-01-27 08:38:58 PST
Reopen, because the bug is still valid on WebKit.
Comment 5 Laszlo Vidacs 2014-01-27 08:46:35 PST
Created attachment 222329 [details]
Patch
Comment 6 Dave Hyatt 2014-02-25 13:53:52 PST
Comment on attachment 222329 [details]
Patch

r=me
Comment 7 WebKit Commit Bot 2014-02-25 14:25:47 PST
Comment on attachment 222329 [details]
Patch

Clearing flags on attachment: 222329

Committed r164674: <http://trac.webkit.org/changeset/164674>
Comment 8 WebKit Commit Bot 2014-02-25 14:25:51 PST
All reviewed patches have been landed.  Closing bug.