| Index: third_party/WebKit/LayoutTests/paint/invalidation/selected-replaced.html
|
| diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/selected-replaced.html b/third_party/WebKit/LayoutTests/paint/invalidation/selected-replaced.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d0c2dc511a3d0027d365ddc6890c6bcd6b051011
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/paint/invalidation/selected-replaced.html
|
| @@ -0,0 +1,36 @@
|
| +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http:/html4/strict.dtd">
|
| +<html>
|
| +<head>
|
| + <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
| + <title>Selection on replaced element</title>
|
| + <style type="text/css">
|
| + img {
|
| + position: relative;
|
| + top: 80px;
|
| + }
|
| + img.moved {
|
| + top: 0px;
|
| + }
|
| + </style>
|
| + <script src="resources/text-based-repaint.js" type="text/javascript" charset="utf-8"></script>
|
| + <script type="text/javascript" charset="utf-8">
|
| + function loaded()
|
| + {
|
| + var selection = window.getSelection();
|
| + var image = document.getElementById('test');
|
| + selection.setBaseAndExtent(image, 0, image, 1);
|
| + runRepaintAndPixelTest();
|
| + }
|
| + function repaintTest()
|
| + {
|
| + document.getElementById('test').className = 'moved';
|
| + }
|
| + </script>
|
| +</head>
|
| +<body onload="loaded()">
|
| + <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=22472">https://bugs.webkit.org/show_bug.cgi?id=22472</a>
|
| + <i>Selection is not completely erased when a replaced element moves</i>
|
| + </p>
|
| + <img id="test" src="resources/apple.jpg" width="214" height="232" alt="Apple">
|
| +</body>
|
| +</html>
|
|
|