summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-values/support/mixed-units-01.html
blob: 6401cd9b4bda27871ac29f097e0e75962d6f7121 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
  <head>
    <style>
      body {
        margin: 0;
        font-size: 16px;
      }
      .box {
        background: rgb(0, 0, 255);
        width: 100%;
        height: 10px;
      }

      @media (width: calc(116px - 1em)) {
        .box {
          background: rgb(255, 165, 0);
        }
      }
    </style>
  </head>
  <div class="box"></div>
</html>