Bug 123952
| Summary: | Fix inline-block baseline with overflow: <not visible> | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
| Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | bdakin, dino, hyatt, laughinghan, mmaxfield, simon.fraser |
| Priority: | P2 | Keywords: | BlinkMergeCandidate |
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Ryosuke Niwa
Consider merging https://src.chromium.org/viewvc/blink?revision=155341&view=revision
Fix inline-block baseline with overflow: <not visible>
They should align to the bottom of the margin box.
The baseline of an 'inline-block' is the baseline of its last line
box in the normal flow, unless it has either no in-flow line boxes or
if its 'overflow' property has a computed value other than 'visible',
in which case the baseline is the bottom margin edge.
and
https://chromium.googlesource.com/chromium/blink/+/581c77f25abb3fdfbbbb4e55fdaa5218245c3c32
r155341 (https://codereview.chromium.org/21414002) made us follow the
CSS spec for the alignment of overflow: hidden; in combination with
display: inline-block;. Unfortunately, that had the side-effect of
changing the baselines for <input> elements, because we internally
implement them as inline-blocks. This CL overrides the baseline
computation so that they align the same way with or without overflow.
(NOTE: Any websites that were broken by this can fix it by just removing
overflow: hidden, because it has no effect on <input> elements)
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Han
This appears to be a duplicate of https://bugs.webkit.org/show_bug.cgi?id=36084