Chromium Code Reviews| Index: LayoutTests/scrollbars/custom-scrollbarthumb-inactive-pseudo.html |
| diff --git a/LayoutTests/scrollbars/custom-scrollbarthumb-inactive-pseudo.html b/LayoutTests/scrollbars/custom-scrollbarthumb-inactive-pseudo.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ae3e8602c19722409f3d5fcc425b433821e67212 |
| --- /dev/null |
| +++ b/LayoutTests/scrollbars/custom-scrollbarthumb-inactive-pseudo.html |
| @@ -0,0 +1,50 @@ |
| +<!DOCTYPE HTML> |
| +<style> |
| +::-webkit-scrollbar { |
| + width: 12px; |
| + height: 12px; |
| +} |
| +::-webkit-scrollbar-track { |
| + -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); |
| + -webkit-border-radius: 10px; |
| + border-radius: 10px; |
| +} |
| +::-webkit-scrollbar-thumb { |
| + -webkit-border-radius: 10px; |
| + border-radius: 10px; |
| + background: rgba(255,0,0,0.8); |
| + -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); |
| +} |
| +::-webkit-scrollbar-thumb:window-inactive { |
| + background: rgba(255,150,250,0.8); |
| +} |
| +html { |
| + overflow: scroll; |
| +} |
| +body { |
| + width: 1000px; |
|
pdr.
2014/12/06 04:17:53
Nit: Please fix the indentation in the tests. 8 or
MuVen
2014/12/06 13:27:03
Done.
|
| + height: 1000px; |
| +} |
| +div { |
| + width: 100px; |
| + height: 100px; |
| + overflow: scroll; |
| +} |
| +</style> |
| +<body> |
| +<iframe src="resources/scrollable-iframe.html"></iframe> |
| +<iframe src="resources/scrollable-iframe.html"></iframe> |
| +<div><p style="width:200px;height:200px"></p></div> |
| +</body> |
| +<script> |
| +if (window.testRunner) |
| + testRunner.waitUntilDone(); |
| +function changeFocus() { |
| +// setWindowIsKey shall set the focus of the window. |
| +if (window.testRunner) |
| + window.testRunner.setWindowIsKey(false); |
| +if (window.testRunner) |
| + window.testRunner.notifyDone(); |
| +} |
| +setTimeout(function(){ changeFocus(); }, 100); |
|
pdr.
2014/12/06 04:17:53
This timeout doesn't seem right. Was this added so
MuVen
2014/12/06 13:27:03
Done.
|
| +</script> |