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

Unified Diff: LayoutTests/fast/css/parsing-color-quirk.html

Issue 755413002: No quirky colors for border-top/left/right/bottom shorthands. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Missing test for border shorthand Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/parsing-color-quirk.html
diff --git a/LayoutTests/fast/css/parsing-color-quirk.html b/LayoutTests/fast/css/parsing-color-quirk.html
index d3ef4e588597d51012210cf773ae4ba010e7a8e0..1ac0dbbb486f94ae0554de75f097584df9734c03 100644
--- a/LayoutTests/fast/css/parsing-color-quirk.html
+++ b/LayoutTests/fast/css/parsing-color-quirk.html
@@ -31,12 +31,17 @@
#t23 { flood-color: ff0000 }
#t24 { lighting-color: ff0000 }
+#t25 { border-top: ff0000 }
+#t26 { border-left: ff0000 }
+#t27 { border-right: ff0000 }
+#t28 { border-bottom: ff0000 }
+#t29 { border: ff0000 }
</style>
<script>
var sheet = document.styleSheets[0];
test(function(){ assert_true(!!sheet); }, "StyleSheet present");
-test(function(){ assert_equals(sheet.cssRules.length, 24); }, "All rules parsed");
+test(function(){ assert_equals(sheet.cssRules.length, 29); }, "All rules parsed");
test(function(){
assert_equals(sheet.cssRules[0].style.color, "rgb(0, 128, 0)");
@@ -133,4 +138,24 @@ test(function(){
test(function(){
assert_equals(sheet.cssRules[23].style.lightingColor, "");
}, "No hashless color quirk for lighting-color property");
+
+test(function(){
+ assert_equals(sheet.cssRules[24].style.borderTopColor, "");
+}, "No hashless color quirk for border-top shorthand");
+
+test(function(){
+ assert_equals(sheet.cssRules[25].style.borderLeftColor, "");
+}, "No hashless color quirk for border-left shorthand");
+
+test(function(){
+ assert_equals(sheet.cssRules[26].style.borderRightColor, "");
+}, "No hashless color quirk for border-right shorthand");
+
+test(function(){
+ assert_equals(sheet.cssRules[27].style.borderBottomColor, "");
+}, "No hashless color quirk for border-bottom shorthand");
+
+test(function(){
+ assert_equals(sheet.cssRules[28].style.borderTopColor, "");
+}, "No hashless color quirk for border shorthand");
</script>
« no previous file with comments | « no previous file | Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698