summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/mathml/presentation-markup/mpadded/mpadded-percentage-001.html
blob: ef2391c42b58f2c634791691d86e8949a728182b (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
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>mpadded percentages</title>
    <link rel="help" href="https://w3c.github.io/mathml-core/#inner-box-and-requested-parameters">
    <meta name="assert" content="Verify that percentage values for mpadded do not use refer to the containing block">
    <link rel="match" href="mpadded-percentage-001-ref.html">
    <style>
      .red {
          background: red;
      }
    </style>
  </head>
  <body>
    <p>This test passes if there is a green square with no red.</p>
    <math display="block"
          style="width: 200px; height: 200px; background: green">
      <mpadded width="5%" height="10px" class="red"></mpadded>
      <mpadded width=" 5%" height="10px" class="red"></mpadded>
      <mpadded width="5% " height="10px" class="red"></mpadded>
      <mpadded width="10px" height="5%" class="red"></mpadded>
      <mpadded width="10px" height=" 5%" class="red"></mpadded>
      <mpadded width="10px" height="5% " class="red"></mpadded>
      <mpadded width="10px" depth="5%" class="red"></mpadded>
      <mpadded width="10px" depth=" 5%" class="red"></mpadded>
      <mpadded width="10px" depth="5% " class="red"></mpadded>
      <mpadded width="10px" height="5%" depth="5%" class="red"></mpadded>
      <mpadded width="10px" height=" 5%" depth=" 5%" class="red"></mpadded>
      <mpadded width="10px" height="5% " depth="5% " class="red"></mpadded>
    </math>
  </body>
</html>