Regression(r188105): Seems to have caused crashes during PLT on some iPads
[WebKit-https.git] / LayoutTests / fast / css / background-layers-initial-size.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test-pre.js"></script>
5 <style>
6 div {
7     background: linear-gradient(45deg, rgba(0,0,0,.4) 50%, transparent 0) 100% 0 / 25px 25px no-repeat,
8                 linear-gradient(-135deg, transparent 18px, yellowgreen 0);
9
10     width: 12em;
11     height: 8em;
12 }
13 </style>
14 </head>
15 <body>
16 <div id="testDiv"></div>
17 <script>
18 description("Test that 'initial' background-size values are properly handled in background layers.");
19
20 var computedBackgroundSize = window.getComputedStyle(testDiv)["background-size"];
21 // The second layer should have "auto" as background size as it is its initial value.
22 shouldBeEqualToString("computedBackgroundSize", "25px 25px, auto");
23 </script>
24 <script src="../../resources/js-test-post.js"></script>
25 </body>
26 </html>