mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01: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:
parent
3d6d102fd1
commit
8741d9e8c4
3 changed files with 47 additions and 13 deletions
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>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue