Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / shapes / parsing / parsing-shape-property-aliases.html
blob857c0e9123878c6d8b59684a540f9b70a1bf620b
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script src="parsing-test-utils.js"></script>
8 <script>
9 description('Test that CSS Shapes properties with the -webkit prefix alias the unprefixed properties.');
11 // This test is only necessary until the prefixed CSS properties have been removed
13 function getAliasCSSValue(alias, property, value)
15 var element = document.createElement("div");
16 element.style.setProperty(alias, value);
17 return element.style.getPropertyValue(property);
20 function testPropertyAlias(alias, property, value)
22 shouldBeEqualToString("getAliasCSSValue('" + alias + "','" + property + "','" + value +"')", value);
25 applyToEachArglist(
26 testPropertyAlias,
27 [// [alias, property, value]
28 ["shape-outside", "shape-outside", "circle(0px at 0% 0%)"],
29 ["shape-margin", "shape-margin", "10px"],
30 ["shape-image-threshold", "shape-image-threshold", "0.5"]
33 </script>
34 </body>
35 </html>