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 1ac0dbbb486f94ae0554de75f097584df9734c03..9e68fad4327567b225b22b644d0ffce5e8ac1726 100644 |
--- a/LayoutTests/fast/css/parsing-color-quirk.html |
+++ b/LayoutTests/fast/css/parsing-color-quirk.html |
@@ -36,12 +36,18 @@ |
#t27 { border-right: ff0000 } |
#t28 { border-bottom: ff0000 } |
#t29 { border: ff0000 } |
+ |
+#t30 { background-color: 1.1 } |
+#t31 { background-color: +1.1 } |
+#t32 { background-color: 1e1 } |
+#t33 { background-color: 1e+1 } |
+#t34 { background-color: 1e-1 } |
</style> |
<script> |
var sheet = document.styleSheets[0]; |
test(function(){ assert_true(!!sheet); }, "StyleSheet present"); |
-test(function(){ assert_equals(sheet.cssRules.length, 29); }, "All rules parsed"); |
+test(function(){ assert_equals(sheet.cssRules.length, 34); }, "All rules parsed"); |
test(function(){ |
assert_equals(sheet.cssRules[0].style.color, "rgb(0, 128, 0)"); |
@@ -158,4 +164,25 @@ test(function(){ |
test(function(){ |
assert_equals(sheet.cssRules[28].style.borderTopColor, ""); |
}, "No hashless color quirk for border shorthand"); |
+ |
+test(function(){ |
+ assert_equals(sheet.cssRules[29].style.backgroundColor, ""); |
+}, "No hashless color quirk for background-color property with invalid hashless value"); |
+ |
+test(function(){ |
+ assert_equals(sheet.cssRules[30].style.backgroundColor, ""); |
+}, "No hashless color quirk for background-color property with invalid hashless value"); |
+ |
+test(function(){ |
+ assert_equals(sheet.cssRules[31].style.backgroundColor, ""); |
+}, "No hashless color quirk for background-color property with invalid hashless value"); |
+ |
+test(function(){ |
+ assert_equals(sheet.cssRules[32].style.backgroundColor, ""); |
+}, "No hashless color quirk for background-color property with invalid hashless value"); |
+ |
+test(function(){ |
+ assert_equals(sheet.cssRules[33].style.backgroundColor, ""); |
+}, "No hashless color quirk for background-color property with invalid hashless value"); |
+ |
</script> |