d889604914c03e3d8f73f7c5ebfc6781a2f9bd65
[WebKit-https.git] / LayoutTests / fast / css / auto-min-size.html
1 <!DOCTYPE html>
2 <script src='../../resources/js-test-pre.js'></script>
3 <div id=foo></div>
4 <script>
5 div = document.getElementById('foo');
6 shouldBe('div.style.minWidth', '""');
7 shouldBe('getComputedStyle(div)["min-width"]', '"0px"');
8
9 div.style.minWidth = 'auto';
10 div.style.maxWidth = 'auto';
11 shouldBe('div.style.minWidth', '""');
12 shouldBe('div.style.maxWidth', '""');
13 shouldBe('getComputedStyle(div).minWidth', '"0px"');
14
15 div.style.minWidth = 0;
16 shouldBe('div.style.minWidth', '"0px"');
17 shouldBe('getComputedStyle(div)["min-width"]', '"0px"');
18
19 shouldBe('div.style.minHeight', '""');
20 shouldBe('getComputedStyle(div)["min-height"]', '"0px"');
21
22 div.style.minHeight = 'auto';
23 div.style.maxHeight = 'auto';
24 shouldBe('div.style.minHeight', '""');
25 shouldBe('div.style.maxHeight', '""');
26 shouldBe('getComputedStyle(div).minHeight', '"0px"');
27
28 div.style.minHeight = 0;
29 shouldBe('div.style.minHeight', '"0px"');
30 shouldBe('getComputedStyle(div)["min-height"]', '"0px"');
31
32 </script>
33 <script src='../../resources/js-test-post.js'></script>