File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
test/specs/css_composer/view Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -86,11 +86,13 @@ module.exports = require('backbone').View.extend({
86
86
const container = fragment || this . el ;
87
87
let contRules ;
88
88
89
- // Try to find a specific container for the rule, if it
90
- // containes a media query
89
+ // Try to find a specific container for the rule ( if it
90
+ // containes a media query), otherwise get the default one
91
91
try {
92
92
contRules = container . querySelector ( `#${ blockId } ` ) ;
93
- } catch ( e ) {
93
+ } catch ( e ) { }
94
+
95
+ if ( ! contRules ) {
94
96
contRules = container . querySelector ( `#${ defaultBlockId } ` ) ;
95
97
}
96
98
Original file line number Diff line number Diff line change @@ -85,7 +85,11 @@ module.exports = {
85
85
mediaText : '(max-width: 1000px)'
86
86
} ,
87
87
{
88
- selectorsAdd : '#testid2' ,
88
+ selectorsAdd : '#testid3' ,
89
+ mediaText : '(min-width: 900px)'
90
+ } ,
91
+ {
92
+ selectorsAdd : '#testid4' ,
89
93
mediaText : 'screen and (max-width: 900px) and (min-width: 600px)'
90
94
}
91
95
] ;
You can’t perform that action at this time.
0 commit comments