summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/mathml/relations/html5-tree/color-attributes-1.html
blob: 211bda7f851d62250e0b96a71251fc83e639aeb9 (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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Color Attributes</title>
<link rel="help" href="https://w3c.github.io/mathml-core/#css-styling">
<link rel="help" href="https://w3c.github.io/mathml-core/#legacy-mathml-style-attributes">
<meta name="assert" content="Verify that the mathcolor and mathbackground attributes are supported on the math element.">
<link rel="match" href="color-attributes-1-ref.html"/>
<style>
  #content {
    color: red;
  }
  #content > div {
    position: absolute;
  }
</style>
</head>
<body>

  <p>Test passes if you see the text below is written in white on a green
    background.</p>

  <div id="content">
    <div>
      <math style="background: red;">
        <mtext style="visibility: hidden;">Hello World!</mtext>
      </math>
    </div>
    <div>
      <math mathcolor="white" mathbackground="green">
        <mtext>Hello World!</mtext>
      </math>
    </div>
  </div>

</body>
</html>