From 62aaf865aa6ea1346066c04e9a79bdc08859cd5f Mon Sep 17 00:00:00 2001 From: Sean Voisen Date: Mon, 29 Oct 2018 10:38:50 +0000 Subject: [PATCH] style: Ignore border-image-source when overriding document colors. Differential Revision: https://phabricator.services.mozilla.com/D10017 --- components/style/properties/longhands/border.mako.rs | 1 + components/style/rule_tree/mod.rs | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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,