mirror of
https://github.com/servo/servo.git
synced 2025-08-15 02:15:33 +01:00
moved css longhand counter-reset out of mako
This commit is contained in:
parent
dcd13b857c
commit
d24301b7a0
11 changed files with 240 additions and 151 deletions
|
@ -1027,7 +1027,7 @@ mod shorthand_serialization {
|
|||
properties.push((CustomIdent("counter1".into()), Integer::new(1)));
|
||||
properties.push((CustomIdent("counter2".into()), Integer::new(-4)));
|
||||
|
||||
let counter_increment = CounterIncrement(properties);
|
||||
let counter_increment = CounterIncrement::new(properties);
|
||||
let counter_increment_css = "counter1 1 counter2 -4";
|
||||
|
||||
assert_eq!(counter_increment.to_css_string(), counter_increment_css);
|
||||
|
@ -1035,7 +1035,7 @@ mod shorthand_serialization {
|
|||
|
||||
#[test]
|
||||
fn counter_increment_without_properties_should_serialize_correctly() {
|
||||
let counter_increment = CounterIncrement(Vec::new());
|
||||
let counter_increment = CounterIncrement::new(Vec::new());
|
||||
let counter_increment_css = "none";
|
||||
|
||||
assert_eq!(counter_increment.to_css_string(), counter_increment_css);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue