Skip to content

Commit

Permalink
Add test for misplaced background color for stretched character in SV…
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvc committed Jan 17, 2015
1 parent a27a166 commit 0adc1f2
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions testsuite/MathMLToDisplay/Topics/StretchyChars/issue800.html
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>&#x2191;</mo>
</mpadded>
</math>
</div>
<p>

</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,5 @@ annotate(@note) fails-if(!NativeMML) skip-if(MSIE&&(Quirks||IE7||IE8)) != vertic
skip-if(NativeMML) == issue213.html issue213-ref.html
!= issue469.html issue469-ref.html
== issue703.html issue703-ref.html
require(SVG) script issue800.html
require(STIX&&HTML-CSS) == issue715.html issue715-ref.html

0 comments on commit 0adc1f2

Please sign in to comment.