From 4c8703ee330ec8ef9a39a6557e085d004e7af1c2 Mon Sep 17 00:00:00 2001 From: Paul Golmann Date: Tue, 16 Nov 2021 11:08:10 +0100 Subject: [PATCH 1/2] Add spec for css empty namespace attribute selector see sass/sass#3199 [skip dart-sass] --- spec/css/selector.hrx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec/css/selector.hrx b/spec/css/selector.hrx index f0482a08d9..4cf895b36b 100644 --- a/spec/css/selector.hrx +++ b/spec/css/selector.hrx @@ -78,6 +78,16 @@ c: d; } +<===> +================================================================================ +<===> attribute/empty_namespace/input.scss +[|a="b"] {a: b;} + +<===> attribute/empty_namespace/output.css +[|a=b] { + a: b; +} + <===> ================================================================================ <===> inline_comments/silent/comma_before/input.sass From 1b3a783a913b3b7fec6128e322d0839866b23a14 Mon Sep 17 00:00:00 2001 From: Paul Golmann Date: Tue, 16 Nov 2021 23:55:11 +0100 Subject: [PATCH 2/2] Simplify empty namespace attribute selector test by removing the operator and right-hand value as this gets quoted in LibSass but not dart-sass. [skip dart-sass] --- spec/css/selector.hrx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/css/selector.hrx b/spec/css/selector.hrx index 4cf895b36b..2457555987 100644 --- a/spec/css/selector.hrx +++ b/spec/css/selector.hrx @@ -81,10 +81,10 @@ <===> ================================================================================ <===> attribute/empty_namespace/input.scss -[|a="b"] {a: b;} +[|a] {a: b;} <===> attribute/empty_namespace/output.css -[|a=b] { +[|a] { a: b; }