OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <p id="description"></p> | 7 <p id="description"></p> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <script> | 9 <script> |
10 description("This test checks that textareas have the right metrics. These numbe
rs match IE7 except for scrollHeight. For two reasons:<br>" + | 10 description("This test checks that textareas have the right metrics. These numbe
rs match IE7 except for scrollHeight. For two reasons:<br>" + |
11 "1. scrollHeight is different for elements without enough content to cause scrol
l because IE7 then reports the height of the text inside the " + | 11 "1. scrollHeight is different for elements without enough content to cause scrol
l because IE7 then reports the height of the text inside the " + |
12 "element as the scrollHeight. IE8 reports has scrollHeight == offsetHeight. Geck
o/WebKit have scrollHeight == clientHeight.<br>" + | 12 "element as the scrollHeight. IE8 reports has scrollHeight == offsetHeight. Geck
o/WebKit have scrollHeight == clientHeight.<br>" + |
13 "2. For the elements with scroll in standards-mode, IE wraps the text differentl
y. It seems to leave 2px less space for the text. We don't " + | 13 "2. For the elements with scroll in standards-mode, IE wraps the text differentl
y. It seems to leave 2px less space for the text. We don't " + |
14 "currently mimic this quirk. It's not clear whether we should given that we agre
e with IE7's clientWidth numbers in all these cases."); | 14 "currently mimic this quirk. It's not clear whether we should given that we agre
e with IE7's clientWidth numbers in all these cases."); |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 offsetHeight: 68, | 159 offsetHeight: 68, |
160 scrollWidth: 68 - scroll
barPlusBorderWidth, | 160 scrollWidth: 68 - scroll
barPlusBorderWidth, |
161 scrollHeight: 76}; | 161 scrollHeight: 76}; |
162 | 162 |
163 testTextareasForDocument(standardsIframe.contentWindow.document, 'CSS1Compat', | 163 testTextareasForDocument(standardsIframe.contentWindow.document, 'CSS1Compat', |
164 textareaSizesStandards, textareaWithScrollSizesStandard
s, | 164 textareaSizesStandards, textareaWithScrollSizesStandard
s, |
165 textareaWith8pxPaddingSizesStandards, textareaWith8pxPa
ddingAndScrollbarSizesStandards); | 165 textareaWith8pxPaddingSizesStandards, textareaWith8pxPa
ddingAndScrollbarSizesStandards); |
166 </script> | 166 </script> |
167 </body> | 167 </body> |
168 </html> | 168 </html> |
OLD | NEW |