| Index: third_party/WebKit/LayoutTests/fast/css/background-image-size-serialization.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/css/background-image-size-serialization.html b/third_party/WebKit/LayoutTests/fast/css/background-image-size-serialization.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8a6e4b2f3333ce7ff281cbab75527cd5914fdf2c
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/css/background-image-size-serialization.html
|
| @@ -0,0 +1,28 @@
|
| +<script src="../../resources/js-test.js"></script>
|
| +<style>
|
| +.noposition
|
| +{
|
| + background: url("foo.png");
|
| + background-size: contain;
|
| +}
|
| +.position1
|
| +{
|
| + background: url("foo.png");
|
| + background-position: 1px;
|
| + background-size: contain;
|
| +}
|
| +.position2
|
| +{
|
| + background: url("foo.png");
|
| + background-position: 1px 1px;
|
| + background-size: contain;
|
| +}
|
| +</style>
|
| +<script>
|
| +var cssRules = document.styleSheets[1].cssRules;
|
| +
|
| +shouldBe('cssRules.length', '3');
|
| +shouldBeEqualToString('cssRules[0].cssText', '.noposition { background: url("foo.png") 0% 0% / contain; }');
|
| +shouldBeEqualToString('cssRules[1].cssText', '.position1 { background: url("foo.png") 1px 50% / contain; }');
|
| +shouldBeEqualToString('cssRules[2].cssText', '.position2 { background: url("foo.png") 1px 1px / contain; }');
|
| +</script>
|
|
|