diff options
author | Mats Palmgren <mats@mozilla.com> | 2023-05-31 11:44:35 +0200 |
---|---|---|
committer | Oriol Brufau <obrufau@igalia.com> | 2023-06-09 10:22:18 +0200 |
commit | 82c06738814578e1b4803a775b7f9f90dc586e34 (patch) | |
tree | a4df704439f73e731351e3f9a9b697cdc1fe2698 /components/style/values/specified/mod.rs | |
parent | 53b657e97bfead75fe9d3a75fa9e990e8d70451c (diff) | |
download | servo-82c06738814578e1b4803a775b7f9f90dc586e34.tar.gz servo-82c06738814578e1b4803a775b7f9f90dc586e34.zip |
style: [css-lists] Style system changes to support 'reversed(<counter-name>)'
Differential Revision: https://phabricator.services.mozilla.com/D129955
Diffstat (limited to 'components/style/values/specified/mod.rs')
-rw-r--r-- | components/style/values/specified/mod.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/components/style/values/specified/mod.rs b/components/style/values/specified/mod.rs index 64bc063960e..4aeee691566 100644 --- a/components/style/values/specified/mod.rs +++ b/components/style/values/specified/mod.rs @@ -44,7 +44,7 @@ pub use self::box_::{ScrollSnapAlign, ScrollSnapAxis, ScrollSnapStrictness, Scro pub use self::box_::{TouchAction, TransitionProperty, VerticalAlign, WillChange}; pub use self::color::{Color, ColorOrAuto, ColorPropertyValue, ColorScheme}; pub use self::column::ColumnCount; -pub use self::counters::{Content, ContentItem, CounterIncrement, CounterSetOrReset}; +pub use self::counters::{Content, ContentItem, CounterIncrement, CounterReset, CounterSet}; pub use self::easing::TimingFunction; pub use self::effects::{BoxShadow, Filter, SimpleShadow}; pub use self::flex::FlexBasis; @@ -577,6 +577,12 @@ impl One for Integer { } } +impl PartialEq<i32> for Integer { + fn eq(&self, value: &i32) -> bool { + self.value() == *value + } +} + impl Integer { /// Trivially constructs a new `Integer` value. pub fn new(val: CSSInteger) -> Self { |