 Chromium Code Reviews
 Chromium Code Reviews Issue 23241010:
  Support subpixel values for text-shadow and box-shadow  (Closed) 
  Base URL: svn://svn.chromium.org/blink/trunk
    
  
    Issue 23241010:
  Support subpixel values for text-shadow and box-shadow  (Closed) 
  Base URL: svn://svn.chromium.org/blink/trunk| Index: LayoutTests/fast/sub-pixel/shadows-computed-style.html | 
| diff --git a/LayoutTests/fast/sub-pixel/shadows-computed-style.html b/LayoutTests/fast/sub-pixel/shadows-computed-style.html | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..db07991facec262f2300c72cba6c73698688a4d8 | 
| --- /dev/null | 
| +++ b/LayoutTests/fast/sub-pixel/shadows-computed-style.html | 
| @@ -0,0 +1,26 @@ | 
| +<!DOCTYPE html> | 
| +<script> | 
| + if (window.testRunner) | 
| + testRunner.dumpAsText(); | 
| +</script> | 
| +<style> | 
| + #blur { text-shadow: 0.5px 1.5px 2.5px red; } | 
| + #box { box-shadow: 0.5px 1.5px 2.5px 3.5px red; } | 
| +</style> | 
| + | 
| +<div id="blur">Foo</div> | 
| +<div id="box">Bar</div> | 
| + | 
| +<p id="out"></p> | 
| + | 
| +<script> | 
| + var blur = document.getElementById("blur"); | 
| + var box = document.getElementById("box"); | 
| + var out = document.getElementById("out"); | 
| + | 
| + var style = window.getComputedStyle(blur, null); | 
| + out.innerHTML = style.getPropertyValue("text-shadow"); | 
| + 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.
 | 
| + out.innerHTML += "<br>" + style.getPropertyValue("box-shadow"); | 
| +</script> | 
| + |