Skip to content

Conversation

@marcoscaceres
Copy link
Member

@marcoscaceres marcoscaceres commented Oct 17, 2025

  • Add Window interface extension with orientation attribute and onorientationchange handler
  • Integrate orientationchange event firing into existing screen orientation change steps
  • Map window.orientation values according to WHATWG compat spec algorithm
  • Support required values (-90, 0, 90) and optional 180° value
  • Remove device-specific restrictions to support device-independent web

This moves window.orientation from WHATWG compat spec to Screen Orientation spec where it belongs conceptually, providing a single authoritative definition.

Fixes #249

The following tasks have been completed:

Implementation commitment:


Preview | Diff

- Add Window interface extension with orientation attribute and onorientationchange handler
- Integrate orientationchange event firing into existing screen orientation change steps
- Map window.orientation values according to WHATWG compat spec algorithm
- Support required values (-90, 0, 90) and optional 180° value
- Remove device-specific restrictions to support device-independent web

This moves window.orientation from WHATWG compat spec to Screen Orientation spec
where it belongs conceptually, providing a single authoritative definition.

Fixes #249
partial interface Window {
readonly attribute short orientation;
attribute EventHandler onorientationchange;
};
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add HTMLBodyElement event handler...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Let's standardize window.orientation...

2 participants