style: Ignore border-image-source when overriding document colors.

Differential Revision: https://phabricator.services.mozilla.com/D10017
This commit is contained in:
Sean Voisen 2018-10-29 10:38:50 +00:00 committed by Emilio Cobos Álvarez
parent a3fcfb6435
commit 62aaf865aa
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 4 additions and 2 deletions

View file

@ -112,6 +112,7 @@ ${helpers.predefined_type(
animation_value_type="discrete", animation_value_type="discrete",
flags="APPLIES_TO_FIRST_LETTER", flags="APPLIES_TO_FIRST_LETTER",
boxed=product == "servo", boxed=product == "servo",
ignored_when_colors_disabled=True
)} )}
${helpers.predefined_type( ${helpers.predefined_type(

View file

@ -1289,10 +1289,11 @@ impl StrongRuleNode {
} }
// If author colors are not allowed, only claim to have author-specified // If author colors are not allowed, only claim to have author-specified
// rules if we're looking at a non-color property or if we're looking at // rules if we're looking at a non-color property, a border image, or if
// the background color and it's set to transparent. // we're looking at the background color and it's set to transparent.
const IGNORED_WHEN_COLORS_DISABLED: &'static [LonghandId] = &[ const IGNORED_WHEN_COLORS_DISABLED: &'static [LonghandId] = &[
LonghandId::BackgroundImage, LonghandId::BackgroundImage,
LonghandId::BorderImageSource,
LonghandId::BorderTopColor, LonghandId::BorderTopColor,
LonghandId::BorderRightColor, LonghandId::BorderRightColor,
LonghandId::BorderBottomColor, LonghandId::BorderBottomColor,