Bug 1495225 [wpt PR 13270] - Skip empty text nodes for whitespace attachment., a=testonly
authorRune Lillesveen <futhark@chromium.org>
Fri, 05 Oct 2018 14:21:36 +0000
changeset 495812 c7ddb680470c8b83b6bd7ab8a12c5034a4ba523c
parent 495811 a79e5413cf505f8f4a71f574ad78768a56f6a7ef
child 495813 ad9556381625d7b52bbb2ab024a736ebb875636d
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1495225, 13270, 428313, 1252467, 595350
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1495225 [wpt PR 13270] - Skip empty text nodes for whitespace attachment., a=testonly Automatic update from web-platform-testsSkip empty text nodes for whitespace attachment. Setting empty text nodes as the last seen text node for the WhitespaceAttacher leads to subsequent whitespace nodes not being re- attached. Just skip empty text nodes as if they weren't there. Bug: 428313 Change-Id: I79a6382d7215ec46bfb9165c04b1acb190e6357a Reviewed-on: https://chromium-review.googlesource.com/1252467 Reviewed-by: Koji Ishii <kojii@chromium.org> Commit-Queue: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#595350} -- wpt-commits: 8fdada1229c39a1afcef42e7f9d7477c27f69eef wpt-pr: 13270
testing/web-platform/tests/css/css-text/white-space/reference/white-space-empty-text-sibling-ref.html
testing/web-platform/tests/css/css-text/white-space/white-space-empty-text-sibling.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/white-space/reference/white-space-empty-text-sibling-ref.html
@@ -0,0 +1,3 @@
+<!DOCTYPE html>
+<p>There should be a space between "Two" and "words".</p>
+Two words
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/white-space/white-space-empty-text-sibling.html
@@ -0,0 +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>
+<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>