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

Side by Side Diff: LayoutTests/fast/css/getPropertyValue-webkit-margin-collapse.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-margin-collapse shorthand getPropertyValue test</title> 4 <title>-webkit-margin-collapse shorthand getPropertyValue test</title>
5 <style> 5 <style>
6 .test { 6 .test {
7 display: inline-block; 7 display: inline-block;
8 width: 5em; 8 width: 5em;
9 height: 10em; 9 height: 10em;
10 } 10 }
(...skipping 15 matching lines...) Expand all
26 26
27 function webkitMarginCollapseValue(id) { 27 function webkitMarginCollapseValue(id) {
28 var element = document.getElementById(id); 28 var element = document.getElementById(id);
29 return element.style.getPropertyValue("-webkit-margin-collapse"); 29 return element.style.getPropertyValue("-webkit-margin-collapse");
30 } 30 }
31 31
32 shouldBe('webkitMarginCollapseValue("margin-collapse1")', "'collapse separ ate'"); 32 shouldBe('webkitMarginCollapseValue("margin-collapse1")', "'collapse separ ate'");
33 shouldBe('webkitMarginCollapseValue("margin-collapse2")', "'discard discar d'"); 33 shouldBe('webkitMarginCollapseValue("margin-collapse2")', "'discard discar d'");
34 shouldBe('webkitMarginCollapseValue("margin-collapse3")', "'discard separa te'"); 34 shouldBe('webkitMarginCollapseValue("margin-collapse3")', "'discard separa te'");
35 debug("NOTE: 'foo' is an illegal CSS value for '-webkit-margin-collapse'." ); 35 debug("NOTE: 'foo' is an illegal CSS value for '-webkit-margin-collapse'." );
36 shouldBe('webkitMarginCollapseValue("margin-collapse4")', "null"); 36 shouldBeEqualToString('webkitMarginCollapseValue("margin-collapse4")', "") ;
37 debug("NOTE: If only few longhand properties are specified, getPropertyVal ue for shorthand property returns null.") 37 debug("NOTE: If only few longhand properties are specified, getPropertyVal ue for shorthand property returns empty string.")
38 shouldBe('webkitMarginCollapseValue("margin-collapse5")', "null"); 38 shouldBeEqualToString('webkitMarginCollapseValue("margin-collapse5")', "") ;
39 </script> 39 </script>
40 </body> 40 </body>
41 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698