1 description("This tests checks parsing of the '-webkit-transform-origin' property \
2 and in particular that specifying invalid z values discards the property.");
4 function test(declaration, property)
6 var div = document.createElement("div");
7 div.setAttribute("style", declaration);
8 document.body.appendChild(div);
10 var result = div.style.getPropertyValue(property);
11 document.body.removeChild(div);
15 shouldBeEqualToString('test("-webkit-transform-origin: 10% 10% 10%", "-webkit-transform-origin")', '');
16 shouldBe('test("-webkit-transform-origin: 10% 10% 10px", "-webkit-transform-origin")', '"10% 10% 10px"');
17 shouldBeEqualToString('test("-webkit-transform-origin: 10px 10px 10%", "-webkit-transform-origin")', '');
18 shouldBe('test("-webkit-transform-origin: 10px 10px 10px", "-webkit-transform-origin")', '"10px 10px 10px"');
19 shouldBeEqualToString('test("-webkit-transform-origin: left top 10%", "-webkit-transform-origin")', '');
20 shouldBe('test("-webkit-transform-origin: left top 10px", "-webkit-transform-origin")', '"left top 10px"');
21 shouldBeEqualToString('test("-webkit-transform-origin: left top left", "-webkit-transform-origin")', '');