gecko-dev/testing/web-platform/tests/css/CSS2/linebox/vertical-align-nested-top-001.html
Koji Ishii 67517cefd3 Bug 1487663 [wpt PR 12777] - [LayoutNG] Fix when 'vertical-align: top' is nested, a=testonly
Automatic update from web-platform-tests[LayoutNG] Fix when 'vertical-align: top' is nested

The 'vertical-align: top' and 'bottom' require the size of
the ancestor line box and thus are put into pending queue
while applying the baseline shift.

When they are nested, processing all pending queue at the
root line box applies the shift multiple times. This patch
puts into the queue of the nearest ancestor that has 'top'
or 'bottom' if exists.

Bug: 877977
Cq-Include-Trybots: luci.chromium.try​:linux_layout_tests_layout_ng
Change-Id: I6541d138267a6e42658b601901b673352e625440
Reviewed-on: https://chromium-review.googlesource.com/1198887
Commit-Queue: Koji Ishii <kojii@chromium.org>
Reviewed-by: Emil A Eklund <eae@chromium.org>
Cr-Commit-Position: refs/heads/master@{#588042}

--

wpt-commits: b81e490a7032404418b325277312884b07208ed3
wpt-pr: 12777
2018-09-10 10:11:25 +00:00

20 lines
435 B
HTML

<!DOCTYPE html>
<link rel="match" href="vertical-align-nested-top-001-ref.html">
<link rel="help" href="https://drafts.csswg.org/css2/visudet.html#propdef-vertical-align" />
<link rel="author" href="kojii@chromium.org">
<style>
body {
font-size: 18px;
line-height: 20px;
}
.hb {
font-size: 12px;
vertical-align: top;
}
.g2 {
vertical-align: top;
}
</style>
<body>
<span class="hb">X<span class="g2">X</span></span>
</body>