Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Element / script-tests / dimension-properties-unrendered.js
blob1e2b957b04793f407888ffb40572529828f801a5
1 description(
2 'This test checks the scroll, client and offset dimension properties return "0" instead of undefined for an unrendered element. <div id="testDiv" style="display: none">x</div>'
3 );
5 var testDiv = document.getElementById("testDiv");
6 shouldBe("testDiv.offsetLeft", "0");
7 shouldBe("testDiv.offsetTop", "0");
8 shouldBe("testDiv.offsetWidth", "0");
9 shouldBe("testDiv.offsetHeight", "0");
10 shouldBe("testDiv.clientWidth", "0");
11 shouldBe("testDiv.clientHeight", "0");
12 shouldBe("testDiv.scrollLeft", "0");
13 shouldBe("testDiv.scrollTop", "0");
14 shouldBe("testDiv.scrollWidth", "0");
15 shouldBe("testDiv.scrollHeight", "0");