(context: MatchMediaContext)
| 286 | ) {} |
| 287 | |
| 288 | matches(context: MatchMediaContext) { |
| 289 | const base = this.first.matches(context); |
| 290 | if (this.conditions instanceof ParsedMediaAnds) { |
| 291 | return base && this.conditions.matches(context); |
| 292 | } else if (this.conditions instanceof ParsedMediaOrs) { |
| 293 | return base || this.conditions.matches(context); |
| 294 | } else { |
| 295 | return base; |
| 296 | } |
| 297 | } |
| 298 | |
| 299 | static *Parser() { |
| 300 | yield optionalWhitespace; |