diff --git a/README.md b/README.md index f44d7b3c..75972751 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ An extremely fast CSS parser, transformer, and minifier written in Rust. Use it - CSS Nesting - Custom media queries (draft spec) - Logical properties - * [Color Level 5](https://drafts.csswg.org/css-color-5/) + - [Color Level 5](https://drafts.csswg.org/css-color-5/) - `color-mix()` function - Relative color syntax, e.g. `lab(from purple calc(l * .8) a b)` - [Color Level 4](https://drafts.csswg.org/css-color-4/) @@ -68,7 +68,7 @@ Lightning CSS can be used from [Parcel](https://parceljs.org), as a standalone l performance and build size charts performance and build size charts -``` +```sh $ node bench.js bootstrap-4.css cssnano: 544.809ms 159636 bytes diff --git a/src/lib.rs b/src/lib.rs index 86f3d0df..c32d0fd8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15295,6 +15295,50 @@ mod tests { ..Browsers::default() }, ); + prefix_test( + r#" + .foo { + -webkit-appearance: none; + appearance: textfield; + } + "#, + indoc! {r#" + .foo { + -webkit-appearance: none; + -moz-appearance: textfield; + appearance: textfield; + } + "#}, + Browsers { + chrome: Some(87 << 16), + firefox: Some(78 << 16), + safari: Some(14 << 16), + edge: Some(88 << 16), + ..Browsers::default() + }, + ); + prefix_test( + r#" + .foo { + appearance: textfield; + -webkit-appearance: none; + } + "#, + indoc! {r#" + .foo { + -moz-appearance: textfield; + appearance: textfield; + -webkit-appearance: none; + } + "#}, + Browsers { + chrome: Some(87 << 16), + firefox: Some(78 << 16), + safari: Some(14 << 16), + edge: Some(88 << 16), + ..Browsers::default() + }, + ); } #[test]