File tree Expand file tree Collapse file tree 3 files changed +27
-9
lines changed
Expand file tree Collapse file tree 3 files changed +27
-9
lines changed Original file line number Diff line number Diff line change @@ -182,15 +182,15 @@ Ruleset.prototype.evalImports = function(context) {
182182 }
183183} ;
184184Ruleset . prototype . makeImportant = function ( ) {
185- return new Ruleset ( this . selectors , this . rules . map ( function ( r ) {
186- if ( r . makeImportant ) {
187- return r . makeImportant ( ) ;
188- } else {
189- return r ;
190- }
191- } ) , this . strictImports ) ;
192- } ;
193- Ruleset . prototype . matchArgs = function ( args ) {
185+ this . rules = this . rules . map ( function ( r ) {
186+ if ( r . makeImportant ) {
187+ return r . makeImportant ( ) ;
188+ } else {
189+ return r ;
190+ }
191+ } ) ;
192+ return this ;
193+ } ; Ruleset . prototype . matchArgs = function ( args ) {
194194 return ! args || args . length === 0 ;
195195} ;
196196// lets you call a css selector with a guard
Original file line number Diff line number Diff line change 4343.class .inner {
4444 test : 9 ;
4545}
46+ .when-calling-nested-issue-2394 {
47+ width : auto !important ;
48+ }
49+ .when-calling-nested-with-param-issue-2394 {
50+ width : 10px !important ;
51+ }
Original file line number Diff line number Diff line change 2323 .mixin !important ;
2424 .mixin (9 );
2525}
26+ .size (@aaa : auto ) {
27+ .set-width (@aaa ) {
28+ width : @aaa ;
29+ }
30+ .set-width (@aaa );
31+ }
32+ .when-calling-nested-issue-2394 {
33+ .size () !important ;
34+ }
35+ .when-calling-nested-with-param-issue-2394 {
36+ .size (10px ) !important ;
37+ }
You can’t perform that action at this time.
0 commit comments