Generate tests for absolute layout
Summary: generate absolute layout tests. Also make sure default value for position is relative (#default div is absolutely positioned) Reviewed By: IanChilds Differential Revision: D3770947 fbshipit-source-id: 0327b071c0dc1aa4574ded759dcc667768b28f55
This commit is contained in:
committed by
Facebook Github Bot 7
parent
9985e398b3
commit
aa70125f6c
@@ -325,6 +325,9 @@ function pixelValue(value) {
|
||||
}
|
||||
|
||||
function getDefaultStyleValue(style) {
|
||||
if (style == 'position') {
|
||||
return 'relative';
|
||||
}
|
||||
var node = document.getElementById('default');
|
||||
return getComputedStyle(node, null).getPropertyValue(style);
|
||||
}
|
||||
|
Reference in New Issue
Block a user