Chromium Code Reviews| Index: LayoutTests/fast/css/text-decoration-color-on-hover.html |
| diff --git a/LayoutTests/fast/css/text-decoration-color-on-hover.html b/LayoutTests/fast/css/text-decoration-color-on-hover.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e67dd324ef75b586c964061ac0a40383544a35a4 |
| --- /dev/null |
| +++ b/LayoutTests/fast/css/text-decoration-color-on-hover.html |
| @@ -0,0 +1,48 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
| +<style> |
| +.outer { |
| + text-decoration: underline; |
| + color: red; |
| +} |
| + |
| +.inner { |
| + color: blue; |
| +} |
| + |
| +.nextouter{ |
|
wkorman
2015/07/01 15:16:14
space before {
|
| + text-decoration: underline; |
| + color: green; |
| +} |
| +</style> |
| +</head> |
| +<body> |
| +<p> |
| + <span class=outer> |
| + <span class=inner> |
| + Test passed if underline is green. |
| + </span> |
| + </span> |
| +</p> |
| + |
| +<script> |
| +if (window.testRunner) |
| + testRunner.waitUntilDone(); |
| +var iterationCount = 0; |
| +function change() { |
| + ++iterationCount; |
| + var outspan = document.getElementsByClassName("outer")[0]; |
| + // update for next repaint |
| + if (iterationCount == 2 ) { |
| + outspan.className = "nextouter"; |
| + if (window.testRunner) |
| + testRunner.notifyDone(); |
| + return; |
| + } |
| + window.requestAnimationFrame(change); |
| +} |
| +window.requestAnimationFrame(change); |
| +</script> |
| +</body> |
| +</html> |