mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
layout: Use a flag to record whether we need to perform a line break if
wrapping on newlines rather than searching for a newline character. Since the newline character might have been stripped out during whitespace stripping, this was incorrect. Fixes the "jumpiness" seen on the Google home page, Wikipedia, and many other places.
This commit is contained in:
6
tests/html/incremental_inline_line_flush_mode.html
Normal file
6
tests/html/incremental_inline_line_flush_mode.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<!-- This will become "jumpy" when mousing over "Bar" if trailing newlines are stripped from
|
||||
fragments during inline layout. -->
|
||||
<table><td><div style="white-space: pre">
|
||||
Foo</div></td><td><a href="/">Bar</a></td></table>
|
||||
|
||||
Reference in New Issue
Block a user