Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#921@minor: Improves support for media queries.
- Loading branch information
1 parent
221e7b0
commit 42a8ce1
Showing
12 changed files
with
294 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default interface IMediaQueryRange { | ||
before: { value: string; operator: string }; | ||
type: string; | ||
after: { value: string; operator: string }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default interface IMediaQueryRule { | ||
name: string; | ||
value: string | null; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
enum MediaQueryTypeEnum { | ||
all = 'all', | ||
print = 'print', | ||
screen = 'screen' | ||
} | ||
|
||
export default MediaQueryTypeEnum; |
6 changes: 6 additions & 0 deletions
6
packages/happy-dom/src/window/HappyDOMSettingsMediaTypeEnum.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
enum HappyDOMSettingsMediaTypeEnum { | ||
screen = 'screen', | ||
print = 'print' | ||
} | ||
|
||
export default HappyDOMSettingsMediaTypeEnum; |
6 changes: 6 additions & 0 deletions
6
packages/happy-dom/src/window/HappyDOMSettingsPrefersColorSchemeEnum.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
enum HappyDOMSettingsPrefersColorSchemeEnum { | ||
light = 'light', | ||
dark = 'dark' | ||
} | ||
|
||
export default HappyDOMSettingsPrefersColorSchemeEnum; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.