Title: [161052] trunk/LayoutTests
- Revision
- 161052
- Author
- [email protected]
- Date
- 2013-12-24 00:11:38 -0800 (Tue, 24 Dec 2013)
Log Message
Add a test for reattaching collapsed whitespace when siblings change style
https://bugs.webkit.org/show_bug.cgi?id=126053
Reviewed by Dan Bernstein.
Merge the test from https://chromium.googlesource.com/chromium/blink/+/dd5636728643ff958aebeaf064d38754b0d5904b
so that we may not introduce the same regression in WebKit.
* fast/css/collapsed-whitespace-reattach-in-style-recalc-expected.txt: Added.
* fast/css/collapsed-whitespace-reattach-in-style-recalc.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (161051 => 161052)
--- trunk/LayoutTests/ChangeLog 2013-12-24 08:05:56 UTC (rev 161051)
+++ trunk/LayoutTests/ChangeLog 2013-12-24 08:11:38 UTC (rev 161052)
@@ -1,3 +1,16 @@
+2013-12-24 Ryosuke Niwa <[email protected]>
+
+ Add a test for reattaching collapsed whitespace when siblings change style
+ https://bugs.webkit.org/show_bug.cgi?id=126053
+
+ Reviewed by Dan Bernstein.
+
+ Merge the test from https://chromium.googlesource.com/chromium/blink/+/dd5636728643ff958aebeaf064d38754b0d5904b
+ so that we may not introduce the same regression in WebKit.
+
+ * fast/css/collapsed-whitespace-reattach-in-style-recalc-expected.txt: Added.
+ * fast/css/collapsed-whitespace-reattach-in-style-recalc.html: Added.
+
2013-12-23 Ryosuke Niwa <[email protected]>
XMLHttpRequest: status and statusText throw DOM Exception 11 when the state is UNSENT or OPENED.
Added: trunk/LayoutTests/fast/css/collapsed-whitespace-reattach-in-style-recalc-expected.txt (0 => 161052)
--- trunk/LayoutTests/fast/css/collapsed-whitespace-reattach-in-style-recalc-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/css/collapsed-whitespace-reattach-in-style-recalc-expected.txt 2013-12-24 08:11:38 UTC (rev 161052)
@@ -0,0 +1,9 @@
+This test ensures that we properly reattach collapsed whitespace when sibling style changes require. Test passes if the spans below are justified across the page.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS
+ spans[spans.length - 1].offsetLeft is >= container.offsetWidth * 2 / 3
+
+
Added: trunk/LayoutTests/fast/css/collapsed-whitespace-reattach-in-style-recalc.html (0 => 161052)
--- trunk/LayoutTests/fast/css/collapsed-whitespace-reattach-in-style-recalc.html (rev 0)
+++ trunk/LayoutTests/fast/css/collapsed-whitespace-reattach-in-style-recalc.html 2013-12-24 08:11:38 UTC (rev 161052)
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+div {
+ text-align: justify;
+}
+
+.inlineBlock {
+ display: inline-block;
+}
+
+span {
+ display: block;
+}
+
+div:after {
+ content: '';
+ display: inline-block;
+ width: 100%;
+}
+
+</style>
+<script src=""
+<script>
+description('This test ensures that we properly reattach collapsed whitespace when sibling style changes require. Test passes if the spans below are justified across the page.');
+_onload_ = function() {
+ spans = document.getElementsByTagName("span");
+ for (var i = spans.length - 1; i >= 0; i--)
+ spans[i].classList.add('inlineBlock');
+ var container = document.getElementById('container');
+ shouldBeGreaterThanOrEqual('spans[spans.length - 1].offsetLeft', "container.offsetWidth * 2 / 3");
+ container.style.display = 'none';
+}
+</script>
+</head>
+<body>
+<div id="container">
+ <span>Item 1</span>
+ <span>Item 2</span>
+ <span>Item 3</span>
+</div>
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes