Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / shapes / parsing / parsing-shape-property-aliases.html
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.');
10
11 // This test is only necessary until the prefixed CSS properties have been removed
12
13 function getAliasCSSValue(alias, property, value)
14 {
15     var element = document.createElement("div");
16     element.style.setProperty(alias, value);
17     return element.style.getPropertyValue(property);
18 }
19
20 function testPropertyAlias(alias, property, value)
21 {
22     shouldBeEqualToString("getAliasCSSValue('" + alias + "','" + property + "','" + value +"')", value);
23 }
24
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"]
31     ]
32 );
33 </script>
34 </body>
35 </html>