summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/mathml/relations/css-styling/floats/floating-inside-mathml-with-block-display.html
blob: f398094e15aca3197639fef8edf95f7ec02372b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>floating inside display: block MathML</title>
<link rel="help" href="https://w3c.github.io/mathml-core/#css-styling">
<link rel="match" href="floating-inside-mathml-with-block-display-ref.html"/>
<meta name="assert" content="Verify that float works within a display: block MathML element.">
</head>
<body>
  <p>Test passes if you see a blue square on the left and a smaller magenta square on the right.</p>
  <math>
    <mrow style="display: block">
      <mspace style="display: inline-block; width: 50px; height: 50px; background: magenta"/><mspace style="float: left; display: inline-block; width: 100px; height: 100px; background: blue"/>
    </mrow>
  </math>
  <script src="/mathml/support/feature-detection.js"></script>
  <script>MathMLFeatureDetection.ensure_for_match_reftest("has_mspace");</script>
</body>
</html>