RESOLVED FIXED 126053
Add a test for reattaching collapsed whitespace when siblings change style
https://bugs.webkit.org/show_bug.cgi?id=126053
Summary Add a test for reattaching collapsed whitespace when siblings change style
Ryosuke Niwa
Reported 2013-12-19 22:08:29 PST
Merge the test from https://chromium.googlesource.com/chromium/blink/+/dd5636728643ff958aebeaf064d38754b0d5904b so that we may not introduce the same regression in WebKit.
Attachments
Adds the test (2.86 KB, patch)
2013-12-19 22:11 PST, Ryosuke Niwa
mitz: review+
Ryosuke Niwa
Comment 1 2013-12-19 22:11:32 PST
Created attachment 219730 [details] Adds the test
mitz
Comment 2 2013-12-20 18:36:01 PST
Comment on attachment 219730 [details] Adds the test View in context: https://bugs.webkit.org/attachment.cgi?id=219730&action=review > LayoutTests/fast/css/collapsed-whitespace-reattach-in-style-recalc.html:31 > + shouldBeGreaterThanOrEqual('spans[spans.length - 1].offsetLeft', "400"); Is there a way to write this 400 as “more than half the width of ” something?
Ryosuke Niwa
Comment 3 2013-12-24 00:07:46 PST
(In reply to comment #2) > (From update of attachment 219730 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=219730&action=review > > > LayoutTests/fast/css/collapsed-whitespace-reattach-in-style-recalc.html:31 > > + shouldBeGreaterThanOrEqual('spans[spans.length - 1].offsetLeft', "400"); > > Is there a way to write this 400 as “more than half the width of ” something? Replaced it with container.offsetWidth * 2 / 3.
Ryosuke Niwa
Comment 4 2013-12-24 00:08:10 PST
Note You need to log in before you can comment on or make changes to this bug.