File tree 3 files changed +9
-0
lines changed 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,8 @@ Sass to update the reference behavior.
178
178
179
179
13 . The reference combinator is not supported. See [ issue 303] [ ] .
180
180
181
+ 14 . Universal selector unification is symmetrical. See [ issue 2247] [ ] .
182
+
181
183
[ issue 1599 ] : https://github.com/sass/sass/issues/1599
182
184
[ issue 1126 ] : https://github.com/sass/sass/issues/1126
183
185
[ issue 2120 ] : https://github.com/sass/sass/issues/2120
@@ -191,5 +193,6 @@ Sass to update the reference behavior.
191
193
[ issue 2228 ] : https://github.com/sass/sass/issues/2228
192
194
[ issue 2245 ] : https://github.com/sass/sass/issues/2245
193
195
[ issue 303 ] : https://github.com/sass/sass/issues/303
196
+ [ issue 2247 ] : https://github.com/sass/sass/issues/2247
194
197
195
198
Disclaimer: this is not an official Google product.
Original file line number Diff line number Diff line change @@ -84,6 +84,9 @@ class PseudoSelector extends SimpleSelector {
84
84
}
85
85
86
86
List <SimpleSelector > unify (List <SimpleSelector > compound) {
87
+ if (compound.length == 1 && compound.first is UniversalSelector ) {
88
+ return compound.first.unify ([this ]);
89
+ }
87
90
if (compound.contains (this )) return compound;
88
91
89
92
var result = < SimpleSelector > [];
Original file line number Diff line number Diff line change @@ -56,6 +56,9 @@ abstract class SimpleSelector extends Selector {
56
56
/// Returns `null` if unification is impossible—for example, if there are
57
57
/// multiple ID selectors.
58
58
List <SimpleSelector > unify (List <SimpleSelector > compound) {
59
+ if (compound.length == 1 && compound.first is UniversalSelector ) {
60
+ return compound.first.unify ([this ]);
61
+ }
59
62
if (compound.contains (this )) return compound;
60
63
61
64
var result = < SimpleSelector > [];
You can’t perform that action at this time.
0 commit comments