File tree 7 files changed +17
-5
lines changed 7 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 1
1
## 1.50.0
2
2
3
+ * ` @extend ` now treats [ ` :where() ` ] the same as ` :is() ` .
4
+
5
+ [ `:where()` ] : https://developer.mozilla.org/en-US/docs/Web/CSS/:where
6
+
3
7
### Command Line Interface
4
8
5
9
* Closing the standard input stream will now cause the ` --watch ` command to stop
Original file line number Diff line number Diff line change @@ -831,14 +831,15 @@ class ExtensionStore {
831
831
// become `.foo:not(.bar)`. However, this is a narrow edge case and
832
832
// supporting it properly would make this code and the code calling it
833
833
// a lot more complicated, so it's not supported for now.
834
- if (innerPseudo.normalizedName != 'is' &&
835
- innerPseudo.normalizedName != 'matches' ) {
834
+ if (! const { 'is' , 'matches' , 'where' }
835
+ . contains ( innerPseudo.normalizedName) ) {
836
836
return [];
837
837
}
838
838
return innerSelector.components;
839
839
840
840
case 'is' :
841
841
case 'matches' :
842
+ case 'where' :
842
843
case 'any' :
843
844
case 'current' :
844
845
case 'nth-child' :
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import '../utils.dart';
24
24
final _subselectorPseudos = {
25
25
'is' ,
26
26
'matches' ,
27
+ 'where' ,
27
28
'any' ,
28
29
'nth-child' ,
29
30
'nth-last-child'
@@ -747,6 +748,7 @@ bool _selectorPseudoIsSuperselector(
747
748
case 'is' :
748
749
case 'matches' :
749
750
case 'any' :
751
+ case 'where' :
750
752
var selectors = _selectorPseudoArgs (compound2, pseudo1.name);
751
753
return selectors
752
754
.any ((selector2) => selector1.isSuperselector (selector2)) ||
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ final _selectorPseudoClasses = {
15
15
"not" ,
16
16
"is" ,
17
17
"matches" ,
18
+ "where" ,
18
19
"current" ,
19
20
"any" ,
20
21
"has" ,
Original file line number Diff line number Diff line change
1
+ ## 1.0.0-beta.41
2
+
3
+ * No user-visible changes.
4
+
1
5
## 1.0.0-beta.40
2
6
3
7
* No user-visible changes.
Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ name: sass_api
2
2
# Note: Every time we add a new Sass AST node, we need to bump the *major*
3
3
# version because it's a breaking change for anyone who's implementing the
4
4
# visitor interface(s).
5
- version : 1.0.0-beta.40
5
+ version : 1.0.0-beta.41
6
6
description : Additional APIs for Dart Sass.
7
7
homepage : https://github.com/sass/dart-sass
8
8
9
9
environment :
10
10
sdk : ' >=2.12.0 <3.0.0'
11
11
12
12
dependencies :
13
- sass : 1.49.11
13
+ sass : 1.50.0
14
14
15
15
dependency_overrides :
16
16
sass : {path: ../..}
Original file line number Diff line number Diff line change 1
1
name : sass
2
- version : 1.50.0-dev
2
+ version : 1.50.0
3
3
description : A Sass implementation in Dart.
4
4
homepage : https://github.com/sass/dart-sass
5
5
You can’t perform that action at this time.
0 commit comments