-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for misplaced background color for stretched character in SV…
…G. (mathjax/MathJax#800)
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
testsuite/MathMLToDisplay/Topics/StretchyChars/issue800.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 @@ | ||
<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> | ||
<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> | ||
<!DOCTYPE html> | ||
<html class="reftest-wait"> | ||
<head> | ||
<title>Issue 800</title> | ||
<!-- Copyright (c) 2015 The MathJax Consortium | ||
License: Apache License 2.0 --> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | ||
<script type="text/javascript" src="../../../header.js"></script> | ||
<script type="text/javascript" src="../../../scriptTests.js"></script> | ||
<script type="text/javascript"> | ||
function getTestCases() { | ||
var h = document.getElementById("eq").scrollHeight; | ||
return [ | ||
newScriptReftestResult("Background color placement is OK ("+h+") ", h <= 80) | ||
]; | ||
} | ||
</script> | ||
</head> | ||
|
||
<body> | ||
<!-- SVG background for stretched operator is misplaced. | ||
https://github.com/mathjax/MathJax/issues/800 --> | ||
|
||
<div id="eq" style="display:inline-block"> | ||
<math> | ||
<mpadded height="40px" depth="30px" width="10px" mathbackground="black" /> | ||
<mpadded mathbackground="red"> | ||
<mo>↑</mo> | ||
</mpadded> | ||
</math> | ||
</div> | ||
<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