blob: 86eb6553a93f9fef94ac8aa0e595c90c313b544b [file] [log] [blame]
<!-- Based on fast/repaint/vertical-overflow-same.html -->
<!DOCTYPE html>
.container {
margin: 20px;
width: 300px;
height: 200px;
border: 1px solid black;
overflow: scroll;
.vertical-rl {
-webkit-writing-mode: vertical-rl;
.offset {
width: 2000px;
height: 100px;
.target {
width: 100px;
height: 100px;
background-color: orange;
visibility: hidden;
<div class="vertical-rl container">
<div class="offset"></div>
<div class="target"></div>
An orange rect should be painted.<br/>
In DumpRenderTree, there should be repaint logs of 100x100 rect. We don't care how many times is the log dumpped.
<script src="../../../fast/repaint/../../resources/run-after-layout-and-paint.js"></script>
<script src="resources/paint-invalidation-test.js"></script>
function paintInvalidationTest() {
var target = document.getElementsByClassName("target")[0]; = "visible";
var container = document.getElementsByClassName("container")[0];
runAfterLayoutAndPaint(function() {
container.scrollLeft = 0;