css-minify icon indicating copy to clipboard operation
css-minify copied to clipboard

Rust driven css minifier

Results 9 css-minify issues
Sort by recently updated
recently updated
newest added

Hi, yesterday I raised [this issue](https://github.com/wilsonzlin/minify-html/issues/110). It seems that `css-minify` is causing the problem: It should be possibe to use a pseudo class without a selector, e.g. `:is()` instead of...

It seems that [psuedo-element](https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements) selectors aren't being properly minified. Essentially, any selectors that begin with `::` get the double colons minified to a single one `:`, which changes / invalidates...

Take the following CSS code: ```css .test::after { content: url("./image.jpg"); content: url("./image.jpg") / "Some alt text"; } ``` The second declaration in the block is a valid value for the...

```rs use css_minify::optimizations::{Minifier, Level}; fn main() { let _ = std::hint::black_box( Minifier::default().minify("*{color:#f}", Level::Three) ); } ``` ``` thread 'main' panicked at 'byte index 4 is out of bounds of `#f`',...

Trying to minify this snippet: `::after { content: ";"; }` fails with the error:The following snippet: `MError { message: "Invalid block at line 1", error: "\"::after { content: \\\";\\\"; }\""...

Hi, having ``` .class { font: normal normal normal 14px/3 Arial; } ``` as the input. With 'non dangerous optimizations' (e.g. when using https://css-minify.panfilov.tech/) it gets optimized to: ``` .class{font:400...

Hello, while fuzz testing the current crate, I found that during the minification process, the original data is parsed. However, if there is an invalid RGB value, it directly causes...

When attempting to minify the following file, I get the error `Invalid block at line 205:26` https://github.com/Kile-Asmussen/proxy_mtg/blob/929b78887dc91031787ab4690caa7dd29c455349/css/font-settings.css As far as I can tell, the file is completely valid CSS, according...

Hi, I just started using this library and I found a bug that causes the library to panic. This is related to the [& nested selectors](https://developer.mozilla.org/en-US/docs/Web/CSS/Nesting_selector), maybe the library doesn't...