diff --git a/components/style/properties/longhands/border.mako.rs b/components/style/properties/longhands/border.mako.rs index f4b9187b88a..2f455a1716b 100644 --- a/components/style/properties/longhands/border.mako.rs +++ b/components/style/properties/longhands/border.mako.rs @@ -112,6 +112,7 @@ ${helpers.predefined_type( animation_value_type="discrete", flags="APPLIES_TO_FIRST_LETTER", boxed=product == "servo", + ignored_when_colors_disabled=True )} ${helpers.predefined_type( diff --git a/components/style/rule_tree/mod.rs b/components/style/rule_tree/mod.rs index ff8c1cc86de..7277afd4d9f 100644 --- a/components/style/rule_tree/mod.rs +++ b/components/style/rule_tree/mod.rs @@ -1289,10 +1289,11 @@ impl StrongRuleNode { } // 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 - // the background color and it's set to transparent. + // rules if we're looking at a non-color property, a border image, or if + // we're looking at the background color and it's set to transparent. const IGNORED_WHEN_COLORS_DISABLED: &'static [LonghandId] = &[ LonghandId::BackgroundImage, + LonghandId::BorderImageSource, LonghandId::BorderTopColor, LonghandId::BorderRightColor, LonghandId::BorderBottomColor,