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

Unified Diff: LayoutTests/fast/sub-pixel/shadows-hidpi.html

Issue 23241010: Support subpixel values for text-shadow and box-shadow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: missed a virtual test Created 7 years 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/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>

Powered by Google App Engine
This is Rietveld 408576698