summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/appmanifest/orientation-member/orientation-member-landscape-manual.html
blob: 8df111796494a84dbf89ea52ab1bf6f3b5f5836a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<title>Test that orientation member with landscape value is supported</title>
<link rel="help" href="https://w3c.github.io/manifest#orientation-member" />
<link rel="manifest" href="resources/orientation-member-landscape.webmanifest" />
<script src="resources/orientation-member-manual.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<h1>Testing support for orientation member with "landscape" value</h1>
<style>
  @media all and (orientation: landscape) {
    body {
      background-color: green;
    }
  }
  @media all and (orientation: portrait) {
    body {
      background-color: red;
    }
  }
</style>
<p>
  Please set the phone orientation to portrait.
</p>
<p>
  To pass, after installing the display orientation must be landscape and the background must be green.
</p>