1 <!-- Based on fast/repaint/border-radius-repaint-2.html -->
5 <title>Repaint test for crbug.com/
222851</title>
6 <script src=
"resources/paint-invalidation-test.js" type=
"text/javascript"></script>
8 if (window
.internals
) {
9 // Avoid the noise caused by change of scrollbar existence.
10 internals
.settings
.setOverlayScrollbarsEnabled(true);
11 internals
.settings
.setMockScrollbarsEnabled(true);
14 window
.expectedPaintInvalidationObjects
= [
15 "LayoutView #document",
16 "LayoutBlockFlow HTML",
17 "LayoutBlockFlow BODY",
18 "LayoutBlockFlow DIV",
19 "LayoutBlockFlow DIV",
20 "LayoutBlockFlow DIV id='target'",
22 function paintInvalidationTest() {
23 document
.getElementById('target').style
.height
= '2px';
27 <body style=
"background-color: #3F3F3F;" onload=
"runPaintInvalidationTest()">
28 <div style=
"border-radius: 150px; background-color: #EFEFEF; width: 90%; padding: 5em; margin: 0 auto;">
29 <div style=
"border-radius: 5px; border: solid 3px #367CAF; width: 85%; margin: 0 auto;">
30 <div class=
"notARealClass" style=
"background-color: #367CAF; height: 3em; cursor: pointer;">
32 <div id=
"target" style=
"width: 100%; height: 550px;">