-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MathML reftest to check that the mode attribute has no effect.
See w3c/mathml#5
- Loading branch information
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<title>display attribute VS legacy mode attribute (reference)</title> | ||
</head> | ||
<body> | ||
<p>Test passes if you see four green squares, the last one | ||
centered and the others left-aligned.</p> | ||
<p> | ||
<math> | ||
<mspace width="100px" height="100px" style="background: green"></mspace> | ||
</math> | ||
</p> | ||
<p> | ||
<math> | ||
<mspace width="100px" height="100px" style="background: green"></mspace> | ||
</math> | ||
</p> | ||
<p> | ||
<math display="inline"> | ||
<mspace width="100px" height="100px" style="background: green"></mspace> | ||
</math> | ||
</p> | ||
<p> | ||
<math display="block"> | ||
<mspace width="100px" height="100px" style="background: green"></mspace> | ||
</math> | ||
</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<title>display attribute VS legacy mode attribute</title> | ||
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#the-top-level-math-element"> | ||
<link rel="help" href="https://www.w3.org/TR/MathML3/chapter2.html#id.2.2.2"> | ||
<link rel="match" href="display-2-ref.html"/> | ||
<meta name="assert" content="Verify that the legacy mode attribute has no effect."> | ||
</head> | ||
<body> | ||
<p>Test passes if you see four green squares, the last one | ||
centered and the others left-aligned.</p> | ||
<p> | ||
<math mode="inline"> | ||
<mspace width="100px" height="100px" style="background: green"></mspace> | ||
</math> | ||
</p> | ||
<p> | ||
<math mode="display"> | ||
<mspace width="100px" height="100px" style="background: green"></mspace> | ||
</math> | ||
</p> | ||
<p> | ||
<math display="inline" mode="display"> | ||
<mspace width="100px" height="100px" style="background: green"></mspace> | ||
</math> | ||
</p> | ||
<p> | ||
<math display="block" mode="inline"> | ||
<mspace width="100px" height="100px" style="background: green"></mspace> | ||
</math> | ||
</p> | ||
<script src="/mathml/support/feature-detection.js"></script> | ||
<script>MathMLFeatureDetection.ensure_for_match_reftest("has_mspace");</script> | ||
</body> | ||
</html> |