blob: 3f2df38c798e73dc3e54df8256e44c36c71778c5 [file] [edit]
<!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true ] -->
<html>
<head>
<meta name="viewport" content="width=1600">
<style>
body { margin: 0; }
select { display: block; }
.clipped { clip-path: polygon(100% 50%, 0 0, 0 100%); }
.zoomed { zoom: 3; }
</style>
</head>
<body>
<div id="test">
<select><option>Option</option></select>
<select class="clipped"><option>Option</option></select>
<select class="zoomed"><option>Option</option></select>
<select class="clipped zoomed"><option>Option</option></select>
</div>
<pre id="results"></pre>
<script>
document.body.addEventListener("click", function(e) {
console.log(e, "event delegation");
});
if (window.testRunner)
testRunner.dumpAsText();
window.onload = function () {
if (!window.internals)
return;
results.textContent = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_EVENT_REGION | internals.LAYER_TREE_INCLUDES_ROOT_LAYER_PROPERTIES);
document.getElementById('test').remove();
};
</script>
</body>
</html>