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

Unified Diff: LayoutTests/fast/regions/hover-on-child-in-region.html

Issue 19660002: Revert "[CSS Regions] Mouse over an element does not trigger :hover state for parent when the eleme… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/regions/hover-on-child-in-region.html
diff --git a/LayoutTests/fast/regions/hover-on-child-in-region.html b/LayoutTests/fast/regions/hover-on-child-in-region.html
deleted file mode 100644
index abc1224f32e4a28e84956bcc41b4c4b94ded6d23..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/regions/hover-on-child-in-region.html
+++ /dev/null
@@ -1,83 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <style>
- /* Make sure the console and the description don't interfere with the rest of the layout. */
- #description {
- position: absolute;
- top: 0px;
- }
-
- #console {
- position: absolute;
- top: 100px;
- }
-
- .box {
- width: 100px;
- height: 100px;
- }
- #parent {
- background-color: green;
- }
- #parent:hover {
- color: red;
- }
- #child {
- background-color: orange;
- -webkit-flow-into: f;
- }
- #region {
- -webkit-flow-from: f;
- }
- </style>
-
- <script src="../js/resources/js-test-pre.js"></script>
-</head>
-<body>
- <ol>
- <li>Move the mouse over the orange square</li>
- <li>The text should turn red</li>
- </ol>
- <div class="box" id="parent">
- <div class="box" id="child">Red = hover</div>
- </div>
- <div class="box" id="region"></div>
-
- <script type="text/javascript">
- description("Test hover on child when flowed into region.")
-
- if (window.eventSender) {
- var child = document.querySelector("#child");
- var parent = document.querySelector("#parent");
-
- // move mouse on the child object
- eventSender.mouseMoveTo(child.offsetLeft + 10, child.offsetTop + 50);
- eventSender.mouseDown(0);
- eventSender.leapForward(500);
- eventSender.mouseUp(0);
-
- var computedStyle = window.getComputedStyle(parent);
- var clr = computedStyle.getPropertyValue("color");
- if (clr == "rgb(255, 0, 0)")
- testPassed("Hover event processed OK.");
- else
- testFailed("Hover event FAILED to process.");
- }
-
- if (window.testRunner) {
- var elementsToHide = document.querySelectorAll("ol, .box");
- for (var i=0; i<elementsToHide.length; i++)
- elementsToHide[i].style.visibility = "hidden";
- }
-
- else {
- var elementsToHide = document.querySelectorAll("#console, #description");
- for (var i=0; i<elementsToHide.length; i++)
- elementsToHide[i].style.visibility = "hidden";
- }
- </script>
-
- <script src="../js/resources/js-test-post.js"></script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698