OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 <script> | 5 <script> |
6 function getComputedStyleForElement(element, cssPropertyName) | 6 function getComputedStyleForElement(element, cssPropertyName) |
7 { | 7 { |
8 if (window.getComputedStyle) { | 8 if (window.getComputedStyle) { |
9 return window.getComputedStyle(element, '').getPropertyValue(cssProperty
Name); | 9 return window.getComputedStyle(element, '').getPropertyValue(cssProperty
Name); |
10 } | 10 } |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 document.body.removeChild(document.getElementById('wrapper')); | 25 document.body.removeChild(document.getElementById('wrapper')); |
26 | 26 |
27 isSuccessfullyParsed(); | 27 isSuccessfullyParsed(); |
28 } | 28 } |
29 </script> | 29 </script> |
30 <style> | 30 <style> |
31 .test { | 31 .test { |
32 display: inline-block; | 32 display: inline-block; |
33 border: 1px solid black; | 33 border: 1px solid black; |
34 font-family: ahem; | 34 font-family: Ahem; |
35 } | 35 } |
36 div > span { | 36 div > span { |
37 padding-left: 30px; | 37 padding-left: 30px; |
38 } | 38 } |
39 img { | 39 img { |
40 width: 50px; | 40 width: 50px; |
41 height: 50px; | 41 height: 50px; |
42 } | 42 } |
43 </style> | 43 </style> |
44 </head> | 44 </head> |
45 <body onload="test()"> | 45 <body onload="test()"> |
46 <div>Test for Bugzilla bug:<a href="https://bugs.webkit.org/show_bug.cgi?id=9944
2"> 99442</a> Regression r130057: Improper preferred width calculation when an i
nline replaced object, wrapped in an inline flow, follows some text.</div> | 46 <div>Test for Bugzilla bug:<a href="https://bugs.webkit.org/show_bug.cgi?id=9944
2"> 99442</a> Regression r130057: Improper preferred width calculation when an i
nline replaced object, wrapped in an inline flow, follows some text.</div> |
47 <br> | 47 <br> |
48 <div id="wrapper" style="width: 50px;"> | 48 <div id="wrapper" style="width: 50px;"> |
49 <div class="test" id="div1"> | 49 <div class="test" id="div1"> |
50 <span>This is some text</span><span><img src="resources/50x50.gif"/></span> | 50 <span>This is some text</span><span><img src="resources/50x50.gif"/></span> |
51 </div> | 51 </div> |
52 <div class="test" id="div2"> | 52 <div class="test" id="div2"> |
53 <span>This is some text</span><span><img src="resources/50x50.gif"/></span><span
>This is some text</span> | 53 <span>This is some text</span><span><img src="resources/50x50.gif"/></span><span
>This is some text</span> |
54 </div> | 54 </div> |
55 <div class="test" id="div3"> | 55 <div class="test" id="div3"> |
56 <span>This is some text</span><span><img src="resources/50x50.gif"/></span><span
><img src="resources/50x50.gif"/></span><span><img src="resources/50x50.gif"/></
span> | 56 <span>This is some text</span><span><img src="resources/50x50.gif"/></span><span
><img src="resources/50x50.gif"/></span><span><img src="resources/50x50.gif"/></
span> |
57 </div> | 57 </div> |
58 </div> | 58 </div> |
59 <p id="description"></p> | 59 <p id="description"></p> |
60 <div id="console"></div> | 60 <div id="console"></div> |
61 </body> | 61 </body> |
62 </html> | 62 </html> |
63 | 63 |
OLD | NEW |