blob: 202777a62a517e11f5736d798d7e90baaed46be3 [file] [log] [blame]
<!-- Based on fast/repaint/selection-gap-transformed-fixed-child.html -->
<!doctype html>
<script src="resources/paint-invalidation-test.js"></script>
if (window.testRunner)
window.expectedPaintInvalidationObjects = [
"LayoutBlockFlow HTML",
"LayoutBlockFlow BODY",
"LayoutBlockFlow DIV",
"LayoutBR BR",
"InlineTextBox '\n'",
"LayoutBlockFlow (positioned) DIV id='target'",
"LayoutBR BR",
"InlineTextBox '\n'",
function paintInvalidationTest()
var target = document.getElementById("target");
getSelection().setBaseAndExtent(target, 0, target.nextSibling, 1);
body { margin: 0px; }
#target::selection { background-color: green; }
<body onload="runPaintInvalidationTest()">
<div style="position: absolute; margin-left: 200px;">
<div>Bug <a href="">111000</a>: Selection gaps don't repaint correctly with transforms</div>
<div>This tests that fixed elements that get transformed are invalidated correctly. The box will be competely green if the selected area was invalidated correctly.</div>
<div style="transform: translate(50px, 50px);">
<div id="target" style="background-color: red; width: 100px; height: 100px; position: fixed;"><br/></div><br/>