gecko-dev/testing/web-platform/tests/css/css-text/white-space/white-space-empty-text-sibling.html
Rune Lillesveen 0b61e937ad Bug 1504390 [wpt PR 13872] - Keep previous_in_flow across shadow boundary., a=testonly
Automatic update from web-platform-testsKeep previous_in_flow across shadow boundary.

For some reason we created a new AttachContext entering a ShadowRoot for
AttachLayoutTree. If the shadow host was display:contents we would lose
the previous_in_flow from the shadow tree checking the need for
whitespace LayoutObject for shadow host siblings.

Created a common space-separated words expectation for css.

Bug: 901323
Change-Id: Ib2fa54d55923c0497ff8e96c5010e68b01570881
Reviewed-on: https://chromium-review.googlesource.com/c/1314589
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604910}

--

wpt-commits: 25b7275dd46568b0ba28201940cadac3045616ff
wpt-pr: 13872
2018-11-10 09:03:09 +00:00

11 lines
476 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-rules">
<link rel="match" href="../../reference/pass_if_two_words.html">
<p>There should be a space between "two" and "words" below.</p>
<div id="block"> <span>words</span></div>
<script>
block.insertBefore(document.createTextNode(""), block.firstChild);
block.insertBefore(document.createTextNode(""), block.firstChild);
block.offsetTop;
block.firstChild.data = "two";
</script>