fune/testing/web-platform/tests/css/css-pseudo/first-line-replaced-001-ref.html
Koji Ishii 61d129d72a Bug 1713298 [wpt PR 29151] - Use |Style| instead of |FirstLineStyle| for replaced elements, a=testonly
Automatic update from web-platform-tests
Use |Style| instead of |FirstLineStyle| for replaced elements

Before this change, NG was using |FirstLineStyle| for all
objects on the first line. But legacy uses |Style| in
|HandleReplaced|, even if they appear on the first line;
|LineInfo::IsFirstLine|[1] isn't used in |HandleReplaced|.

This changes NG to match the legacy logic.

Also unite the code with |NGPhysicalFragment|.

[1]: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/layout/line/line_info.h;l=46

Bug: 1186922
Change-Id: I85ab62a84842f88a808c2b7283c475c94b5e499b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2902984
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#887733}

--

wpt-commits: a2c15d80f128c8ab53f6ba9fab60c236eed978e4
wpt-pr: 29151
2021-06-08 19:05:17 +00:00

10 lines
141 B
HTML

<!DOCTYPE html>
<style>
.inner {
display: inline-block;
margin: 10px;
}
</style>
<body>
<div>A<span class=inner></span>C</div>
</body>