Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <script src="../../resources/testharness.js"></script> | |
| 3 <script src="../../resources/testharnessreport.js"></script> | |
| 4 <svg width="100" height="100"> | |
| 5 <text id="text1">Text1</text> | |
| 6 <text id="text2" style="width: 20px; height: 30%">Text2</text> | |
| 7 </svg> | |
| 8 <script> | |
| 9 test(function() { | |
| 10 assert_equals(getComputedStyle(text1).width, 'auto'); | |
| 11 assert_equals(getComputedStyle(text1).height, 'auto'); | |
| 12 assert_equals(getComputedStyle(text2).width, '20px'); | |
| 13 assert_equals(getComputedStyle(text2).height, '30%'); | |
| 14 }); | |
|
fs
2017/04/05 21:36:38
Add a <title> or an explicit test name (or there'l
Xianzhu
2017/04/05 21:48:25
Done.
| |
| 15 </script> | |
| OLD | NEW |