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

Unified Diff: LayoutTests/fast/regions/hover-on-child-parent-different-regions.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-parent-different-regions.html
diff --git a/LayoutTests/fast/regions/hover-on-child-parent-different-regions.html b/LayoutTests/fast/regions/hover-on-child-parent-different-regions.html
deleted file mode 100644
index c913185b7614899acd633a82c2ee3e27e1747755..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/regions/hover-on-child-parent-different-regions.html
+++ /dev/null
@@ -1,125 +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;
- }
-
- .hugeBox {
- width: 300px;
- height: 300px;
- }
- .bigBox {
- width: 200px;
- height: 200px;
- }
- .smallBox {
- width: 100px;
- height: 100px;
- }
-
- #parent {
- border: 2px solid red;
- margin: 20px;
- padding: 10px;
- background-color: darkred;
- -webkit-flow-into: flowParent;
- }
-
- #parent:hover {
- background-color: green;
- }
-
- #child {
- border: 5px solid orange;
- background-color: orange;
- -webkit-flow-into: flowChild;
- }
-
- #child:hover {
- background-color: yellow;
- }
-
- #regionParent {
- border: 5px solid green;
- margin: 50px;
- -webkit-flow-from: flowParent;
- }
-
- #regionChild {
- border: 5px solid blue;
- margin: 50px;
- position: relative;
- left: 400px;
- top: -300px;
- padding: 20px;
- -webkit-flow-from: flowChild;
- }
- </style>
-
- <script src="../js/resources/js-test-pre.js"></script>
-</head>
-<body>
- <p class="visibleElement">This test covers the case when the <span style="color: orange;"><b>child</b></span> is flowed into a <span style="color: blue;"><b>region</b></span> and the <span style="color: darkred;"><b>parent</b></span> is flowed into a different <span style="color: green;"><b>region</b></span>.</p>
- <ol class="visibleElement">
- <li>Move the mouse inside the orange square</li>
- <li>The orange square should turn yellow and the big darkred square should turn green</li>
- </ol>
- <div class="bigBox" id="parent">
- <div class="smallBox" id="child"></div>
- </div>
-
- <div class="hugeBox" id="regionParent"></div>
- <div class="bigBox" id="regionChild"></div>
-
- <script type="text/javascript">
- description("This test covers the case when the child is flowed into a region and the parent is flowed into a different region.")
-
- if (window.eventSender) {
- var child = document.querySelector("#child");
- var parent = document.querySelector("#parent");
-
- // move mouse on the child object
- eventSender.mouseMoveTo(child.offsetLeft + 50, child.offsetTop + 50);
- eventSender.mouseDown(0);
- eventSender.leapForward(500);
- eventSender.mouseUp(0);
-
- var childColor = window.getComputedStyle(child).getPropertyValue("background-color");
- var parentColor = window.getComputedStyle(parent).getPropertyValue("background-color");
-
- if (childColor == "rgb(255, 255, 0)")
- testPassed("Child hover event processed OK.");
- else
- testFailed("Child hover event FAILED to process.");
-
- if (parentColor == "rgb(0, 128, 0)")
- testPassed("Parent hover event processed OK.");
- else
- testFailed("Parent hover event FAILED to process.");
- }
-
- if (window.testRunner) {
- var elementsToHide = document.querySelectorAll(".visibleElement, .tinyBox, .smallBox, .bigBox, .hugeBox");
- 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