Chromium Code Reviews| Index: LayoutTests/fast/sub-pixel/shadows-hidpi.html |
| diff --git a/LayoutTests/fast/sub-pixel/shadows-hidpi.html b/LayoutTests/fast/sub-pixel/shadows-hidpi.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..915e48f583020a4023f1661ea278c157460a1e4e |
| --- /dev/null |
| +++ b/LayoutTests/fast/sub-pixel/shadows-hidpi.html |
| @@ -0,0 +1,43 @@ |
| +<!DOCTYPE html> |
|
cbiesinger
2014/01/15 21:27:40
Not sure what was going on with the -expected.png
|
| +<script> |
| + function startTest() { |
| + if (window.testRunner) { |
| + testRunner.waitUntilDone(); |
| + testRunner.setBackingScaleFactor(2, finishTest); |
| + } |
| + } |
| + |
| + function finishTest() { |
| + setTimeout(function() { testRunner.notifyDone() }, 0); |
|
leviw_travelin_and_unemployed
2014/01/14 22:28:35
Is this setTimeout necessary?
cbiesinger
2014/01/15 21:27:40
Apparently not - removed.
|
| + } |
| +</script> |
| + |
| +<style> |
| + body { |
| + font-family: Ahem; |
| + font-size: 10px; |
| + } |
| + #text { |
| + text-shadow: 0.5px 1.5px 0px red; |
| + } |
| + .box { |
| + box-shadow: 2.5px 30.5px 0px 0px red; |
| + border: 1px black solid; |
| + display: inline-block; |
| + } |
| + .box2 { |
| + box-shadow: 2px 30px 0px 0.5px red; |
| + border: 1px black solid; |
| + display: inline-block; |
| + } |
| +</style> |
| + |
| +<body onload="startTest();"> |
| + |
| +<div id="text">XXX</div> |
| +<br> |
| +<br> |
| +<div class="box">XXX</div> |
| +<div class="box2">XXX</div> |
| + |
| +</body> |