blob: 3524cd0611a4811473b3be90d854c910d5181395 [file] [log] [blame]
<!doctype html>
<html style="-webkit-writing-mode: vertical-lr;">
<head>
<style>
body {
margin: 0;
}
#flow {
-webkit-flow-into: flow;
}
#container {
width: 400px;
height: 400px;
background-color: grey;
}
#inspectedElement {
height: 100%;
width: 1000px;
background-color: green;
}
.region {
margin: 5px;
border: solid 10px aqua;
padding: 15px;
width: 200px;
height: 200px;
background-color: blue;
float: left;
-webkit-flow-from: flow;
}
.small {
width: 100px;
}
.zero-height {
border: none;
height: 0px;
padding: 0;
}
.zero-size {
border: none;
width: 0px;
height: 0px;
padding: 0;
}
.hidden {
display: none;
}
#description {
clear: both;
}
</style>
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script src="../../http/tests/inspector/elements-test.js"></script>
<script>
function test()
{
function nodeSelected(node)
{
RuntimeAgent.evaluate("dumpInspectorHighlightedNode()", InspectorTest.completeTest);
}
InspectorTest.selectNodeWithId("inspectedElement", nodeSelected);
}
</script>
</head>
<body onload="runTest()">
<div id="flow">
<div id="inspectedElement"></div>
</div>
<div class="region"></div>
<div class="region small"></div>
<div class="region zero-height"></div>
<div class="region zero-size"></div>
<div class="region hidden"></div>
<p id="description">This test verifies the position and size of the highlighted node inside CSS Regions.</p>
</body>
</html>