Skip to content

Commit

Permalink
Another missing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyalIcing committed Nov 21, 2023
1 parent 2fc9ad6 commit 856e6ac
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/media-query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ class ParsedNotMediaType {
}
}

/**
* https://www.w3.org/TR/mediaqueries-5/#width
*/
class ParsedMinWidth {
constructor(
public readonly value: number,
Expand All @@ -104,7 +107,7 @@ class ParsedMinWidth {
yield optionalWhitespace;
yield 'min-width:';
yield optionalWhitespace;
const value: ParsedType<typeof ParseInt> = yield ParseInt;
const value: number = yield ParseInt;
const unit = yield ['px', 'em', 'rem'];
yield optionalWhitespace;
yield ')';
Expand All @@ -113,7 +116,7 @@ class ParsedMinWidth {
}

/**
https://www.w3.org/TR/mediaqueries-5/#orientation
* https://www.w3.org/TR/mediaqueries-5/#orientation
*/
class ParsedOrientation {
constructor(public readonly orientation: 'portrait' | 'landscape') {}
Expand Down Expand Up @@ -185,6 +188,7 @@ class ParsedHover {
static *Parser() {
yield optionalWhitespace;
yield '(';
yield optionalWhitespace;
const any: boolean = yield has('any-');
yield 'hover:';
yield optionalWhitespace;
Expand Down

0 comments on commit 856e6ac

Please sign in to comment.