Files
yoga/gentest/test-template.html
Emil Sjolander ccbfee3841 Ensure multiple test cases all have the same origin
Summary: Make the test cases absolute to ensure left/top are both zero for each layout in the test case.

Reviewed By: IanChilds

Differential Revision: D3770913

fbshipit-source-id: c3085c2f8709b52fde0af7f47e1417252997b610
2016-08-25 15:38:14 -07:00

45 lines
775 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>test page</title>
<script src="gentest.js"></script>
<style>
body {
padding: 0;
margin: 0;
font-family: Helvetica;
font-size: 14px;
font-weight: 100;
}
div, span {
box-sizing: border-box;
position: relative;
border: 0 solid black;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: stretch;
justify-content: flex-start;
flex-shrink: 0;
}
#container > * {
position: absolute;
}
</style>
</head>
<body>
<div id='container'>
%s
<div id='default'></div>
</div>
</body>
</html>