Chromium Code Reviews| Index: LayoutTests/fast/css/border-image-value-grammar.html |
| diff --git a/LayoutTests/fast/css/border-image-value-grammar.html b/LayoutTests/fast/css/border-image-value-grammar.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c0d568cf3c7760247eda1da8d58d3ec3b25d1d6e |
| --- /dev/null |
| +++ b/LayoutTests/fast/css/border-image-value-grammar.html |
| @@ -0,0 +1,22 @@ |
| +<!DOCTYPE html> |
| +<script src="../../resources/js-test.js"></script> |
| +<script> |
| +description("Support consecutive slash operators for border-image"); |
| + |
| +var element = document.createElement('div'); |
| +var style = element.style; |
| +style.borderImage = '3 / / 2'; |
| +shouldBe("style.getPropertyValue('border-image-slice')", "'3'"); |
|
Timothy Loh
2014/12/18 23:13:05
Can we use shouldBeEqualToString? :)
je_julie(Not used)
2014/12/19 02:17:53
Done.
|
| +shouldBe("style.getPropertyValue('border-image-width')", "'initial'"); |
| +shouldBe("style.getPropertyValue('border-image-outset')", "'2'"); |
| + |
| +style.borderImage = '4 / 5'; |
| +shouldBe("style.getPropertyValue('border-image-slice')", "'4'"); |
| +shouldBe("style.getPropertyValue('border-image-width')", "'5'"); |
| +shouldBe("style.getPropertyValue('border-image-outset')", "'initial'"); |
| + |
| +style.borderImage = '1 / 2 / 3'; |
| +shouldBe("style.getPropertyValue('border-image-slice')", "'1'"); |
| +shouldBe("style.getPropertyValue('border-image-width')", "'2'"); |
| +shouldBe("style.getPropertyValue('border-image-outset')", "'3'"); |
| +</script> |