add attribute selector test from sass issue tracker

This commit is contained in:
Connor Skees 2021-07-31 11:47:48 -04:00
parent 1f672c4c49
commit 34fed92bdf

View File

@ -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,