Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(755)

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/hover-pseudo-borders.html

Issue 2010243002: Remove paint/invalidation/spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!-- Based on fast/repaint/hover-pseudo-borders.html -->
2 <!DOCTYPE html>
3 <html>
4 <head>
5 <style>
6 .hitregion {
7 width: 100px;
8 height: 100px;
9 background-color: red;
10 }
11 .hitregion:after {
12 content: "";
13 border: 40px solid;
14 outline: 10px solid;
15 position: absolute;
16 width: 0;
17 height: 0;
18 margin-left: 140px;
19 margin-top: 10px;
20 }
21 .hitregion:hover {
22 background-color: green; /* Changes the left box's color. */
23 }
24 .hitregion:hover:after {
25 color: green; /* Changes the right box's color. */
26 }
27 </style>
28 <script src="resources/paint-invalidation-test.js"></script>
29 <script>
30 function paintInvalidationTest() {
31 if (!window.testRunner)
32 return;
33 eventSender.mouseMoveTo(50, 50);
34 eventSender.mouseDown();
35 eventSender.mouseUp();
36 }
37 window.addEventListener("load", runPaintInvalidationTest);
38 </script>
39 </head>
40 <body>
41 <!--
42 REGRESSION: :hover doesn't work on :after content with borders or outlines.
43 To test this bug outside DRT, hover on the square below.
44 This test passes if there are two green squares.
45 -->
46 <div class="hitregion"></div>
47 </body>
48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698