OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description("Test to make sure background-position is parsed correctly.") | 8 description("Test to make sure background-position is parsed correctly.") |
9 | 9 |
10 var testContainer = document.createElement("div"); | 10 var testContainer = document.createElement("div"); |
11 document.body.appendChild(testContainer); | 11 document.body.appendChild(testContainer); |
12 | 12 |
13 testContainer.innerHTML = '<div style="width:500px;height:500px"><div id="test">
hello</div></div>'; | 13 testContainer.innerHTML = '<div style="width:500px;height:500px"><div id="test">
hello</div></div>'; |
14 | 14 |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 shouldBe("computedStyle.background", "'rgba(0, 0, 0, 0) none repeat scroll left
0% top 0% / auto padding-box border-box'"); | 527 shouldBe("computedStyle.background", "'rgba(0, 0, 0, 0) none repeat scroll left
0% top 0% / auto padding-box border-box'"); |
528 | 528 |
529 style.background = "20px 20px 30px / 40px gray top left round fixed border-box"; | 529 style.background = "20px 20px 30px / 40px gray top left round fixed border-box"; |
530 shouldBe("style.background", "''"); | 530 shouldBe("style.background", "''"); |
531 shouldBe("computedStyle.background", "'rgba(0, 0, 0, 0) none repeat scroll left
0% top 0% / auto padding-box border-box'"); | 531 shouldBe("computedStyle.background", "'rgba(0, 0, 0, 0) none repeat scroll left
0% top 0% / auto padding-box border-box'"); |
532 | 532 |
533 document.body.removeChild(testContainer); | 533 document.body.removeChild(testContainer); |
534 </script> | 534 </script> |
535 </body> | 535 </body> |
536 </html> | 536 </html> |
OLD | NEW |