mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
style: [css-lists] Style system changes to support 'reversed(<counter-name>)'
Differential Revision: https://phabricator.services.mozilla.com/D129955
This commit is contained in:
parent
53b657e97b
commit
82c0673881
6 changed files with 141 additions and 29 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue