fune/testing/web-platform/tests/css/css-pseudo/first-line-with-inline-block.html
Kent Tamura 81a8e1124a Bug 1674754 [wpt PR 26357] - css-pseudo: :first-line should not affect inline-blocks, a=testonly
Automatic update from web-platform-tests
css-pseudo: :first-line should not affect inline-blocks

https://drafts.csswg.org/css-pseudo-4/#first-text-line
> The first line of a table-cell or inline-block cannot be the first
> formatted line of an ancestor element.

This CL fixes a regression by LayoutNG.
The new behavior matches to the legacy layout and Safari.

Bug: 1143621
Change-Id: I1421bef1f4a35f7c88a7becf5d5b61d51befbf20
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2513959
Commit-Queue: Koji Ishii <kojii@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Auto-Submit: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#823108}

--

wpt-commits: fca57e6fc8aab6eadada6a04afbffd4a4b7b9543
wpt-pr: 26357
2020-11-06 12:14:03 +00:00

17 lines
389 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-text-line">
<link rel="match" href="reference/first-line-with-inline-block-ref.html">
<style>
.fl:first-line {
color: red;
}
.fl-atomic {
display: inline-block;
}
.fl-atomic:first-line {
color: lime;
}
</style>
<div class="fl">
FIRST <div class="fl-atomic">first</span><br>second</div> FIRST
</div>