зеркало из https://github.com/mozilla/gecko-dev.git
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
This commit is contained in:
Родитель
95ac7e6930
Коммит
0b61e937ad
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>Whitespace across display:contents shadow host</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-display-3/#valdef-display-contents">
|
||||
<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="host" style="display:contents"></div> <span>words</span>
|
||||
<script>
|
||||
host.attachShadow({mode:"open"}).innerHTML = "two";
|
||||
</script>
|
|
@ -3,7 +3,7 @@
|
|||
<title>CSS Flexbox Test: Flex item - contiguous text runs - node removal</title>
|
||||
<link rel="author" title="Rune Lillesveen" href="mailto:futhark@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-items">
|
||||
<link rel="match" href="anonymous-flex-item-ref.html">
|
||||
<link rel="match" href="../reference/pass_if_two_words.html">
|
||||
<p>There should be a space between "two" and "words" below.</p>
|
||||
<div style="display:flex">two <span id="spanRemove"></span>words</div>
|
||||
<script>
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
<title>CSS Flexbox Test: Flex item - contiguous text runs - display:none</title>
|
||||
<link rel="author" title="Rune Lillesveen" href="mailto:futhark@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-items">
|
||||
<link rel="match" href="anonymous-flex-item-ref.html">
|
||||
<link rel="match" href="../reference/pass_if_two_words.html">
|
||||
<p>There should be a space between "two" and "words" below.</p>
|
||||
<div style="display:flex">two <span style="display:none"></span>words</div>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<title>CSS Flexbox Test: Flex item - contiguous text runs - display:none dynamic</title>
|
||||
<link rel="author" title="Rune Lillesveen" href="mailto:futhark@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-items">
|
||||
<link rel="match" href="anonymous-flex-item-ref.html">
|
||||
<link rel="match" href="../reference/pass_if_two_words.html">
|
||||
<p>There should be a space between "two" and "words" below.</p>
|
||||
<div style="display:flex">two <span id="noneSpan"></span>words</div>
|
||||
<script>
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<p>There should be a space between "Two" and "words".</p>
|
||||
Two words
|
|
@ -1,11 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-rules">
|
||||
<link rel="match" href="reference/white-space-empty-text-sibling-ref.html">
|
||||
<p>There should be a space between "Two" and "words".</p>
|
||||
<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";
|
||||
block.firstChild.data = "two";
|
||||
</script>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Reftest Reference</title>
|
||||
<link rel="author" title="Rune Lillesveen" href="mailto:futhark@chromium.org">
|
||||
<p>There should be a space between "two" and "words" below.</p>
|
||||
two words
|
Загрузка…
Ссылка в новой задаче