Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down Expand Up @@ -68,7 +68,7 @@ Lightning CSS can be used from [Parcel](https://parceljs.org), as a standalone l
<img width="680" alt="performance and build size charts" src="https://user-images.githubusercontent.com/19409/189022599-28246659-f94a-46a4-9de0-b6d17adb0e22.png#gh-light-mode-only">
<img width="680" alt="performance and build size charts" src="https://user-images.githubusercontent.com/19409/189022693-6956b044-422b-4f56-9628-d59c6f791095.png#gh-dark-mode-only">

```
```sh
$ node bench.js bootstrap-4.css
cssnano: 544.809ms
159636 bytes
Expand Down
44 changes: 44 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down