haikuwebkit/LayoutTests/mathml/presentation/msubsup-superscriptshift.html

26 lines
956 B
HTML

<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
<script>
function runTest() {
description('Tests that superscriptshift works on msubsup. After adding superscriptshift the height of msubsup element should increase');
var rect = document.getElementById("msubsupEle").getBoundingClientRect();
height = rect.bottom - rect.top;
shouldBeTrue("height > 150");
isSuccessfullyParsed();
}
</script>
</head>
<body onload="runTest()">
<math>
<msubsup superscriptshift="60px" id="msubsupEle">
<mspace width="50px" height="50px" mathbackground="green"/>
<mspace width="50px" height="50px" mathbackground="blue"/>
<mspace width="50px" height="50px" mathbackground="red"/>
</msubsup>
</math>
</body>
</html>