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

Side by Side Diff: LayoutTests/fast/css/getPropertyValue-webkit-text-stroke.html

Issue 1274643002: CSSStyleDeclaraction returns empty string (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed changes from imported/csswg-test Created 5 years, 4 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
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 </html> 2 </html>
3 <head> 3 <head>
4 <title>-webkit-text-stroke shorthand getPropertyValue test</title> 4 <title>-webkit-text-stroke shorthand getPropertyValue test</title>
5 <style> 5 <style>
6 .test { 6 .test {
7 width: 5em; 7 width: 5em;
8 height: 10em; 8 height: 10em;
9 } 9 }
10 </style> 10 </style>
(...skipping 18 matching lines...) Expand all
29 var element = document.getElementById(id); 29 var element = document.getElementById(id);
30 return element.style.getPropertyValue("-webkit-text-stroke"); 30 return element.style.getPropertyValue("-webkit-text-stroke");
31 } 31 }
32 32
33 shouldBeEqualToString('webkitTextStrokeValue("text-stroke1")', 'thin red') ; 33 shouldBeEqualToString('webkitTextStrokeValue("text-stroke1")', 'thin red') ;
34 shouldBeEqualToString('webkitTextStrokeValue("text-stroke2")', 'green'); 34 shouldBeEqualToString('webkitTextStrokeValue("text-stroke2")', 'green');
35 shouldBeEqualToString('webkitTextStrokeValue("text-stroke3")', 'thin'); 35 shouldBeEqualToString('webkitTextStrokeValue("text-stroke3")', 'thin');
36 shouldBeEqualToString('webkitTextStrokeValue("text-stroke4")', '1px red'); 36 shouldBeEqualToString('webkitTextStrokeValue("text-stroke4")', '1px red');
37 shouldBeEqualToString('webkitTextStrokeValue("text-stroke5")', '1px black' ); 37 shouldBeEqualToString('webkitTextStrokeValue("text-stroke5")', '1px black' );
38 debug("NOTE: 'foo' is an illegal CSS value for '-webkit-text-stroke'."); 38 debug("NOTE: 'foo' is an illegal CSS value for '-webkit-text-stroke'.");
39 shouldBe('webkitTextStrokeValue("text-stroke6")', "null"); 39 shouldBeEqualToString('webkitTextStrokeValue("text-stroke6")', "");
40 debug("NOTE: If only few longhand properties are specified, getPropertyVal ue for shorthand property returns null.") 40 debug("NOTE: If only few longhand properties are specified, getPropertyVal ue for shorthand property returns empty string.")
41 shouldBe('webkitTextStrokeValue("text-stroke7")', "null"); 41 shouldBeEqualToString('webkitTextStrokeValue("text-stroke7")', "");
42 </script> 42 </script>
43 </body> 43 </body>
44 </html> 44 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698