blob: 1125ba0ea31460e4c998a6e326f47b8300934a2c [file] [log] [blame]
<!DOCTYPE html>
#outer {
position: absolute;
z-index: 1;
top: 50px;
left: 50px;
width: 300px;
height: 300px;
border-radius: 80px;
overflow: hidden;
#inner {
width: 300px;
height: 300px;
overflow: auto;
#content {
height: 1000px;
transform: translatez(0);
background-image: linear-gradient(to bottom,red,orange,yellow, green, blue,indigo,violet);
<script type="text/javascript">
if (window.testRunner)
function runTest()
if (!window.internals)
document.getElementById('layers').innerHTML = internals.layerTreeAsText(document);
<body onload="runTest()">
<!-- Test that an element with overflow:hidden and border-radius correctly renders, when having a scrollable child element.
The test passes if you can see the text "Test" in a scrollable white box. -->
<div id="outer">
<div id="inner">
<div id="content">
<pre id="layers">Layer tree appears here in DRT.</pre>