diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b1259d5..f1759c89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - `media_type` option to inline rules from `@media` blocks that apply to the given media type. [#410](https://github.com/Stranger6667/css-inline/issues/410) - `keep_classes` option to remove `class` attributes from the output. [#13](https://github.com/Stranger6667/css-inline/issues/13) +- `remove_unused_at_rules` option to drop rules inside kept at-rules that match no element. [#724](https://github.com/Stranger6667/css-inline/issues/724) ### Changed diff --git a/README.md b/README.md index ba544d8e..e7c0c4b8 100644 --- a/README.md +++ b/README.md @@ -186,6 +186,7 @@ fn main() -> css_inline::Result<()> { - `resolve_css_variables`. Replace `var()` references with the values of the custom properties they refer to and drop the `--*` declarations. Default: `false` - `media_type`. Inline rules from `@media` blocks whose query lists this media type or `all`, e.g. `@media print` or `@media screen, print` for `print`. Queries with media features, such as `print and (min-width: 600px)`, never apply. An inlined block is not kept as an at-rule. Ignored when `keep_at_rules` is enabled and `inline_style_tags` is disabled. Default: `None` - `keep_classes`. Keep `class` attributes in the output. When disabled, class selectors in kept `