OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <!-- | 2 <!-- |
3 Tests that the height keywords are not respected by the parser yet. | 3 Tests that the height keywords are not respected by the parser yet. |
4 --> | 4 --> |
5 <script src="../js/resources/js-test-pre.js"></script> | 5 <script src="../js/resources/js-test-pre.js"></script> |
6 | 6 |
7 <div style="height: -webkit-min-content; min-height: -webkit-min-content; max-he
ight: -webkit-min-content;" expected-data="min-content"></div> | 7 <div style="height: -webkit-min-content; min-height: -webkit-min-content; max-he
ight: -webkit-min-content;" expected-data="min-content"></div> |
8 <div style="height: -webkit-max-content; min-height: -webkit-max-content; max-he
ight: -webkit-max-content;" expected-data="max-content"></div> | 8 <div style="height: -webkit-max-content; min-height: -webkit-max-content; max-he
ight: -webkit-max-content;" expected-data="max-content"></div> |
9 <div style="height: -webkit-fill-available; min-height: -webkit-fill-available;
max-height: -webkit-fill-available;" expected-data="fill-available"></div> | 9 <div style="height: -webkit-fill-available; min-height: -webkit-fill-available;
max-height: -webkit-fill-available;" expected-data="fill-available"></div> |
10 <div style="height: -webkit-fit-content; min-height: -webkit-fit-content; max-he
ight: -webkit-fit-content;" expected-data="fit-content"></div> | 10 <div style="height: -webkit-fit-content; min-height: -webkit-fit-content; max-he
ight: -webkit-fit-content;" expected-data="fit-content"></div> |
(...skipping 16 matching lines...) Expand all Loading... |
27 div = document.createElement('div'); | 27 div = document.createElement('div'); |
28 div.style.height = PREFIX + keyword; | 28 div.style.height = PREFIX + keyword; |
29 div.style.minHeight = PREFIX + keyword; | 29 div.style.minHeight = PREFIX + keyword; |
30 div.style.maxHeight = PREFIX + keyword; | 30 div.style.maxHeight = PREFIX + keyword; |
31 shouldBe('div.style.height', '"' + PREFIX + keyword + '"'); | 31 shouldBe('div.style.height', '"' + PREFIX + keyword + '"'); |
32 shouldBe('div.style.minHeight', '"' + PREFIX + keyword + '"'); | 32 shouldBe('div.style.minHeight', '"' + PREFIX + keyword + '"'); |
33 shouldBe('div.style.maxHeight', '"' + PREFIX + keyword + '"'); | 33 shouldBe('div.style.maxHeight', '"' + PREFIX + keyword + '"'); |
34 }); | 34 }); |
35 </script> | 35 </script> |
36 | 36 |
37 <script src="../js/resources/js-test-post.js"></script> | |
OLD | NEW |