Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1308876 - Don't continue reflow after deciding we need to try aga…
…in due to page-break-inside:avoid. r=mats The primary patch in this bug causes fewer dirty reflows, which leads to lines being out-of-date for the reason described in the comment. This causes incorrect layout of some references sections on wikipedia, for which a simplified testcase is included. This bug was not caught by anything in our test suite, but I noticed it while browsing wikipedia (since I use a build that has my patches in it for my regular browsing). MozReview-Commit-ID: 4hTQpGS2pZH
- Loading branch information
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
layout/reftests/columns/break-avoid-line-position-1-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" dir="ltr"> | ||
<meta charset="UTF-8"/> | ||
<title>Wikipedia References Multicol Bug</title> | ||
|
||
<style> | ||
html { overflow: hidden } | ||
div { width: 15em; margin-right: 2em; float: left; } | ||
p { margin: 0 } | ||
</style> | ||
|
||
<div> | ||
<p>abcdefghijkl0000000000 abcdefghijkl1111111111 abcdefghijkl2222222222</p> | ||
<p>abcdefghijkl0000000000 abcdefghijkl1111111111 abcdefghijkl2222222222 abcdefghijkl3333333333</p> | ||
<p>abcdefghijkl0000000000 abcdefghijkl1111111111 abcdefghijkl2222222222</p> | ||
</div> | ||
<div> | ||
<p>abcdefghijkl0000000000 abcdefghijkl1111111111 abcdefghijkl2222222222 abcdefghijkl3333333333</p> | ||
<p>abcdefghijkl0000000000 abcdefghijkl1111111111 abcdefghijkl2222222222</p> | ||
<p>abcdefghijkl0000000000 abcdefghijkl1111111111</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" dir="ltr"> | ||
<meta charset="UTF-8"/> | ||
<title>Wikipedia References Multicol Bug</title> | ||
|
||
<style> | ||
html { overflow: hidden } | ||
div { width: 32em; column-count: 2; column-gap: 2em; } | ||
p { page-break-inside:avoid; margin: 0; } | ||
</style> | ||
|
||
<div> | ||
<p>abcdefghijkl0000000000 abcdefghijkl1111111111 abcdefghijkl2222222222</p> | ||
<p>abcdefghijkl0000000000 abcdefghijkl1111111111 abcdefghijkl2222222222 abcdefghijkl3333333333</p> | ||
<p>abcdefghijkl0000000000 abcdefghijkl1111111111 abcdefghijkl2222222222</p> | ||
<p>abcdefghijkl0000000000 abcdefghijkl1111111111 abcdefghijkl2222222222 abcdefghijkl3333333333</p> | ||
<p>abcdefghijkl0000000000 abcdefghijkl1111111111 abcdefghijkl2222222222</p> | ||
<p>abcdefghijkl0000000000 abcdefghijkl1111111111</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters