зеркало из https://github.com/mozilla/gecko-dev.git
Also block -moz-box-shadow when using document-specified colors is disabled, and fix a testing error with the patch for text-shadow. (Bug 503188) r=bzbarsky
This commit is contained in:
Родитель
0c97593d39
Коммит
ba06d41e98
|
@ -984,7 +984,8 @@ CSS_PROP_BORDER(
|
|||
box_shadow,
|
||||
MozBoxShadow,
|
||||
CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
|
||||
CSS_PROPERTY_VALUE_LIST_USES_COMMAS,
|
||||
CSS_PROPERTY_VALUE_LIST_USES_COMMAS |
|
||||
CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED,
|
||||
Margin,
|
||||
mBoxShadow,
|
||||
eCSSType_ValueList,
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
||||
<style type="text/css">
|
||||
|
||||
#one, #three { background: blue; color: yellow; border: thin solid red; -moz-column-rule: 2px solid green; text-shadow: 2px 2px green; }
|
||||
#one, #three { background: blue; color: yellow; border: thin solid red; -moz-column-rule: 2px solid green; text-shadow: 2px 2px green; -moz-box-shadow: 3px 7px blue; }
|
||||
#two { background: transparent; border: thin solid; }
|
||||
#five, #six {border: thick solid red; -moz-border-start-color:green; -moz-border-end-color:blue}
|
||||
#seven {
|
||||
|
@ -93,6 +93,8 @@ function part1()
|
|||
"-moz-column-rule-color applies");
|
||||
isnot(cs1.textShadow, cs2.textShadow,
|
||||
"text-shadow applies");
|
||||
isnot(cs1.MozBoxShadow, cs2.MozBoxShadow,
|
||||
"-moz-box-shadow applies");
|
||||
is(cs1.borderTopColor, cs3.borderTopColor, "border-top-color applies");
|
||||
is(cs1.borderRightColor, cs3.borderRightColor,
|
||||
"border-right-color applies");
|
||||
|
@ -102,8 +104,10 @@ function part1()
|
|||
"border-top-color applies");
|
||||
is(cs1.MozColumnRuleColor, cs3.MozColumnRuleColor,
|
||||
"-moz-column-rule-color applies");
|
||||
is(cs1.TextShadow, cs3.TextShadow,
|
||||
is(cs1.textShadow, cs3.textShadow,
|
||||
"text-shadow applies");
|
||||
is(cs1.MozBoxShadow, cs3.MozBoxShadow,
|
||||
"-moz-box-shadow applies");
|
||||
isnot(cs5.borderRightColor, cs2.borderRightColor,
|
||||
"-moz-border-end-color applies");
|
||||
isnot(cs5.borderLeftColor, cs2.borderLeftColor,
|
||||
|
@ -172,8 +176,10 @@ function part2()
|
|||
"border-bottom-color is blocked");
|
||||
is(cs1.MozColumnRuleColor, cs2.MozColumnRuleColor,
|
||||
"-moz-column-rule-color is blocked");
|
||||
is(cs1.TextShadow, cs2.TextShadow,
|
||||
is(cs1.textShadow, cs2.textShadow,
|
||||
"text-shadow is blocked");
|
||||
is(cs1.MozBoxShadow, cs2.MozBoxShadow,
|
||||
"-moz-box-shadow is blocked");
|
||||
is(cs3.backgroundColor, cs1.backgroundColor, "background-color transparency preserved (opaque)");
|
||||
is(cs3.color, cs4.color, "color is blocked");
|
||||
is(cs3.borderTopColor, cs4.borderTopColor, "border-top-color is blocked");
|
||||
|
|
Загрузка…
Ссылка в новой задаче