mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
style: Ignore border-image-source when overriding document colors.
Differential Revision: https://phabricator.services.mozilla.com/D10017
This commit is contained in:
parent
a3fcfb6435
commit
62aaf865aa
2 changed files with 4 additions and 2 deletions
|
@ -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(
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue