From 34fed92bdf2738213df6238df540cba0c9a81688 Mon Sep 17 00:00:00 2001 From: Connor Skees Date: Sat, 31 Jul 2021 11:47:48 -0400 Subject: [PATCH] add attribute selector test from sass issue tracker --- tests/selectors.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/selectors.rs b/tests/selectors.rs index a0600e3..ae69ff8 100644 --- a/tests/selectors.rs +++ b/tests/selectors.rs @@ -823,6 +823,13 @@ test!( "[a=\"a\\\\66\"] {\n color: &;\n}\n", "[a=a\\66] {\n color: [a=a\\66];\n}\n" ); +test!( + attribute_value_contains_escaped_slash_in_quotes, + r#"[data-key="\\"] { + color: &; + }"#, + "[data-key=\"\\\\\"] {\n color: [data-key=\"\\\\\"];\n}\n" +); test!( #[ignore = "we have to rewrite quoted attribute value parsing somewhat"] attribute_value_escape_ends_with_whitespace,