[wpt-sync] Sync PR 19382 - [LayoutNG] Fix inline-block overflow
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 19382 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/19382
Details from upstream follow.
Aleks Totic <atotic@chromium.org> wrote:
[LayoutNG] Fix inline-block overflow
Scrolling overflow for line boxes was being computed
incorrectly. The block_end padding was being added
to linebox's scroll overflow. It should have been
added to linebox border box instead.While investigating the standards that define
this behavior, I noticed that csswg has resolved
that both inline_padding and block_padding should
be used for overflow.The existing code only used inline_padding. This did
not cause an error because block_padding was being added
somewhere else. I investigated, and it seems that
block_padding got added to layout_result.IntrinsicBlockSize(),
which then got passed to box_->ComputeLayoutOverflow()
I am not sure of why this is being done, and why it works.
I think that adding LayoutUnder() when we are explicitly
computing overflow is the right thing to do. It'll make
this code work when we switch to pure NG overflow
computation.Bug: 1003373
Change-Id: I39b8399de463e9e9f1a2c4d906362b14f9a783ca
Reviewed-on: https://chromium-review.googlesource.com/1829490
WPT-Export-Revision: 16410178749782ae60213bba0828ee379febdd6a
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=eaa80e016069cc0262f6ab59dd990a29d4f8ff15
Assignee | ||
Comment 2•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=9d820e6c106ec723008027c0f629cd3fe04e999d
Assignee | ||
Comment 3•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=c7ecef57d6658db701a4fac875562ba332707195
Assignee | ||
Comment 4•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=1103037e5f65b7936d325e739451f2a5be545524
Assignee | ||
Comment 5•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=5747052641d5ca365d49a373a8fed34d54d11371
Assignee | ||
Comment 6•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=30fe7f40652743b760a4c7609b7573a187b525c7
Assignee | ||
Comment 7•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=1fb6770ddb5711e00a4f5020f586645999bb64fc
Assignee | ||
Comment 8•5 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=5ca0f27c68b0b63e409e6662f9f5ae0987a003f7
Assignee | ||
Comment 9•5 years ago
|
||
Ran 1 tests and 1 subtests OK : 1 FAIL : 1 New tests that have failures or other problems: /css/css-overflow/overflow-padding.html Container padding is applied approriately to block/inline children.: FAIL
Comment 10•5 years ago
|
||
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/2e111506432f [wpt PR 19382] - [LayoutNG] Fix inline-block overflow, a=testonly https://hg.mozilla.org/integration/mozilla-inbound/rev/80721d621f5b [wpt PR 19382] - Update wpt metadata, a=testonly
Comment 11•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/2e111506432f
https://hg.mozilla.org/mozilla-central/rev/80721d621f5b
Description
•