blob: 0c5ddbc2c6d3420c90598367f91da3649f0ca1a4 [file] [log] [blame]
<html>
<head>
<style>
body {
margin: 0;
}
#flow {
-webkit-flow-into: flow;
}
#container {
width: 400px;
height: 400px;
background-color: grey;
}
.region {
margin: 5px;
border: solid 10px aqua;
padding: 15px;
width: 200px;
height: 200px;
background-color: blue;
float: left;
-webkit-flow-from: flow;
}
.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("dumpInspectorHighlightedRegions()", InspectorTest.completeTest);
}
InspectorTest.selectNodeWithId("inspectedElement", nodeSelected);
}
</script>
</head>
<body onload="runTest()">
<div id="flow"></div>
<div class="region"></div>
<div class="region" id="inspectedElement"></div>
<div class="region"></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 CSS Regions quads overlayed on the inspected div.</p>
</body>
</html>