You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ A WIP CSS parser, transformer, and minifier written in Rust.
8
8
-**Typed property values** – many other CSS parsers treat property values as an untyped series of tokens. This means that each transformer that wants to do something with these values must interpret them itself, leading to duplicate work and inconsistencies. `parcel-css` parses all values using the grammar from the CSS specification, and exposes a specific value type for each property.
9
9
-**Minification** – One of the main purposes of `parcel-css` is to minify CSS to make it smaller. This includes many optimizations including:
10
10
- Combining longhand properties into shorthands where possible.
11
-
- Merging adjacent rules with the same selectors or declarations.
11
+
- Merging adjacent rules with the same selectors or declarations when it is safe to do so.
12
12
- Combining CSS transforms into a single matrix or visa versa when smaller.
13
13
- Removing vendor prefixes that are not needed, based on the provided browser targets.
14
14
- Reducing `calc()` expressions where possible.
@@ -18,6 +18,15 @@ A WIP CSS parser, transformer, and minifier written in Rust.
18
18
- Removing default property sub-values which will be inferred by browsers.
19
19
- Many micro-optimizations, e.g. converting to shorter units, removing unnecessary quotation marks, etc.
20
20
-**Vendor prefixing** – `parcel-css` accepts a list of browser targets, and automatically adds (and removes) vendor prefixes.
21
+
-**Syntax lowering** – `parcel-css` parses modern CSS syntax, and generates more compatible output where needed, based on browser targets.
22
+
- CSS Level 4 Color syntax
23
+
- Space separated components in `rgb` and `hsl` functions
24
+
- Hex with alpha syntax
25
+
- Percent syntax for opacity
26
+
- Double position gradient stops (e.g. `red 40% 80%`)
0 commit comments