Bug 156869 - Intrinsic content height computation should ignore box-sizing value
Summary: Intrinsic content height computation should ignore box-sizing value
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dave Hyatt
URL:
Keywords: InRadar
: 156917 (view as bug list)
Depends on: 156918
Blocks:
  Show dependency treegraph
 
Reported: 2016-04-21 14:15 PDT by Dave Hyatt
Modified: 2016-04-22 12:42 PDT (History)
6 users (show)

See Also:


Attachments
Patch (1.04 KB, patch)
2016-04-21 14:16 PDT, Dave Hyatt
no flags Details | Formatted Diff | Diff
Patch (3.57 KB, patch)
2016-04-22 08:50 PDT, Dave Hyatt
zalan: review+
Details | Formatted Diff | Diff
Patch (3.60 KB, patch)
2016-04-22 11:42 PDT, Dave Hyatt
zalan: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Hyatt 2016-04-21 14:15:21 PDT
We already get passed in the content height, so subtracting out borders/padding from that value because of box-sizing results in an incorrect value.
Comment 1 Dave Hyatt 2016-04-21 14:15:38 PDT
This breaks messenger.com on Facebook.
Comment 2 Dave Hyatt 2016-04-21 14:16:08 PDT
Created attachment 276958 [details]
Patch
Comment 3 Dave Hyatt 2016-04-22 08:47:51 PDT
This is the cause of:

<rdar://problem/23204668> REGRESSION (r189567): The top of Facebook's messenger.com looks visually broken in some window sizes
Comment 4 Dave Hyatt 2016-04-22 08:50:38 PDT
Created attachment 277063 [details]
Patch
Comment 5 Dave Hyatt 2016-04-22 08:57:56 PDT
Fixed in r199877.
Comment 6 WebKit Commit Bot 2016-04-22 10:51:27 PDT
Re-opened since this is blocked by bug 156918
Comment 7 Ryan Haddad 2016-04-22 11:24:35 PDT
*** Bug 156917 has been marked as a duplicate of this bug. ***
Comment 8 Dave Hyatt 2016-04-22 11:42:54 PDT
Created attachment 277081 [details]
Patch

I uploaded the wrong patch. The real fix was more low-level in order to apply everywhere.
Comment 9 Dave Hyatt 2016-04-22 12:42:12 PDT
Landed in r199895.