Bug 1523562 [wpt PR 14874] - [LayoutNG] Fix inserting a child into an anonymous first-line inline., a=testonly

Automatic update from web-platform-tests
[LayoutNG] Fix inserting a child into an anonymous first-line inline.

This fixes a bug that was brought up in:
https://chromium-review.googlesource.com/c/chromium/src/+/1405884

Effectively we now have an anonymous inline wrapper representing the
first-line style. We also have checks in the current codebase relating
to a similar concept with display:contents. Makes sure this branch
is only hit for the display:contents case.

Bug: 636993
Cq-Include-Trybots: luci.chromium.try​:linux_layout_tests_layout_ng
Change-Id: I0271952aa981d861cc7a33e646b5594efe22da1f
Reviewed-on: https://chromium-review.googlesource.com/c/1413634
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#623239}

--

wpt-commits: 7c130ba6a9684b077ea9e05bc4ac6a277e0432c6
wpt-pr: 14874
This commit is contained in:
Ian Kilpatrick 2019-01-31 18:55:58 +00:00 коммит произвёл James Graham
Родитель 7e1b7d98c4
Коммит f393c42b95
2 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,4 @@
<!DOCTYPE html>
<style>div::first-line { font-family:monospace; color:green; }</style>
<p>Test passes if PASS is displayed in green below.</p>
<div>PASS</div>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-display/">
<link rel="match" href="display-inline-dynamic-001-ref.html">
<style>div::first-line { font-family:monospace; color:green; }</style>
<p>Test passes if PASS is displayed in green below.</p>
<div>P<span id="showme" style="display:none;">AS</span>S</div>
<script>
document.body.offsetTop;
showme.style.display = "inline";
</script>