From c2e84e3854c31617a458136b1572b7dea539cb5e Mon Sep 17 00:00:00 2001 From: Connor Skees Date: Mon, 19 Jul 2021 19:52:09 -0400 Subject: [PATCH] update changelog --- CHANGELOG.md | 9 +++++++++ tests/styles.rs | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5de6b5a..cdb24ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +# TBD + +- feature complete `min`/`max` support -- special functions and `min`/`max` are now allowed as arguments +- removed dependency on `peekmore`, which sped up parsing and simplified lookahead +- emit comments inside the `@if` rule body +- fix bug in `hue(...)` function in which the value would be incorrect in when the `red` channel was the highest and the green channel was lower than the blue channel +- no longer round output from `saturation(...)` function +- improve handling of newlines inside and around `@media` + # 0.10.5 - support compressed output diff --git a/tests/styles.rs b/tests/styles.rs index e178799..bd476c4 100644 --- a/tests/styles.rs +++ b/tests/styles.rs @@ -198,3 +198,22 @@ test!( "a {\n color /**/ : red;\n}\n", "a {\n color: red;\n}\n" ); +// todo: many other strange edge cases like `.style: val` (dealing with ambiguity is hard for very little gain) +test!( + #[ignore = "strange edge case"] + style_begins_with_asterisk_without_whitespace, + "a {\n *zoom: 1;\n}\n", + "a {\n *zoom: 1;\n}\n" +); +test!( + #[ignore = "strange edge case"] + style_begins_with_asterisk_with_whitespace, + "a {\n * zoom: 1;\n}\n", + "a {\n * zoom: 1;\n}\n" +); +test!( + #[ignore = "strange edge case"] + style_begins_with_asterisk_with_newline, + "a {\n * \n zoom: 1;\n}\n", + "a {\n * \n zoom: 1;\n}\n" +);