diff --git a/components/style/properties/longhand/counters.mako.rs b/components/style/properties/longhand/counters.mako.rs index f87003c6da44..8e74d192ea18 100644 --- a/components/style/properties/longhand/counters.mako.rs +++ b/components/style/properties/longhand/counters.mako.rs @@ -251,7 +251,7 @@ use std::borrow::{Cow, ToOwned}; #[derive(Debug, Clone, PartialEq)] - pub struct SpecifiedValue(Vec<(String, specified::Integer)>); + pub struct SpecifiedValue(pub Vec<(String, specified::Integer)>); pub mod computed_value { use std::fmt; diff --git a/tests/unit/style/properties/serialization.rs b/tests/unit/style/properties/serialization.rs index 44cf18d8cd3d..72296d9f98ce 100644 --- a/tests/unit/style/properties/serialization.rs +++ b/tests/unit/style/properties/serialization.rs @@ -1173,13 +1173,14 @@ mod shorthand_serialization { mod counter_increment { pub use super::*; pub use style::properties::longhands::counter_increment::SpecifiedValue as CounterIncrement; + use style::values::specified::Integer; #[test] fn counter_increment_with_properties_should_serialize_correctly() { let mut properties = Vec::new(); - properties.push(("counter1".to_owned(), 1)); - properties.push(("counter2".to_owned(), -4)); + properties.push(("counter1".to_owned(), Integer::new(1))); + properties.push(("counter2".to_owned(), Integer::new(-4))); let counter_increment = CounterIncrement(properties); let counter_increment_css = "counter1 1 counter2 -4";