mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: In CounterStyleOrNone check if SymbolsType is symbolic and skip if it is.
Differential Revision: https://phabricator.services.mozilla.com/D36235
This commit is contained in:
parent
31b166fb1b
commit
069c0b06de
1 changed files with 6 additions and 1 deletions
|
@ -103,7 +103,12 @@ pub enum CounterStyleOrNone {
|
|||
Name(CustomIdent),
|
||||
/// `symbols()`
|
||||
#[css(function)]
|
||||
Symbols(SymbolsType, Symbols),
|
||||
Symbols(#[css(skip_if = "is_symbolic")] SymbolsType, Symbols),
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn is_symbolic(symbols_type: &SymbolsType) -> bool {
|
||||
*symbols_type == SymbolsType::Symbolic
|
||||
}
|
||||
|
||||
impl CounterStyleOrNone {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue