-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #466 - Infinite loop bug with zero width boxes using break-word.
Big thanks to @syjer for finding out where to start debugging this bug.
- Loading branch information
Showing
4 changed files
with
34 additions
and
3 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
Binary file added
BIN
+1.88 KB
...xamples/src/main/resources/visualtest/expected/issue-466-infinite-loop-table-cell-box.pdf
Binary file not shown.
25 changes: 25 additions & 0 deletions
25
...f-examples/src/main/resources/visualtest/html/issue-466-infinite-loop-table-cell-box.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 |
---|---|---|
@@ -1,6 +1,31 @@ | ||
<div> | ||
|
||
<!-- Width zero with content --> | ||
<div style="width: 0;">GHI</div> | ||
<div style="width: 0; word-wrap: break-word;">DEF</div> | ||
|
||
<!-- Width zero with breakable content --> | ||
<div style="width: 0;">PQR STU</div> | ||
<div style="width: 0; word-wrap: break-word;">VWX 123</div> | ||
|
||
<!-- Width zero with no content --> | ||
<div style="width: 0;"></div> | ||
<div style="width: 0; word-wrap: break-word;"></div> | ||
|
||
<!-- Negative content width with content --> | ||
<div style="box-sizing: border-box; width: 5px; padding: 0 5px;">JKL</div> | ||
<div style="box-sizing: border-box; width: 5px; padding: 0 5px; word-wrap: break-word;">MNO</div> | ||
|
||
<!-- Negative content width without content --> | ||
<div style="box-sizing: border-box; width: 5px; padding: 0 5px;"></div> | ||
<div style="box-sizing: border-box; width: 5px; padding: 0 5px; word-wrap: break-word;"></div> | ||
|
||
<!-- Zero width table cell as result of layout --> | ||
<table style="width: 3px;table-layout: fixed;"> | ||
<tr> | ||
<td colspan="2"></td> | ||
<td style="word-wrap: break-word;">ABC</td> | ||
</tr> | ||
</table> | ||
|
||
</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