Upstream version 10.38.222.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / css3 / blending / isolation-parsing.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4     <script src="../../resources/js-test.js"></script>
5     <script>
6         function setProperty(value) {
7             var div = document.createElement('div');
8             document.body.appendChild(div);
9             div.style.setProperty("isolation", value);
10
11             var computedValue = getComputedStyle(div).getPropertyValue("isolation");
12             document.body.removeChild(div);
13
14             return computedValue;
15         }
16
17         function test(value, expected) {
18             shouldBeEqualToString('setProperty("' + value + '")', expected);
19         }
20
21         test("auto", "auto");
22         test("isolate", "isolate");
23         test("", "auto");
24         test("rubbish", "auto");
25     </script>
26 </body>
27 </html>