Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Screen Orientation API #1382

Open
odanado opened this issue Apr 5, 2024 · 0 comments
Open

Support Screen Orientation API #1382

odanado opened this issue Apr 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@odanado
Copy link
Contributor

odanado commented Apr 5, 2024

Is your feature request related to a problem? Please describe.
The Screen Orientation API is implemented in modern browsers but not in happy-dom.

Describe the solution you'd like
Implement the Screen Orientation API and make it available via window.screen.orientation.
Change the value of window.screen.orientation.type in response to a call to window.happyDOM.setViewport.

Describe alternatives you've considered
It is possible to simulate the behavior of the Screen Orientation API by using the jest and vitest mocking functions. However, it would save a lot of people time if implemented in happy-dom.

Additional context
Add any other context or screenshots about the feature request here.

@odanado odanado added the enhancement New feature or request label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant