Bug 1497506 [wpt PR 13381] - Make Element#innerText not to emit a space after inline-block and before block, a=testonly
authorYoshifumi Inoue <yosin@chromium.org>
Thu, 11 Oct 2018 09:32:19 +0000
changeset 496792 74e38368a4a8a37d5d6723e32e731403c82f3f3c
parent 496791 419ac57e1e50a056783bcdd9b5bcc767bf3e69d0
child 496793 6de808fa765f420d6b82ba481f62d2926f36cc59
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
bugs1497506, 13381, 1250825, 892500, 1264339, 597879
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 1497506 [wpt PR 13381] - Make Element#innerText not to emit a space after inline-block and before block, a=testonly Automatic update from web-platform-testsMake Element#innerText not to emit a space after inline-block and before block This patch makes Element#innerText not to emit a space after inline-block and before block for improving interop. This patch fixes regression caused by the patch[1]. [1] http://crrev.com/c/1250825 Make Element#innerText to not collapse white space around inline-block Bug: 892500 Cq-Include-Trybots: luci.chromium.try‚Äč:linux_layout_tests_layout_ng Change-Id: I4343c0d74f3445263a209697aaf3c24aef82a900 Reviewed-on: https://chromium-review.googlesource.com/c/1264339 Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org> Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#597879} -- wpt-commits: ba7e07fb0a92b94ef0dd83df5575c85b97d22027 wpt-pr: 13381
testing/web-platform/tests/html/dom/elements/the-innertext-idl-attribute/getter-tests.js
--- a/testing/web-platform/tests/html/dom/elements/the-innertext-idl-attribute/getter-tests.js
+++ b/testing/web-platform/tests/html/dom/elements/the-innertext-idl-attribute/getter-tests.js
@@ -51,16 +51,18 @@ testText("<div style='white-space:pre-li
 /**** Collapsing whitespace across element boundaries ****/
 
 testText("<div><span>abc </span> def", "abc def", "Whitespace collapses across element boundaries");
 testText("<div><span>abc </span><span></span> def", "abc def", "Whitespace collapses across element boundaries");
 testText("<div><span>abc </span><span style='white-space:pre'></span> def", "abc def", "Whitespace collapses across element boundaries");
 testText("<div>abc <input> def", "abc  def", "Whitespace around <input> should not be collapsed");
 testText("<div>abc <span style='display:inline-block'></span> def", "abc  def", "Whitespace around inline-block should not be collapsed");
 testText("<div>abc <span style='display:inline-block'> def </span> ghi", "abc def ghi", "Trailing space at end of inline-block should be collapsed");
+testText("<div><input> <div>abc</div>", "abc", "Whitespace between <input> and block should be collapsed");
+testText("<div><span style='inline-block'></span> <div>abc</div>", "abc", "Whitespace between inline-block and block should be collapsed");
 
 /**** Soft line breaks ****/
 
 testText("<div style='width:0'>abc def", "abc def", "Soft line breaks ignored");
 testText("<div style='width:0'><span>abc</span> <span>def</span>", "abc def", "Whitespace text node preserved");
 
 /**** first-line/first-letter ****/