Fix test failure about zero_size_with_child

A test about parent has zero width and height can not pass.
This commit is contained in:
yxping
2018-03-30 15:12:50 +08:00
parent 187fc54596
commit 8bea26d0a0
6 changed files with 222 additions and 0 deletions

View File

@@ -7,3 +7,9 @@
<div style="width: 100px; height: 100px;"></div>
</div>
</div>
<div id="zero_size_with_child">
<div style="width: 0px; height: 0px;">
<div style="width: 100px; height: 100px;"></div>
</div>
</div>

View File

@@ -411,6 +411,8 @@ function getDefaultStyleValue(style) {
case 'bottom':
case 'start':
case 'end':
case 'width':
case 'height':
return 'undefined';
}
var node = document.getElementById('default');