blob: 26caf921d41098d4298ce541218e4d68f990d997 [file] [log] [blame] [edit]
<!DOCTYPE html>
<html>
<style>
body { margin: 20px; }
a {
display: block;
width: 400px;
border: 1px black solid;
padding: 20px;
line-height: 25px;
}
.styled {
float: right;
appearance: none;
background: gray;
border-radius: 6px;
border: none;
font-size: 18px;
margin: 5px;
}
.styled-native {
width: 100px;
text-wrap: nowrap;
overflow: hidden;
margin: 5px;
float: right;
}
</style>
<body>
<a href="#">
Some text
<button class="styled">but also a button</button>
<button class="styled-native">and another that overflows</button>
</a>
<pre id="results"></pre>
<script>
if (window.testRunner)
testRunner.dumpAsText();
window.onload = function () {
if (window.internals)
results.textContent = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_EVENT_REGION | internals.LAYER_TREE_INCLUDES_ROOT_LAYER_PROPERTIES);
};
</script>
</body>
</html>