From c2df6ad973f44a988d3c8fd51c671ef2ffee54ce Mon Sep 17 00:00:00 2001 From: "roc+%cs.cmu.edu" Date: Fri, 11 Aug 2000 20:28:49 +0000 Subject: [PATCH] Testcase for bug 25707. git-svn-id: svn://10.0.0.236/trunk@76137 18797224-902f-48f8-a5cc-f745e15eee43 --- .../html/tests/table/bugs/bug25707.html | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 mozilla/layout/html/tests/table/bugs/bug25707.html diff --git a/mozilla/layout/html/tests/table/bugs/bug25707.html b/mozilla/layout/html/tests/table/bugs/bug25707.html new file mode 100644 index 00000000000..b33931b4464 --- /dev/null +++ b/mozilla/layout/html/tests/table/bugs/bug25707.html @@ -0,0 +1,25 @@ + + +Bug 25707 + + + +

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.

+ +

+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. +

+ + + +
+

This is some text. This is some text.

+
+ + +