| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <template> |
| 2 <p>Test passes if all silver blocks are the same size as the green blocks next t
o them. | 3 <p>Test passes if all silver blocks are the same size as the green blocks next t
o them. |
| 3 <div id='horiz'> | 4 <div id='horiz'> |
| 4 <div class='pre'></div> | 5 <div class='pre'></div> |
| 5 <marquee>foo</marquee> | 6 <marquee>foo</marquee> |
| 6 <div class='post'></div> | 7 <div class='post'></div> |
| 7 </div> | 8 </div> |
| 8 <hr> | 9 <hr> |
| 9 <div id='vertAuto'> | 10 <div id='vertAuto'> |
| 10 <div class='pre'></div> | 11 <div class='pre'></div> |
| 11 <marquee direction='up'> | 12 <marquee direction='up'> |
| 12 Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonum
my nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. | 13 Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonum
my nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. |
| 13 </marquee> | 14 </marquee> |
| 14 <div class='post'> | 15 <div class='post'> |
| 15 Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonum
my nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. | 16 Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonum
my nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. |
| 16 </div> | 17 </div> |
| 17 </div> | 18 </div> |
| 18 <hr> | 19 <hr> |
| 19 <div id='vertFixed'> | 20 <div id='vertFixed'> |
| 20 <div class='pre'></div> | 21 <div class='pre'></div> |
| 21 <marquee direction='up'> | 22 <marquee direction='up'> |
| 22 Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonum
my nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. | 23 Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonum
my nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. |
| 23 </marquee> | 24 </marquee> |
| 24 <div class='post'></div> | 25 <div class='post'></div> |
| 25 </div> | 26 </div> |
| 27 </template> |
| 26 <style> | 28 <style> |
| 27 .pre { | 29 .pre { |
| 28 background: green; | 30 background: green; |
| 29 display: inline-block; | 31 display: inline-block; |
| 30 width: 50px; | 32 width: 50px; |
| 31 } | 33 } |
| 32 .post { | 34 .post { |
| 33 background: red; | 35 background: red; |
| 34 display: inline-block; | 36 display: inline-block; |
| 35 width: 50px; | 37 width: 50px; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 62 #vertFixed .pre { | 64 #vertFixed .pre { |
| 63 height: 100px; | 65 height: 100px; |
| 64 } | 66 } |
| 65 #vertFixed .post { | 67 #vertFixed .post { |
| 66 height: 200px; | 68 height: 200px; |
| 67 } | 69 } |
| 68 #vertFixed marquee { | 70 #vertFixed marquee { |
| 69 height: 100px; | 71 height: 100px; |
| 70 } | 72 } |
| 71 </style> | 73 </style> |
| 72 | 74 <div id="container"></div> |
| 73 <script src="../../resources/js-test.js"></script> | 75 <script src="../../resources/js-test.js"></script> |
| 74 <script> | 76 <script> |
| 77 // Add the content in the template tag to the document. |
| 78 var content = document.querySelector('template').content; |
| 79 document.querySelector('#container').appendChild(document.importNode(content, tr
ue)); |
| 80 |
| 81 description("Test the layout of the marquee element when it is instantiated in a
template tag."); |
| 75 description("The height of a horizontal marquee is computed as normal for inline
-blocks. The 'auto' height of a vertical marquee defaults to 200px."); | 82 description("The height of a horizontal marquee is computed as normal for inline
-blocks. The 'auto' height of a vertical marquee defaults to 200px."); |
| 76 var horiz = document.querySelector('#horiz marquee'); | 83 var horiz = document.querySelector('#horiz marquee'); |
| 77 var vertAuto = document.querySelector('#vertAuto marquee'); | 84 var vertAuto = document.querySelector('#vertAuto marquee'); |
| 78 var vertFixed = document.querySelector('#vertFixed marquee'); | 85 var vertFixed = document.querySelector('#vertFixed marquee'); |
| 79 shouldBe('getComputedStyle(horiz).height', '"10px"'); | 86 shouldBe('getComputedStyle(horiz).height', '"10px"'); |
| 80 shouldBe('getComputedStyle(vertAuto).height', '"380px"'); | 87 shouldBe('getComputedStyle(vertAuto).height', '"380px"'); |
| 81 shouldBe('getComputedStyle(vertFixed).height', '"100px"'); | 88 shouldBe('getComputedStyle(vertFixed).height', '"100px"'); |
| 82 if (window.testRunner) { | 89 if (window.testRunner) { |
| 83 testRunner.dumpAsText(); | 90 testRunner.dumpAsText(); |
| 84 } | 91 } |
| 85 </script> | 92 </script> |
| OLD | NEW |