Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!doctype html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <title>Test that negative border image width values are ignored</title> | |
|
Julien - ping for review
2013/11/21 21:30:33
I usually advice people not to use <title> as they
| |
| 5 <script src="../../resources/js-test.js"></script> | |
| 6 <style> | |
| 7 .test { | |
| 8 border-image-width: 2 3 4 5; | |
| 9 border-image-width: -1; | |
| 10 border-image-width: -1 2; | |
| 11 border-image-width: 1 2 3 -0.1; | |
| 12 | |
| 13 border-image-outset: 6 7 8 9; | |
| 14 border-image-outset: -1; | |
| 15 border-image-outset: -1 2; | |
| 16 border-image-outset: 1 2 3 -0.1; | |
|
Julien - ping for review
2013/11/21 21:30:33
Shouldn't you also test the 3 number parsing? (sam
| |
| 17 | |
| 18 border-style: solid; | |
| 19 visibility: hidden; | |
| 20 } | |
| 21 </style> | |
| 22 </head> | |
| 23 <body> | |
| 24 <div class="test"></div> | |
| 25 <script> | |
| 26 var elm = getComputedStyle(document.querySelector('.test')); | |
| 27 shouldBeEqualToString("elm.borderImageWidth", "2 3 4 5"); | |
| 28 shouldBeEqualToString("elm.borderImageOutset", "6 7 8 9"); | |
| 29 </script> | |
| 30 </body> | |
| 31 </html> | |
| OLD | NEW |