Setting orientation to secondary view angles
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 718
- Forks
- 228
- PR merge metrics
- No merged PRs in 30d
Description
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23949
Andreas Tolfsen:
WebDriver currently supports setting the screen orientation to either
portrait or landscape mode on devices that support this configuration.
Many devices support further rotation by 90° so that the top of the
device aligns with the bottom border of the viewport.In Android this is refered to as secondary orientations. My
suggestion is to use *-primary and *-secondary as optional additions
to specify the type of orientation. This would recognize:PORTRAIT LANDSCAPE PORTRAIT-PRIMARY LANDSCAPE-PRIMARY PORTRAIT-SECONDARY LANDSCAPE-SECONDARYThe PORTRAIT and LANDSCAPE orientations would default to
PORTRAIT-PRIMARY and LANDSCAPE-PRIMARY.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read the linked W3C bug and the quoted proposal first. Trace how WebDriver currently represents portrait and landscape orientation, then determine the specification changes needed to recognize primary and secondary variants while preserving the existing defaults. Done means the six listed orientations and their default behavior are specified consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100