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

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: addressed review comments Created 6 years, 11 months 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 src="../../resources/js-test.js"></script>
3 <style>
4 #text { text-shadow: 0.5px 1.5px 2.5px red; }
5 #box { box-shadow: 0.5px 1.5px 2.5px 3.5px red; }
6 </style>
7
8 <div id="text">Text shadow</div>
9 <div id="box">Box shadow</div>
10
11 <script>
12 description("Tests the computed style for subpixel shadows");
13
14 var text = document.getElementById("text");
15 var box = document.getElementById("box");
16
17 var style = window.getComputedStyle(text, null);
18 shouldBe("style.getPropertyValue('text-shadow')",
19 "'rgb(255, 0, 0) 0.5px 1.5px 2.5px'");
20 style = window.getComputedStyle(box, null);
21 shouldBe("style.getPropertyValue('box-shadow')",
22 "'rgb(255, 0, 0) 0.5px 1.5px 2.5px 3.5px'");
23 </script>
24
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698