File tree Expand file tree Collapse file tree 2 files changed +36
-9
lines changed Expand file tree Collapse file tree 2 files changed +36
-9
lines changed Original file line number Diff line number Diff line change @@ -16380,7 +16380,7 @@ mod tests {
16380
16380
);
16381
16381
minify_test(
16382
16382
".foo { list-style: \"★\" url(ellipse.png) outside; }",
16383
- ".foo{list-style:\"★\" url(ellipse.png)}",
16383
+ ".foo{list-style:url(ellipse.png) \"★\" }",
16384
16384
);
16385
16385
16386
16386
test(
@@ -16421,7 +16421,7 @@ mod tests {
16421
16421
"#,
16422
16422
indoc! {r#"
16423
16423
.foo {
16424
- list-style: \"★\" url("ellipse.png");
16424
+ list-style: url("ellipse.png") \"★\" ;
16425
16425
list-style-image: var(--img);
16426
16426
}
16427
16427
"#},
@@ -16447,8 +16447,8 @@ mod tests {
16447
16447
".foo { list-style: \"★\" linear-gradient(lch(56.208% 136.76 46.312), lch(51% 135.366 301.364)) }",
16448
16448
indoc! { r#"
16449
16449
.foo {
16450
- list-style: "★" linear-gradient(#ff0f0e, #7773ff);
16451
- list-style: "★" linear-gradient(lch(56.208% 136.76 46.312), lch(51% 135.366 301.364));
16450
+ list-style: linear-gradient(#ff0f0e, #7773ff) "★" ;
16451
+ list-style: linear-gradient(lch(56.208% 136.76 46.312), lch(51% 135.366 301.364)) "★" ;
16452
16452
}
16453
16453
"#},
16454
16454
Browsers {
@@ -16475,6 +16475,33 @@ mod tests {
16475
16475
..Browsers::default()
16476
16476
},
16477
16477
);
16478
+
16479
+ test(
16480
+ r#"
16481
+ .foo {
16482
+ list-style: inside;
16483
+ list-style-type: disc;
16484
+ }
16485
+ "#,
16486
+ indoc! {r#"
16487
+ .foo {
16488
+ list-style: inside;
16489
+ }
16490
+ "#},
16491
+ );
16492
+ test(
16493
+ r#"
16494
+ .foo {
16495
+ list-style: inside;
16496
+ list-style-type: decimal;
16497
+ }
16498
+ "#,
16499
+ indoc! {r#"
16500
+ .foo {
16501
+ list-style: inside decimal;
16502
+ }
16503
+ "#},
16504
+ );
16478
16505
}
16479
16506
16480
16507
#[test]
Original file line number Diff line number Diff line change @@ -332,13 +332,13 @@ enum_property! {
332
332
shorthand_property ! {
333
333
/// A value for the [list-style](https://www.w3.org/TR/2020/WD-css-lists-3-20201117/#list-style-property) shorthand property.
334
334
pub struct ListStyle <' i> {
335
- /// The list style type.
336
- #[ cfg_attr( feature = "serde" , serde( borrow) ) ]
337
- list_style_type: ListStyleType ( ListStyleType <' i>) ,
338
- /// The list marker image.
339
- image: ListStyleImage ( Image <' i>) ,
340
335
/// The position of the list marker.
341
336
position: ListStylePosition ( ListStylePosition ) ,
337
+ /// The list marker image.
338
+ #[ cfg_attr( feature = "serde" , serde( borrow) ) ]
339
+ image: ListStyleImage ( Image <' i>) ,
340
+ /// The list style type.
341
+ list_style_type: ListStyleType ( ListStyleType <' i>) ,
342
342
}
343
343
}
344
344
You can’t perform that action at this time.
0 commit comments