mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
Testcase for bug 25707.
This commit is contained in:
parent
3497b17dba
commit
030eab6a54
25
layout/html/tests/table/bugs/bug25707.html
Normal file
25
layout/html/tests/table/bugs/bug25707.html
Normal file
@ -0,0 +1,25 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Bug 25707</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>The table below should be sized so that each word of text wraps to its own line,
|
||||
and if the font size is not too large, then the table will not be wider than the screen.</p>
|
||||
|
||||
<p>
|
||||
Previously, the table would be incredibly wide, wide enough so that the entire paragraph of text
|
||||
was on one line. That was because the "maxElementSize" of the cell was including margins calculated
|
||||
from the desired size of the text (in this case, 19x the desired width of the paragraph). The fix
|
||||
was to calculate the margin for the "maxElementSize" of the cell using the "maxElementSize" of the
|
||||
contained block itself, which in this case is the maximum width of a word.
|
||||
</p>
|
||||
|
||||
<table border="1">
|
||||
<tr><td>
|
||||
<p style="margin-left: 95%;">This is some text. This is some text.</p>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user