forked from mirrors/gecko-dev
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
10 lines
141 B
HTML
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>
|