diff --git a/layout/html/tests/formctls/bugs/bug17474-1.html b/layout/html/tests/formctls/bugs/bug17474-1.html new file mode 100644 index 000000000000..b00479dc6e90 --- /dev/null +++ b/layout/html/tests/formctls/bugs/bug17474-1.html @@ -0,0 +1,33 @@ + + +
+
200px wide

+This button should be 200x60
+ +
+
+
100x21

+This button should be 100x21
+ +
+
+This button should be 100x21
+ +
+
+
200px wide

+This button should be 200x60
+ +
+
+
100x21

+This button should be 100x21
+ +
+
+This button should be 100x21
+ +
+
+ + diff --git a/layout/html/tests/formctls/bugs/bug17474-2.html b/layout/html/tests/formctls/bugs/bug17474-2.html new file mode 100644 index 000000000000..f1869743c9f0 --- /dev/null +++ b/layout/html/tests/formctls/bugs/bug17474-2.html @@ -0,0 +1,44 @@ + + +
+This is a normal button with no CSS sizing,
+on Windows this sizes to 66x27:
+ +
+On Windows this should be sizing to 84x24
+here is a div that emulates it:
+
+
Press Me
+
+
+
+
200px wide

+This button should be 200x60
+ +
+
+
100x21

+This button should be 100x21
+ +
+
+This button should be 100x21
+ +
+
+
200px wide

+This button should be 200x60
+ +
+
+
100x21

+This button should be 100x21
+ +
+
+This button should be 100x21
+ +
+
+ + diff --git a/layout/html/tests/formctls/bugs/bug17474-3.html b/layout/html/tests/formctls/bugs/bug17474-3.html new file mode 100644 index 000000000000..f1e9bec87c19 --- /dev/null +++ b/layout/html/tests/formctls/bugs/bug17474-3.html @@ -0,0 +1,49 @@ + + +CSS sizing of INPUT wrong if other attributes present + + +

CSS sizing of INPUT wrong if other attributes present

+ +

This is an operational as well as a cosmentic defect: click in the yellow rectangles below +and type in a "j" to see the descender cut off - it looks like the text inside the +<input> is normal sized, but the <input> is too small. +

+ +

+All of these coloured rectangles are <input> elements using the style attribute to set +the background CSS property and their size.
+The <input> elements have a border in the table even though the table has border="0".
+The yellow <input> element is too small (type=text). The equivalent sized in px is okay.
+The green <input> elements are too large (size=1). +

+ + + + + + + + + + + + + + + + + + + +
1em by 1em; red; border 1px; margin 0 16px by 16px; red; border 1px; margin 0
1em by 1em; yellow; border 1px; margin 0 - type=text size=1 16px by 16px; red; border 1px; margin 0 - type=text size=1
1em by 1em; yellow; border 1px; margin 0 - type=text value="j" size=1 16px by 16px; red; border 1px; margin 0 - type=text value="j" size=1
1em by 1em; green; border 1px; margin 0 - size=1 16px by 16px; green; border 1px; margin 0 - size=1
+ + +

+It seems not to matter whether the <input> elements appear in a <table> or not, +or in a <form> or not.

+ + + + + diff --git a/layout/html/tests/formctls/bugs/bug180085-1.html b/layout/html/tests/formctls/bugs/bug180085-1.html new file mode 100644 index 000000000000..ceb577a4ea2a --- /dev/null +++ b/layout/html/tests/formctls/bugs/bug180085-1.html @@ -0,0 +1,18 @@ + + + + + Untitled + + + +
+ +
+ + + diff --git a/layout/html/tests/formctls/bugs/bug180085-2.html b/layout/html/tests/formctls/bugs/bug180085-2.html new file mode 100644 index 000000000000..4d9ffab6fd52 --- /dev/null +++ b/layout/html/tests/formctls/bugs/bug180085-2.html @@ -0,0 +1,18 @@ + + + + + Untitled + + + +
+ +
+ + + diff --git a/layout/html/tests/formctls/bugs/bug180085-3.html b/layout/html/tests/formctls/bugs/bug180085-3.html new file mode 100644 index 000000000000..dc29c357b3aa --- /dev/null +++ b/layout/html/tests/formctls/bugs/bug180085-3.html @@ -0,0 +1,16 @@ + + + input problem + + +
+ +
+
+
+
+
+
+ + + diff --git a/layout/html/tests/formctls/bugs/bug180085-4.html b/layout/html/tests/formctls/bugs/bug180085-4.html new file mode 100644 index 000000000000..03ef7ecf09f7 --- /dev/null +++ b/layout/html/tests/formctls/bugs/bug180085-4.html @@ -0,0 +1,34 @@ + + + input problem + + +
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + diff --git a/layout/html/tests/formctls/bugs/bug231574.html b/layout/html/tests/formctls/bugs/bug231574.html new file mode 100644 index 000000000000..d1b158a6b077 --- /dev/null +++ b/layout/html/tests/formctls/bugs/bug231574.html @@ -0,0 +1,14 @@ + + + Bug 231574 testcase + + +
+ + + + +
+ + + diff --git a/layout/html/tests/formctls/bugs/rtest.lst b/layout/html/tests/formctls/bugs/rtest.lst index bc459efe77c2..2ccc2d9943c6 100644 --- a/layout/html/tests/formctls/bugs/rtest.lst +++ b/layout/html/tests/formctls/bugs/rtest.lst @@ -8,9 +8,17 @@ bug117606.html bug138403-1.html bug138403-2.html bug17450.html +bug17474-1.html +bug17474-2.html +bug17474-3.html +bug180085-1.html +bug180085-2.html +bug180085-3.html +bug180085-4.html bug20322.html bug222864.html bug22708.html +bug231574.html bug26644.html bug26650.html bug28598.html