Change NetworkConnectionToWebProcess* to NetworkConnectionToWebProcess& where possible
[WebKit-https.git] / LayoutTests / fast / backgrounds / background-shorthand-after-set-backgroundSize.html
1 <!DOCTYPE html>
2 <html>
3 <script src="../../resources/js-test-pre.js"></script>
4 <div id="test"> </div>
5 <script>
6 description("Tests a flag to make background shorthand property not override background-size when it's already set.");
7
8 var e = document.getElementById('test');
9
10 if (window.internals) {
11     window.internals.settings.setUseLegacyBackgroundSizeShorthandBehavior(true);
12
13     e.style.backgroundSize = "cover";
14     e.style.background = "center red url(dummy://test.png) no-repeat border-box";
15     shouldBe("e.style.background", "'url(\"dummy://test.png\") center center / cover no-repeat border-box border-box red'")
16     shouldBe("e.style.backgroundSize", "'cover'");
17     debug("")
18
19     window.internals.settings.setUseLegacyBackgroundSizeShorthandBehavior(false);
20 }
21
22 </script>
23 <script src="../../resources/js-test-post.js"></script>
24 </body>
25 </html>