summaryrefslogtreecommitdiffstats
path: root/devtools/client/inspector/rules/test/doc_print_media_simulation.html
blob: e0caa25296b40115e4522ba6c5f276a0728deb48 (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
26
27
<html>
<head>
  <title>test print media simulation</title>
  <script type="application/javascript">

  </script>
  <style>
    div {
      width: 1000px;
      height: 100px;
      background-color: #f00;
    }

    @media print {
      div {
        background-color: #00f;
      }
    }
  </style>
</head>
<body>
<div></div>
<iframe
  src='https://example.org/document-builder.sjs?html=<style>html { background-color: %23ff0;} @media print {html {background-color: %230ff;}}'>
</iframe>
</body>
</html>