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

Side by Side Diff: LayoutTests/fast/sub-pixel/shadows-computed-style.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
5 </script>
6 <style>
7 #blur { text-shadow: 0.5px 1.5px 2.5px red; }
8 #box { box-shadow: 0.5px 1.5px 2.5px 3.5px red; }
9 </style>
10
11 <div id="blur">Foo</div>
12 <div id="box">Bar</div>
13
14 <p id="out"></p>
15
16 <script>
17 var blur = document.getElementById("blur");
18 var box = document.getElementById("box");
19 var out = document.getElementById("out");
20
21 var style = window.getComputedStyle(blur, null);
22 out.innerHTML = style.getPropertyValue("text-shadow");
23 style = window.getComputedStyle(box, null);
leviw_travelin_and_unemployed 2014/01/14 22:28:35 Maybe use js-test shouldBe's?
cbiesinger 2014/01/15 21:27:40 Done.
24 out.innerHTML += "<br>" + style.getPropertyValue("box-shadow");
25 </script>
26
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698