summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-cascade/revert-val-002.html
blob: d145ea42b299a67e4056f38422cad733824e5a05 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Cascade: 'revert' keyword interaction with !important</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="help" href="https://drafts.csswg.org/css-cascade/#default">
<link rel="match" href="reference/ref-filled-green-100px-square.xht">
<style>
#outer {
  background-color: red;
  width: 100px;
  height: 100px;
  overflow: hidden;
}
#inner {
  /* This should win over `revert` */
  display: block !important;
}
#inner {
  color: green;
  background-color: green;
  display: revert;
}
</style>
</head>
<body>
  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
  <div id="outer">
    <span id="inner">
      This<br>
      is<br>
      filler<br>
      text.<br>
      This<br>
      is<br>
      filler<br>
      text.
    </span>
  </div>
</body>
</html>