Bug 120498 - Fix baseline computation for nested inline-blocks
Summary: Fix baseline computation for nested inline-blocks
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BlinkMergeCandidate
Depends on:
Blocks:
 
Reported: 2013-08-29 15:36 PDT by Ryosuke Niwa
Modified: 2022-09-28 15:49 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2013-08-29 15:36:09 PDT
Consider merging https://chromium.googlesource.com/chromium/blink/+/c608372cc09f02cd9e7cce737a33bb6798ab82b3

This moves the check for overflow: <not visible> into
inlineBlockBaseline, so that the baseline gets correctly calculated for
an outer inline-block when an inner inline-block or block has
overflow: hidden.

We also do this if the inner block is not an inline-block -- this
matches Firefox behavior and is required for at least one website
(http://in.yahoo.com/).
Comment 1 Ahmad Saleem 2022-09-28 15:49:06 PDT
Test Case 1 - https://jsfiddle.net/9r1f6m7j/show - Works same across all browsers (Safari 16, Chrome Canary 108 and Firefox Nightly 107)

Test Case 2 - https://jsfiddle.net/o1ye6bct/show

Difference in browsers:

>> Safari 16 show second line same as Firefox Nightly 107 in terms of scroll position compared to Chrome Canary 108

>> Safari 16 show all boxes in first line display their scrollbar at bottom (scrolled).