Skip to content

ScreenOrientation.lock on Safari #19355

Description

@jordyboom

What type of issue is this?

Incorrect support data (example: Chrome says "86" but support was added in "40")

What information was incorrect, unhelpful, or incomplete?

The documentation states that the "lock" feature was added in Safari 16.4 but it does not support it. The Safari release notes specifically state at https://developer.apple.com/documentation/safari-release-notes/safari-16_4-release-notes:

"Added support for ScreenOrientation.type, ScreenOrientation.angle, and ScreenOrientation.onchange."

What browsers does this problem apply to, if applicable?

No response

What did you expect to see?

Not supported

Did you test this? If so, how?

Yes.

"lock" in window.screen.orientation

Returns false in both Desktop and iOS Safari.

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

https://developer.apple.com/documentation/safari-release-notes/safari-16_4-release-notes

Do you have anything more you want to share?

No response

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation

MDN metadata

MDN page report details
  • Query: api.ScreenOrientation
  • Report started: 2023-04-11T19:47:55.783Z

Metadata

Metadata

Assignees

No one assigned

    Labels

    data:apiCompat data for Web APIs. https://developer.mozilla.org/docs/Web/API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions