<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[203278] trunk/LayoutTests</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/203278">203278</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2016-07-15 09:48:17 -0700 (Fri, 15 Jul 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Import more tests from the MathML in HTML5 test suite
https://bugs.webkit.org/show_bug.cgi?id=159715

Patch by Frederic Wang &lt;fwang@igalia.com&gt; on 2016-07-15
Reviewed by Brent Fulgham.

* imported/mathml-in-html5/fonts/math/lineheight5000-typolineheight2300.woff: Added.
* imported/mathml-in-html5/mathml/presentation-markup/scripts/subsup-5-expected.txt: Added.
* imported/mathml-in-html5/mathml/presentation-markup/scripts/subsup-5.html: Added.
* imported/mathml-in-html5/mathml/presentation-markup/spaces/space-1-expected.txt: Added.
* imported/mathml-in-html5/mathml/presentation-markup/spaces/space-1.html: Added.
* imported/mathml-in-html5/mathml/presentation-markup/spaces/space-2-expected.html: Added.
* imported/mathml-in-html5/mathml/presentation-markup/spaces/space-2.html: Added.
* imported/mathml-in-html5/mathml/relations/css-styling/color-1-expected.html: Added.
* imported/mathml-in-html5/mathml/relations/css-styling/color-1.html: Added.
* imported/mathml-in-html5/mathml/relations/css-styling/visibility-1-expected.html: Added.
* imported/mathml-in-html5/mathml/relations/css-styling/visibility-1.html: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/class-1-expected.html: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/class-1.html: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/class-2-expected.txt: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/class-2.html: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/color-attributes-1-expected.html: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/color-attributes-1.html: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/display-1-expected.txt: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/display-1.html: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/dynamic-1-expected.html: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/dynamic-1.html: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-1-expected.html: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-1.html: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-2-expected.html: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-2.html: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-3-expected.html: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-3.html: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/namespace-1-expected.txt: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/namespace-1.html: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-1-expected.txt: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-1.html: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-2-expected.html: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-2.html: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-2-expected.txt: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-2.html: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-3-expected.html: Added.
* imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-3.html: Added.
* imported/mathml-in-html5/mathml/relations/text-and-math/use-typo-metrics-1-expected.html: Added.
* imported/mathml-in-html5/mathml/relations/text-and-math/use-typo-metrics-1.html: Added.
* platform/ios-simulator/TestExpectations: Mark use-typo-metrics-1.html as failing.
* platform/mac/TestExpectations: Ditto.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorTestExpectations">trunk/LayoutTests/platform/ios-simulator/TestExpectations</a></li>
<li><a href="#trunkLayoutTestsplatformmacTestExpectations">trunk/LayoutTests/platform/mac/TestExpectations</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5fontsmathlineheight5000typolineheight2300woff">trunk/LayoutTests/imported/mathml-in-html5/fonts/math/lineheight5000-typolineheight2300.woff</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlpresentationmarkupscriptssubsup5expectedtxt">trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/scripts/subsup-5-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlpresentationmarkupscriptssubsup5html">trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/scripts/subsup-5.html</a></li>
<li>trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/spaces/</li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlpresentationmarkupspacesspace1expectedtxt">trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/spaces/space-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlpresentationmarkupspacesspace1html">trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/spaces/space-1.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlpresentationmarkupspacesspace2expectedhtml">trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/spaces/space-2-expected.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlpresentationmarkupspacesspace2html">trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/spaces/space-2.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationscssstylingcolor1expectedhtml">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/css-styling/color-1-expected.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationscssstylingcolor1html">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/css-styling/color-1.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationscssstylingvisibility1expectedhtml">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/css-styling/visibility-1-expected.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationscssstylingvisibility1html">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/css-styling/visibility-1.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeclass1expectedhtml">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/class-1-expected.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeclass1html">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/class-1.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeclass2expectedtxt">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/class-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeclass2html">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/class-2.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treecolorattributes1expectedhtml">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/color-attributes-1-expected.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treecolorattributes1html">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/color-attributes-1.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treedisplay1expectedtxt">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/display-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treedisplay1html">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/display-1.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treedynamic1expectedhtml">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/dynamic-1-expected.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treedynamic1html">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/dynamic-1.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeintegrationpoint1expectedhtml">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-1-expected.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeintegrationpoint1html">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-1.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeintegrationpoint2expectedhtml">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-2-expected.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeintegrationpoint2html">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-2.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeintegrationpoint3expectedhtml">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-3-expected.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeintegrationpoint3html">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-3.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treenamespace1expectedtxt">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/namespace-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treenamespace1html">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/namespace-1.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treerequiredextensions1expectedtxt">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treerequiredextensions1html">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-1.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treerequiredextensions2expectedhtml">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-2-expected.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treerequiredextensions2html">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-2.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeuniqueidentifier2expectedtxt">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeuniqueidentifier2html">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-2.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeuniqueidentifier3expectedhtml">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-3-expected.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeuniqueidentifier3html">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-3.html</a></li>
<li>trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/text-and-math/</li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationstextandmathusetypometrics1expectedhtml">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/text-and-math/use-typo-metrics-1-expected.html</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlrelationstextandmathusetypometrics1html">trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/text-and-math/use-typo-metrics-1.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (203277 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-07-15 16:42:21 UTC (rev 203277)
+++ trunk/LayoutTests/ChangeLog        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -1,3 +1,52 @@
</span><ins>+2016-07-15  Frederic Wang  &lt;fwang@igalia.com&gt;
+
+        Import more tests from the MathML in HTML5 test suite
+        https://bugs.webkit.org/show_bug.cgi?id=159715
+
+        Reviewed by Brent Fulgham.
+
+        * imported/mathml-in-html5/fonts/math/lineheight5000-typolineheight2300.woff: Added.
+        * imported/mathml-in-html5/mathml/presentation-markup/scripts/subsup-5-expected.txt: Added.
+        * imported/mathml-in-html5/mathml/presentation-markup/scripts/subsup-5.html: Added.
+        * imported/mathml-in-html5/mathml/presentation-markup/spaces/space-1-expected.txt: Added.
+        * imported/mathml-in-html5/mathml/presentation-markup/spaces/space-1.html: Added.
+        * imported/mathml-in-html5/mathml/presentation-markup/spaces/space-2-expected.html: Added.
+        * imported/mathml-in-html5/mathml/presentation-markup/spaces/space-2.html: Added.
+        * imported/mathml-in-html5/mathml/relations/css-styling/color-1-expected.html: Added.
+        * imported/mathml-in-html5/mathml/relations/css-styling/color-1.html: Added.
+        * imported/mathml-in-html5/mathml/relations/css-styling/visibility-1-expected.html: Added.
+        * imported/mathml-in-html5/mathml/relations/css-styling/visibility-1.html: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/class-1-expected.html: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/class-1.html: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/class-2-expected.txt: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/class-2.html: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/color-attributes-1-expected.html: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/color-attributes-1.html: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/display-1-expected.txt: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/display-1.html: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/dynamic-1-expected.html: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/dynamic-1.html: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-1-expected.html: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-1.html: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-2-expected.html: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-2.html: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-3-expected.html: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-3.html: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/namespace-1-expected.txt: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/namespace-1.html: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-1-expected.txt: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-1.html: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-2-expected.html: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-2.html: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-2-expected.txt: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-2.html: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-3-expected.html: Added.
+        * imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-3.html: Added.
+        * imported/mathml-in-html5/mathml/relations/text-and-math/use-typo-metrics-1-expected.html: Added.
+        * imported/mathml-in-html5/mathml/relations/text-and-math/use-typo-metrics-1.html: Added.
+        * platform/ios-simulator/TestExpectations: Mark use-typo-metrics-1.html as failing.
+        * platform/mac/TestExpectations: Ditto.
+
</ins><span class="cx"> 2016-07-15  Eric Carlson  &lt;eric.carlson@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [MSE] Increase the SourceBuffer &quot;fudge factor&quot;
</span></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5fontsmathlineheight5000typolineheight2300woff"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/fonts/math/lineheight5000-typolineheight2300.woff (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/fonts/math/lineheight5000-typolineheight2300.woff                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/fonts/math/lineheight5000-typolineheight2300.woff        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+wOFFOTTOT
+CFF L\xDF(\x88\xC9 7FFTM,yS\xE3OS/2HD`!\xD5'cmap\xECEJ\x93\xA9head\xF406        F\xFE\xEBhhea$$+\xAD+\xAFhmtxH
+
+\xD0maxp@Pname\x8C^\xE1$opost4 \xFF\x863x\x9Cc`d``\xE2KoS\x93\xE3\xF9m\xBE2p3\xBF\x8A0\\x96\xBF{A\xFF\xB7`~\xC1\xAC\xE4r00\x81Dvd \xBAx\x9Cc`d`\xE0&lt;\xC2y\x84\x81\x81\xF9\x98dd@LX\xE2uPx\x9Cc`a~\xC18\x81\x81\x95\x81\x81\xA9\x8BiC\x84f|\xC0`\xC8\xC8e`\xE5d\x80Ft\xD0\xC0\xA0\xC0\xE0Ϭ\xF0߂U\x84\xF3\xE7\x84fd:\xFD
+-x\x9CŒ\xBFj\xC30\xC6?;\xA0PJ\xA7\xCE\xEAАPd\x9B\x92-        d\xF6\x9A=\xA4JlV\xB0\xB5x\xEF\xD6gi\xA1\xF4\xFA}\x8D~\xB6\xD5v\xE9\x90! \xA1\x9F\xE4\xEF\xEEtwp\x8378h\xBED\x96\xF4\xF0a\xD9Ž\xF3h\xB9\x85\xB9\xF3i\xB9\x8D\x9E\xFBd\xB9\x83[\xF7\xD5r\xBD\xD65\x95N\xFB\x8A\xBBUmU\xB1C\xEF\xB9es|Yn\xE1ى-\xB7\xB9w\x96;\xEE\x8B\xE5.\xCF߱\x80\xC6%\xBD\xA4\xD8#\x81\x81@[ \xB8\x90\xF01&amp;\xC5\xD8\xF0O\xC25\xE2n\x86\x82CS\x95\xD6\xE7)9\xFAX\xE6\xE9&gt;1\xA2\xBF\x88@\xFAcoLGbVz\x9BnL\xAA)\xDB\xD5jZfP\xF4\xAB~\xA3\x8F\xB3\xB9\xE4\xCD\xF4\xBF\xAAa\xAD\xC2Ng\xC6;\xA4\x99JTy$\xA5\xF4Ly\xD4GA(\xA9;C\xA8\xA2,mj՚\xD3^\xD5E\xD2Z`\xCAy\xCE\xD4\x8F&amp;ԇ\x9C?\xCD’%Y\xEA|\xAFD0\x94b*N+\x85\xC1\xC4 \xBD\xAAm\xEAњ\xC69V\xF3\x9CDm\xEC\xD7\xD5k\xF2\xC5Z\xE5\x9F\x90\x90\xD2҉\xB8\xCC=\xBF\xBFx\x9Cc```f\x80`Fp\xF2\xC1|+ \xCD\xA4\x98\xFC\xFF\xFF\xF2\xC1\xF4\xFF\x87\xFF7C\xD5#\x82\x83\x92GL\xA4)x        9x\x9Cc`f\x83\xFF\xCD F@\x8
 A\x91+(U\xB9x\x9Ccd`aa`ddTO\xCB\xCF+\xD1\xCD\xC9\xCCK\xCDH\xCDL\xCF(1500\xD0-\xA9,\xC8G002102\xE8\xFD\xE0g\xF8!\xCD\xF8C\x86\xE9\x87,\xF3        \x96\xC6\xEE\xDF1\xBFj~na\x95ax\xC8/\xC3\xC0  \xC3\xF0LP\x86\x81O\x86QJ\x88\x81\xA4G\x8D\xC1\x87\xA1\xC89\xBF\xA0\xB2d\x96\x82F\xB2\xA6\x82\x91\x81\xA1\x99\x82obI\x86\xAF\x8F\x82cqq~rfbIf~q.!ҽ@\xC0\xC8`\xC0\xC0\xCCȨ\xA4\xAC׽\xF7\x87\xEB^ƽ{n\xD9˼W\xEC\x97ď\x95\xFF$\xD8\xF6\xFE)\xFD\xE1\xFAs\xCBWv&gt;\xBE\xDF1,\xBFj~\xD5\xFC\xABa\xE3\xFBU#\xD2-Z&gt;\xFF\xE7\x96n\xB6n.\x8Fc[x\x9Cc```d\x82\xCB&quot;\xEA\xF9`Z\xFE\xEEu+=\xEE\xCB\xE8\xE8
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlpresentationmarkupscriptssubsup5expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/scripts/subsup-5-expected.txt (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/scripts/subsup-5-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/scripts/subsup-5-expected.txt        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+
+PASS Alignment on the baseline with different and large script heights 
+PASS Tall subscripts/superscripts are not placed too high/low 
+PASS No collisions for tall subscripts and superscripts 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlpresentationmarkupscriptssubsup5html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/scripts/subsup-5.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/scripts/subsup-5.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/scripts/subsup-5.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,90 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;&gt;
+&lt;title&gt;Subscripts and Superscripts metrics&lt;/title&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.mathml-association.org/MathMLinHTML5/S3.html#SS4&quot;&gt;
+&lt;meta name=&quot;assert&quot; content=&quot;Verify metrics of scripted elements with tall scripts.&quot;&gt;
+&lt;script src=&quot;../../../../../resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;../../../../../resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;style&gt;
+  math, mspace {
+    font-size: 10px;
+  }
+&lt;/style&gt;
+&lt;script&gt;
+  /* This test does not use any specific fonts and so the exact rules are not
+  specified precisely. We assume reasonable values for script shifts and
+  spacing. */
+
+  function getBox(aId) {
+    var box = document.getElementById(aId).getBoundingClientRect();
+    box.middle = (box.bottom + box.top) / 2;
+    return box;
+  }
+
+  setup({ explicit_done: true });
+  window.addEventListener(&quot;load&quot;, runTests);
+
+  var sizeArray = [50, 75, 100];
+
+  function runTests() {
+    test(function() {
+      var e = 1;
+       assert_approx_equals(getBox(&quot;msubbase&quot;).middle, getBox(&quot;baseline&quot;).bottom, e, &quot;msub base is placed on the baseline&quot;);
+       assert_approx_equals(getBox(&quot;msupbase&quot;).middle, getBox(&quot;baseline&quot;).bottom, e, &quot;msup base is placed on the baseline&quot;);
+       assert_approx_equals(getBox(&quot;msubsupbase&quot;).middle, getBox(&quot;baseline&quot;).bottom, e, &quot;msubsup base is placed on the baseline&quot;);
+       assert_approx_equals(getBox(&quot;multibase&quot;).middle, getBox(&quot;baseline&quot;).bottom, e, &quot;mmultiscripts baseis placed on the baseline&quot;);
+    }, &quot;Alignment on the baseline with different and large script heights&quot;);
+
+    test(function() {
+      assert_greater_than(getBox(&quot;msubsub&quot;).top, getBox(&quot;msubbase&quot;).top, &quot;msub: subscript is below the top of the base&quot;);
+      assert_less_than(getBox(&quot;msupsup&quot;).bottom, getBox(&quot;msupbase&quot;).bottom, &quot;msup: supscript is above the bottom of the base&quot;);
+      assert_greater_than(getBox(&quot;msubsupsub&quot;).top, getBox(&quot;msubsupbase&quot;).top, &quot;msubsup: subscript is below the top of the base&quot;);
+      assert_less_than(getBox(&quot;msubsupsup&quot;).bottom, getBox(&quot;msubsupbase&quot;).bottom, &quot;msubsup: supscript is above the bottom of the base&quot;);
+      assert_greater_than(getBox(&quot;multipostsub&quot;).top, getBox(&quot;multibase&quot;).top, &quot;mmultiscripts: postsubscript is below the top of the base&quot;);
+      assert_less_than(getBox(&quot;multipostsup&quot;).bottom, getBox(&quot;multibase&quot;).bottom, &quot;mmultiscripts: postsupscript is above the bottom of the base&quot;);
+      assert_greater_than(getBox(&quot;multipresub&quot;).top, getBox(&quot;multibase&quot;).top, &quot;mmultiscripts: presubscript is below the top of the base&quot;);
+      assert_less_than(getBox(&quot;multipresup&quot;).bottom, getBox(&quot;multibase&quot;).bottom, &quot;mmultiscripts: presupscript is above the bottom of the base&quot;);
+    }, &quot;Tall subscripts/superscripts are not placed too high/low&quot;);
+
+    test(function() {
+      assert_greater_than(getBox(&quot;msubsupsub&quot;).top, getBox(&quot;msubsupsup&quot;).bottom, &quot;msubsup: subscript is below the superscript&quot;);
+      assert_greater_than(getBox(&quot;multipresub&quot;).top, getBox(&quot;multipresup&quot;).bottom, &quot;mmultiscripts: presubscript is below the presuperscript&quot;);
+      assert_greater_than(getBox(&quot;multipostsub&quot;).top, getBox(&quot;multipostsup&quot;).bottom, &quot;mmultiscripts: postsubscript is below the postsuperscript&quot;);
+    }, &quot;No collisions for tall subscripts and superscripts&quot;);
+
+    done();
+  }
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;p&gt;
+    &lt;math&gt;
+      &lt;mspace id=&quot;baseline&quot; width=&quot;30px&quot; height=&quot;2px&quot; depth=&quot;0px&quot; mathbackground=&quot;blue&quot;/&gt;
+      &lt;msub id=&quot;msub&quot;&gt;
+        &lt;mspace id=&quot;msubbase&quot; width=&quot;30px&quot; height=&quot;15px&quot; depth=&quot;15px&quot; mathbackground=&quot;black&quot;/&gt;
+        &lt;mspace id=&quot;msubsub&quot; width=&quot;10px&quot; height=&quot;50px&quot; depth=&quot;50px&quot; mathbackground=&quot;black&quot;/&gt;
+      &lt;/msub&gt;
+      &lt;msup id=&quot;msup&quot;&gt;
+        &lt;mspace id=&quot;msupbase&quot; width=&quot;30px&quot; height=&quot;15px&quot; depth=&quot;15px&quot; mathbackground=&quot;black&quot;/&gt;
+        &lt;mspace id=&quot;msupsup&quot; width=&quot;10px&quot; height=&quot;75px&quot; depth=&quot;75px&quot; mathbackground=&quot;black&quot;/&gt;
+      &lt;/msup&gt;
+      &lt;msubsup id=&quot;msubsup&quot;&gt;
+        &lt;mspace id=&quot;msubsupbase&quot; width=&quot;30px&quot; height=&quot;15px&quot; depth=&quot;15px&quot; mathbackground=&quot;black&quot;/&gt;
+        &lt;mspace id=&quot;msubsupsub&quot; width=&quot;10px&quot; height=&quot;50px&quot; depth=&quot;50px&quot; mathbackground=&quot;black&quot;/&gt;
+        &lt;mspace id=&quot;msubsupsup&quot; width=&quot;10px&quot; height=&quot;75px&quot; depth=&quot;75px&quot; mathbackground=&quot;black&quot;/&gt;
+      &lt;/msubsup&gt;
+      &lt;mmultiscripts id=&quot;multi&quot;&gt;
+        &lt;mspace id=&quot;multibase&quot; width=&quot;30px&quot; height=&quot;15px&quot; depth=&quot;15px&quot; mathbackground=&quot;black&quot;/&gt;
+        &lt;mspace id=&quot;multipostsub&quot; width=&quot;10px&quot; height=&quot;50px&quot; depth=&quot;50px&quot; mathbackground=&quot;black&quot;/&gt;
+        &lt;mspace id=&quot;multipostsup&quot; width=&quot;10px&quot; height=&quot;75px&quot; depth=&quot;75px&quot; mathbackground=&quot;black&quot;/&gt;
+        &lt;mprescripts/&gt;
+        &lt;mspace id=&quot;multipresub&quot; width=&quot;10px&quot; height=&quot;50px&quot; depth=&quot;50px&quot; mathbackground=&quot;black&quot;/&gt;
+        &lt;mspace id=&quot;multipresup&quot; width=&quot;10px&quot; height=&quot;75px&quot; depth=&quot;75px&quot; mathbackground=&quot;black&quot;/&gt;
+      &lt;/mmultiscripts&gt;
+    &lt;/math&gt;
+  &lt;/p&gt;
+  &lt;hr/&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlpresentationmarkupspacesspace1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/spaces/space-1-expected.txt (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/spaces/space-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/spaces/space-1-expected.txt        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+ 
+
+
+PASS Empty mspace 
+PASS Different widths 
+PASS Different heights 
+PASS Different depths 
+PASS Various combinations of height, depth and width. 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlpresentationmarkupspacesspace1html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/spaces/space-1.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/spaces/space-1.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/spaces/space-1.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,91 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;&gt;
+&lt;title&gt;Space&lt;/title&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.mathml-association.org/MathMLinHTML5/S3.html#SS2.SSS6&quot;&gt;
+&lt;meta name=&quot;assert&quot; content=&quot;Verify mspace metrics for different values of height, depth and width&quot;&gt;
+&lt;script src=&quot;../../../../../resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;../../../../../resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+  var epsilon = 1;
+  function getBox(aId) {
+    var box = document.getElementById(aId).getBoundingClientRect();
+    box.middle = (box.bottom + box.top) / 2;
+    box.center = (box.left + box.right) / 2;
+    return box;
+  }
+
+  setup({ explicit_done: true });
+  window.addEventListener(&quot;load&quot;, runTests);
+
+  function runTests() {
+    test(function() {
+      var empty = getBox(&quot;empty&quot;);
+      assert_equals(empty.width, 0, &quot;zero width&quot;);
+      assert_approx_equals(getBox(&quot;baseline&quot;).bottom - empty.top, 0, epsilon, &quot;zero depth&quot;);
+      assert_approx_equals(empty.bottom - getBox(&quot;baseline&quot;).bottom, 0, epsilon, &quot;zero depth&quot;);
+    }, &quot;Empty mspace&quot;);
+
+    test(function() {
+      for (var i = 0; i &lt;= 2; i++) {
+        var space = getBox(&quot;width&quot; + i);
+        assert_approx_equals(space.width, 25*(i+1), epsilon, &quot;width &quot; + i);
+        assert_approx_equals(getBox(&quot;baseline&quot;).bottom - space.top, 0, epsilon, &quot;height&quot; + i);
+        assert_approx_equals(space.bottom - getBox(&quot;baseline&quot;).bottom, 0, epsilon, &quot;depth&quot; + i);
+      }
+    }, &quot;Different widths&quot;);
+
+    test(function() {
+      for (var i = 0; i &lt;= 2; i++) {
+        var space = getBox(&quot;height&quot; + i);
+        assert_equals(space.width, 0, &quot;width&quot; + i);
+        assert_approx_equals(getBox(&quot;baseline&quot;).bottom - space.top, 25*(i+1), epsilon, &quot;height&quot; + i);
+        assert_approx_equals(space.bottom - getBox(&quot;baseline&quot;).bottom, 0, epsilon, &quot;depth&quot; + i);
+      }
+    }, &quot;Different heights&quot;);
+
+    test(function() {
+      for (var i = 0; i &lt;= 2; i++) {
+        var space = getBox(&quot;depth&quot; + i);
+        assert_equals(space.width, 0, &quot;width&quot; + i);
+        assert_approx_equals(getBox(&quot;baseline&quot;).bottom - space.top, 0, epsilon, &quot;height&quot; + i);
+        assert_approx_equals(space.bottom - getBox(&quot;baseline&quot;).bottom, 25*(i+1), epsilon, &quot;depth&quot; + i);
+      }
+    }, &quot;Different depths&quot;);
+
+    test(function() {
+      for (var i = 0; i &lt;= 2; i++) {
+        var space = getBox(&quot;mspace&quot; + i);
+        assert_approx_equals(space.width, 25*(1+i%3), epsilon, &quot;width&quot; + i);
+        assert_approx_equals(getBox(&quot;baseline&quot;).bottom - space.top, 25*(1+(i+1)%3), epsilon, &quot;height&quot; + i);
+        assert_approx_equals(space.bottom - getBox(&quot;baseline&quot;).bottom, 25*(1+(i+2)%3), epsilon, &quot;depth&quot; + i);
+      }
+    }, &quot;Various combinations of height, depth and width.&quot;);
+
+    done();
+  }
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;p&gt;
+    &lt;span id=&quot;baseline&quot; style=&quot;display: inline-block; width: 30px; height: 5px; background: blue&quot;&gt;&lt;/span&gt;
+    &lt;math&gt;
+      &lt;mspace id=&quot;empty&quot;/&gt;
+      &lt;mspace id=&quot;width0&quot; width=&quot;25px&quot;/&gt;
+      &lt;mspace id=&quot;width1&quot; width=&quot;50px&quot;/&gt;
+      &lt;mspace id=&quot;width2&quot; width=&quot;75px&quot;/&gt;
+      &lt;mspace id=&quot;height0&quot; height=&quot;25px&quot;/&gt;
+      &lt;mspace id=&quot;height1&quot; height=&quot;50px&quot;/&gt;
+      &lt;mspace id=&quot;height2&quot; height=&quot;75px&quot;/&gt;
+      &lt;mspace id=&quot;depth0&quot; depth=&quot;25px&quot;/&gt;
+      &lt;mspace id=&quot;depth1&quot; depth=&quot;50px&quot;/&gt;
+      &lt;mspace id=&quot;depth2&quot; depth=&quot;75px&quot;/&gt;
+      &lt;mspace id=&quot;mspace0&quot; width=&quot;25px&quot; height=&quot;50px&quot; depth=&quot;75px&quot; mathbackground=&quot;green&quot;/&gt;
+      &lt;mspace id=&quot;mspace1&quot; width=&quot;50px&quot; height=&quot;75px&quot; depth=&quot;25px&quot; mathbackground=&quot;blue&quot;/&gt;
+      &lt;mspace id=&quot;mspace2&quot; width=&quot;75px&quot; height=&quot;25px&quot; depth=&quot;50px&quot; mathbackground=&quot;green&quot;/&gt;
+    &lt;/math&gt;
+  &lt;/p&gt;
+  &lt;hr/&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlpresentationmarkupspacesspace2expectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/spaces/space-2-expected.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/spaces/space-2-expected.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/spaces/space-2-expected.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;&gt;
+&lt;title&gt;space (reference)&lt;/title&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;p&gt;Test passes if you see a green square and no red.&lt;/p&gt;
+  &lt;div style=&quot;position: relative;&quot;&gt;
+    &lt;div style=&quot;position: absolute; top: 0px; left: 0px;
+                background: green; width: 200px; height: 200px;&quot;&gt;
+    &lt;/div&gt;
+  &lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlpresentationmarkupspacesspace2html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/spaces/space-2.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/spaces/space-2.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/spaces/space-2.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,42 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;&gt;
+&lt;title&gt;space&lt;/title&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.mathml-association.org/MathMLinHTML5/S3.html#SS2.SSS6&quot;&gt;
+&lt;link rel=&quot;match&quot; href=&quot;color-2-ref.html&quot;/&gt;
+&lt;meta name=&quot;assert&quot; content=&quot;Verify mspace visual rendering for different values of height, depth and width&quot;&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;p&gt;Test passes if you see a green square and no red.&lt;/p&gt;
+  &lt;div style=&quot;position: relative;&quot;&gt;
+    &lt;!-- Some green and red mspaces to draw a square --&gt;
+    &lt;div style=&quot;position: absolute; top: 0px; left: 0px;
+                width: 200px; height: 200px;&quot;&gt;
+      &lt;math style=&quot;position: absolute; top: 0px; left: 0px&quot;&gt;
+        &lt;mspace width=&quot;50px&quot; height=&quot;100px&quot; depth=&quot;100px&quot; mathbackground=&quot;green&quot;/&gt;
+        &lt;mspace width=&quot;50px&quot; height=&quot;100px&quot; depth=&quot;100px&quot; mathbackground=&quot;green&quot;/&gt;
+        &lt;mspace width=&quot;25px&quot; depth=&quot;100px&quot; mathbackground=&quot;green&quot;/&gt;
+        &lt;mspace width=&quot;25px&quot; depth=&quot;100px&quot; mathbackground=&quot;green&quot;/&gt;
+        &lt;mspace width=&quot;25px&quot; height=&quot;100px&quot; mathbackground=&quot;green&quot;/&gt;
+        &lt;mspace width=&quot;25px&quot; height=&quot;100px&quot; mathbackground=&quot;green&quot;/&gt;
+      &lt;/math&gt;
+      &lt;math style=&quot;position: absolute; top: 0px; left: 0px&quot;&gt;
+        &lt;mspace width=&quot;100px&quot; height=&quot;20px&quot; depth=&quot;20px&quot; mathbackground=&quot;red&quot;/&gt;
+        &lt;mspace width=&quot;50px&quot; height=&quot;100px&quot; mathbackground=&quot;red&quot;/&gt;
+        &lt;mspace width=&quot;50px&quot; depth=&quot;100px&quot; mathbackground=&quot;red&quot;/&gt;
+      &lt;/math&gt;
+    &lt;/div&gt;
+    &lt;!-- These green divs should cover the red mspace elements --&gt;
+    &lt;div style=&quot;position: absolute; top: 0px; left: 0px;
+                width: 200px; height: 200px;&quot;&gt;
+      &lt;div style=&quot;position: absolute; top: 80px; left: 0px;
+                  width: 100px; height: 40px; background: green&quot;&gt;&lt;/div&gt;
+      &lt;div style=&quot;position: absolute; top: 0px; left: 100px;
+                  width: 50px; height: 100px; background: green&quot;&gt;&lt;/div&gt;
+      &lt;div style=&quot;position: absolute; top: 100px; left: 150px;
+                  width: 50px; height: 100px; background: green&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+  &lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationscssstylingcolor1expectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/css-styling/color-1-expected.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/css-styling/color-1-expected.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/css-styling/color-1-expected.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;&gt;
+&lt;title&gt;color&lt;/title&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;p&gt;Test passes if you see a green square.&lt;/p&gt;
+  &lt;div style=&quot;background: green; color: red; width: 200px; height: 200px; padding: 1px;&quot;&gt;
+  &lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationscssstylingcolor1html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/css-styling/color-1.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/css-styling/color-1.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/css-styling/color-1.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;&gt;
+&lt;title&gt;color&lt;/title&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.mathml-association.org/MathMLinHTML5/S2.html#SS3.SSS1&quot;&gt;
+&lt;link rel=&quot;match&quot; href=&quot;color-1-ref.html&quot;/&gt;
+&lt;meta name=&quot;assert&quot; content=&quot;Verify that the color is used for text and graphical elements.&quot;&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;p&gt;Test passes if you see a green square.&lt;/p&gt;
+  &lt;div style=&quot;background: green; color: red; width: 200px; height: 200px; padding: 1px;&quot;&gt;
+    &lt;math&gt;&lt;mfrac style=&quot;color: green&quot;&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/mfrac&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;msqrt style=&quot;color: green&quot;&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;/msqrt&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;mroot style=&quot;color: green&quot;&gt;&lt;mn&gt;4&lt;/mn&gt;&lt;mn&gt;5&lt;/mn&gt;&lt;/mroot&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;left&quot; style=&quot;color: green&quot;&gt;&lt;mn&gt;6&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;right&quot; style=&quot;color: green&quot;&gt;&lt;mn&gt;7&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;top&quot; style=&quot;color: green&quot;&gt;&lt;mn&gt;8&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;bottom&quot; style=&quot;color: green&quot;&gt;&lt;mn&gt;9&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;box&quot; style=&quot;color: green&quot;&gt;&lt;mn&gt;10&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;roundedbox&quot; style=&quot;color: green&quot;&gt;&lt;mn&gt;11&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;actuarial&quot; style=&quot;color: green&quot;&gt;&lt;mn&gt;12&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;madruwb&quot; style=&quot;color: green&quot;&gt;&lt;mn&gt;13&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;horizontalstrike&quot; style=&quot;color: green&quot;&gt;&lt;mn&gt;14&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;verticalstrike&quot; style=&quot;color: green&quot;&gt;&lt;mn&gt;15&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;updiagonalstrike&quot; style=&quot;color: green&quot;&gt;&lt;mn&gt;16&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;downdiagonalstrike&quot; style=&quot;color: green&quot;&gt;&lt;mn&gt;17&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;longdiv&quot; style=&quot;color: green&quot;&gt;&lt;mn&gt;18&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;circle&quot; style=&quot;color: green&quot;&gt;&lt;mn&gt;19&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;mi style=&quot;color: green&quot;&gt;20&lt;/mi&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;mn style=&quot;color: green&quot;&gt;21&lt;/mn&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;mo style=&quot;color: green&quot;&gt;22&lt;/mo&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;mtext style=&quot;color: green&quot;&gt;23&lt;/mtext&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;ms style=&quot;color: green&quot;&gt;24&lt;/ms&gt;&lt;/math&gt;
+  &lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationscssstylingvisibility1expectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/css-styling/visibility-1-expected.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/css-styling/visibility-1-expected.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/css-styling/visibility-1-expected.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;&gt;
+&lt;title&gt;visibility&lt;/title&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;p&gt;Test passes if you see a green square.&lt;/p&gt;
+  &lt;div style=&quot;background: green; color: red; width: 200px; height: 200px;&quot;&gt;
+  &lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationscssstylingvisibility1html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/css-styling/visibility-1.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/css-styling/visibility-1.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/css-styling/visibility-1.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;&gt;
+&lt;title&gt;visibility&lt;/title&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.mathml-association.org/MathMLinHTML5/S2.html#SS3.SSS1&quot;&gt;
+&lt;link rel=&quot;match&quot; href=&quot;visibility-1-ref.html&quot;/&gt;
+&lt;meta name=&quot;assert&quot; content=&quot;Verify that visibility=hidden is used for text and graphical elements.&quot;&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;p&gt;Test passes if you see a green square.&lt;/p&gt;
+  &lt;div style=&quot;background: green; color: red; width: 200px; height: 200px;&quot;&gt;
+    &lt;math&gt;&lt;mfrac style=&quot;visibility: hidden&quot;&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/mfrac&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;msqrt style=&quot;visibility: hidden&quot;&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;/msqrt&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;mroot style=&quot;visibility: hidden&quot;&gt;&lt;mn&gt;4&lt;/mn&gt;&lt;mn&gt;5&lt;/mn&gt;&lt;/mroot&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;left&quot; style=&quot;visibility: hidden&quot;&gt;&lt;mn&gt;6&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;right&quot; style=&quot;visibility: hidden&quot;&gt;&lt;mn&gt;7&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;top&quot; style=&quot;visibility: hidden&quot;&gt;&lt;mn&gt;8&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;bottom&quot; style=&quot;visibility: hidden&quot;&gt;&lt;mn&gt;9&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;box&quot; style=&quot;visibility: hidden&quot;&gt;&lt;mn&gt;10&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;roundedbox&quot; style=&quot;visibility: hidden&quot;&gt;&lt;mn&gt;11&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;actuarial&quot; style=&quot;visibility: hidden&quot;&gt;&lt;mn&gt;12&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;madruwb&quot; style=&quot;visibility: hidden&quot;&gt;&lt;mn&gt;13&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;horizontalstrike&quot; style=&quot;visibility: hidden&quot;&gt;&lt;mn&gt;14&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;verticalstrike&quot; style=&quot;visibility: hidden&quot;&gt;&lt;mn&gt;15&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;updiagonalstrike&quot; style=&quot;visibility: hidden&quot;&gt;&lt;mn&gt;16&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;downdiagonalstrike&quot; style=&quot;visibility: hidden&quot;&gt;&lt;mn&gt;17&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;longdiv&quot; style=&quot;visibility: hidden&quot;&gt;&lt;mn&gt;18&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;menclose notation=&quot;circle&quot; style=&quot;visibility: hidden&quot;&gt;&lt;mn&gt;19&lt;/mn&gt;&lt;/menclose&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;mi style=&quot;visibility: hidden&quot;&gt;20&lt;/mi&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;mn style=&quot;visibility: hidden&quot;&gt;21&lt;/mn&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;mo style=&quot;visibility: hidden&quot;&gt;22&lt;/mo&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;mtext style=&quot;visibility: hidden&quot;&gt;23&lt;/mtext&gt;&lt;/math&gt;
+    &lt;math&gt;&lt;ms style=&quot;visibility: hidden&quot;&gt;24&lt;/ms&gt;&lt;/math&gt;
+  &lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeclass1expectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/class-1-expected.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/class-1-expected.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/class-1-expected.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;/&gt;
+&lt;title&gt;Class (reference)&lt;/title&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+  &lt;p&gt;Test passes if you see the text &quot;PASS&quot;.&lt;/p&gt;
+  &lt;math&gt;
+    &lt;mtext style=&quot;background: green; color: white;&quot;&gt;PASS&lt;/mtext&gt;
+  &lt;/math&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeclass1html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/class-1.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/class-1.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/class-1.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;/&gt;
+&lt;title&gt;Class&lt;/title&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.mathml-association.org/MathMLinHTML5/S2.html#SS1.SSS2&quot;/&gt;
+&lt;link rel=&quot;match&quot; href=&quot;class-1-ref.html&quot;/&gt;
+&lt;meta name=&quot;assert&quot; content=&quot;Verify that the class attribute affects CSS selectors.&quot;&gt;
+&lt;style&gt;
+  mtext.fail { display: none; }
+  mtext.pass { background: green; }
+&lt;/style&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+  &lt;p&gt;Test passes if you see the text &quot;PASS&quot;.&lt;/p&gt;
+  &lt;math&gt;
+    &lt;mtext class=&quot;fail&quot; style=&quot;background: red; color: white;&quot;&gt;FAIL&lt;/mtext&gt;
+    &lt;mtext class=&quot;pass&quot; style=&quot;color: white;&quot;&gt;PASS&lt;/mtext&gt;
+  &lt;/math&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeclass2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/class-2-expected.txt (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/class-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/class-2-expected.txt        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+PASS getElementsByClassName() 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeclass2html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/class-2.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/class-2.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/class-2.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,40 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;&gt;
+&lt;title&gt;Class&lt;/title&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.mathml-association.org/MathMLinHTML5/S2.html#SS1.SSS2&quot;&gt;
+&lt;meta name=&quot;assert&quot; content=&quot;Verify whether the getElementsByClassName() works for MathML elements.&quot;&gt;
+&lt;script src=&quot;../../../../../resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;../../../../../resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+  setup({ explicit_done: true });
+  window.addEventListener(&quot;DOMContentLoaded&quot;, function() {
+    var mtext = document.getElementsByClassName(&quot;cl&quot;);
+    test(function() {
+      assert_equals(mtext.length, 3);
+      var mtext_ref = document.body.firstElementChild.firstElementChild;
+      mtext_ref = mtext_ref.nextElementSibling.nextElementSibling
+      assert_equals(mtext[0], mtext_ref);
+      mtext_ref = mtext_ref.nextElementSibling.nextElementSibling;
+      assert_equals(mtext[1], mtext_ref);
+      mtext_ref = mtext_ref.nextElementSibling.nextElementSibling;
+      assert_equals(mtext[2], mtext_ref);
+    }, &quot;getElementsByClassName()&quot;);
+    done();
+  });
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;math&gt;
+    &lt;mtext class=&quot;cl_&quot;&gt;&lt;/mtext&gt;
+    &lt;mtext class=&quot;c&quot;&gt;&lt;/mtext&gt;
+    &lt;mtext class=&quot;cl&quot;&gt;&lt;/mtext&gt;
+    &lt;mtext class=&quot;cl_&quot;&gt;&lt;/mtext&gt;
+    &lt;mtext class=&quot;cl&quot;&gt;&lt;/mtext&gt;
+    &lt;mtext class=&quot;c&quot;&gt;&lt;/mtext&gt;
+    &lt;mtext class=&quot;cl&quot;&gt;&lt;/mtext&gt;
+    &lt;mtext class=&quot;cl_&quot;&gt;&lt;/mtext&gt;
+  &lt;/math&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treecolorattributes1expectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/color-attributes-1-expected.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/color-attributes-1-expected.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/color-attributes-1-expected.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;/&gt;
+&lt;title&gt;Color Attributes&lt;/title&gt;
+&lt;style&gt;
+  #content &gt; div {
+    position: absolute;
+  }
+&lt;/style&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+  &lt;p&gt;Test passes if you see the text below is written in white on a green
+    background.&lt;/p&gt;
+
+  &lt;div id=&quot;content&quot;&gt;
+    &lt;div&gt;
+      &lt;math style=&quot;background: green;&quot;&gt;
+        &lt;mtext style=&quot;color: white;&quot;&gt;Hello World!&lt;/mtext&gt;
+      &lt;/math&gt;
+    &lt;/div&gt;
+  &lt;/div&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treecolorattributes1html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/color-attributes-1.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/color-attributes-1.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/color-attributes-1.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;/&gt;
+&lt;title&gt;Color Attributes&lt;/title&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.mathml-association.org/MathMLinHTML5/S2.html#SS1.SSS2&quot;/&gt;
+&lt;meta name=&quot;assert&quot; content=&quot;Verify that the mathcolor and mathbackground attributes are supported on the math element.&quot;&gt;
+&lt;link rel=&quot;match&quot; href=&quot;color-attributes-1-ref.html&quot;/&gt;
+&lt;style&gt;
+  #content {
+    color: red;
+  }
+  #content &gt; div {
+    position: absolute;
+  }
+&lt;/style&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+  &lt;p&gt;Test passes if you see the text below is written in white on a green
+    background.&lt;/p&gt;
+
+  &lt;div id=&quot;content&quot;&gt;
+    &lt;div&gt;
+      &lt;math style=&quot;background: red;&quot;&gt;
+        &lt;mtext style=&quot;visibility: hidden;&quot;&gt;Hello World!&lt;/mtext&gt;
+      &lt;/math&gt;
+    &lt;/div&gt;
+    &lt;div&gt;
+      &lt;math mathcolor=&quot;white&quot; mathbackground=&quot;green&quot;&gt;
+        &lt;mtext&gt;Hello World!&lt;/mtext&gt;
+      &lt;/math&gt;
+    &lt;/div&gt;
+  &lt;/div&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treedisplay1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/display-1-expected.txt (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/display-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/display-1-expected.txt        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+ 


+
+PASS Test display math 
+PASS Test inline math 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treedisplay1html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/display-1.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/display-1.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/display-1.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,83 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;/&gt;
+&lt;title&gt;MathML display attribute&lt;/title&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.mathml-association.org/MathMLinHTML5/S2.html#SS1.SSS2&quot;&gt;
+&lt;meta name=&quot;assert&quot; content=&quot;Verify that the display attribute on the math element is supported and impacts centering and line breaking with surrounding content.&quot;&gt;
+&lt;script src=&quot;../../../../../resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;../../../../../resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+  function getBox(aId) {
+    return document.getElementById(aId).getBoundingClientRect();
+  }
+  window.addEventListener(&quot;DOMContentLoaded&quot;, function() {
+    var content = getBox(&quot;content&quot;);
+
+    var before_block = getBox(&quot;before_block&quot;);
+    var mspace_block = getBox(&quot;mspace_block&quot;);
+    var after_block = getBox(&quot;after_block&quot;);
+    test(function() {
+      assert_approx_equals(before_block.left, content.left, 1,
+                           &quot;content before must be left aligned&quot;);
+      assert_approx_equals((mspace_block.left + mspace_block.right) / 2,
+                           (content.left + content.right) / 2,
+                           1,
+                           &quot;math must be centered.&quot;);
+      assert_approx_equals(after_block.left, content.left, 1,
+                           &quot;content before must be left aligned&quot;);
+      assert_less_than_equal(before_block.bottom, mspace_block.top,
+                            &quot;new line before math&quot;);
+      assert_less_than_equal(mspace_block.bottom, after_block.top,
+                            &quot;new line after math&quot;);
+    }, &quot;Test display math&quot;);
+
+    var before_inline = getBox(&quot;before_inline&quot;);
+    var mspace_inline = getBox(&quot;mspace_inline&quot;);
+    var after_inline = getBox(&quot;after_inline&quot;);
+    test(function() {
+      assert_approx_equals((before_inline.top + before_inline.bottom) / 2,
+                           (mspace_inline.top + mspace_inline.bottom) / 2,
+                           1,
+                           &quot;content before must be horizontally aligned with math&quot;);
+      assert_approx_equals((after_inline.top + after_inline.bottom) / 2,
+                           (mspace_inline.top + mspace_inline.bottom) / 2,
+                           1,
+                           &quot;content after must be horizontally aligned with math&quot;);
+      assert_less_than_equal(before_inline.right, mspace_inline.left,
+                            &quot;content before must be on the left of math&quot;);
+      assert_less_than_equal(mspace_inline.right, after_inline.left,
+                            &quot;content after must be on the right of math&quot;);
+    }, &quot;Test inline math&quot;);
+
+    done();
+  });
+&lt;/script&gt;
+&lt;style&gt;
+  #content {
+    width: 600px;
+    background: #ccc;
+  }
+  span.square {
+    display: inline-block;
+    width: 50px;
+    height: 50px;
+    background: black;
+  }
+  mspace {
+    background: black;
+  }
+&lt;/style&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;div id=&quot;content&quot;&gt;
+    &lt;span id=&quot;before_block&quot; class=&quot;square&quot;&gt;&lt;/span&gt;
+    &lt;math display=&quot;block&quot;&gt;&lt;mspace id=&quot;mspace_block&quot; width=&quot;50px&quot; height=&quot;50px&quot;/&gt;&lt;/math&gt;
+    &lt;span id=&quot;after_block&quot; class=&quot;square&quot;&gt;&lt;/span&gt;
+    &lt;br/&gt;
+    &lt;span id=&quot;before_inline&quot; class=&quot;square&quot;&gt;&lt;/span&gt;
+    &lt;math display=&quot;inline&quot;&gt;&lt;mspace id=&quot;mspace_inline&quot; width=&quot;50px&quot; height=&quot;50px&quot;/&gt;&lt;/math&gt;
+    &lt;span id=&quot;after_inline&quot; class=&quot;square&quot;&gt;&lt;/span&gt;
+  &lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treedynamic1expectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/dynamic-1-expected.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/dynamic-1-expected.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/dynamic-1-expected.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;/&gt;
+&lt;title&gt;Dynamic MathML DOM (reference)&lt;/title&gt;
+&lt;style&gt;
+  mtext.pass { background: green; color: white; }
+&lt;/style&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;p&gt;Test passes if you see the text &quot;PASS&quot;.&lt;/p&gt;
+  &lt;math&gt;
+    &lt;mtext class=&quot;pass&quot;&gt;PASS&lt;/mtext&gt;
+  &lt;/math&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treedynamic1html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/dynamic-1.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/dynamic-1.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/dynamic-1.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;/&gt;
+&lt;title&gt;Dynamic MathML DOM&lt;/title&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.mathml-association.org/MathMLinHTML5/S2.html#SS1.SSS1&quot;/&gt;
+&lt;link rel=&quot;match&quot; href=&quot;dynamic-1-ref.html&quot;/&gt;
+&lt;meta name=&quot;assert&quot; content=&quot;Verify that the MathML DOM tree can be modified via javascript and that the rendering is correctly updated.&quot;&gt;
+&lt;style&gt;
+  mtext.fail { background: red; color: white; }
+  mtext.pass { background: green; color: white; }
+&lt;/style&gt;
+&lt;script&gt;
+  window.addEventListener(&quot;DOMContentLoaded&quot;, function() {
+    var kMathMLNamespace = &quot;http://www.w3.org/1998/Math/MathML&quot;;
+    var mtext = document.createElementNS(kMathMLNamespace, &quot;mtext&quot;);
+    mtext.setAttribute(&quot;class&quot;, &quot;pass&quot;);
+    mtext.textContent = &quot;PASS&quot;;
+    var math = document.getElementsByTagNameNS(kMathMLNamespace, &quot;math&quot;)[0];
+    math.replaceChild(mtext, math.firstElementChild);
+  });
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;p&gt;Test passes if you see the text &quot;PASS&quot;.&lt;/p&gt;
+  &lt;math&gt;
+    &lt;mtext class=&quot;fail&quot;&gt;FAIL&lt;/mtext&gt;
+  &lt;/math&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeintegrationpoint1expectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-1-expected.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-1-expected.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-1-expected.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;/&gt;
+&lt;title&gt;MathML inside foreignObject (reference)&lt;/title&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;p&gt;Test passes if there is a green square and no red.&lt;/p&gt;
+  &lt;div&gt;
+    &lt;div style=&quot;position: absolute; width: 200px; height: 200px; background: green&quot;&gt;&lt;/div&gt;
+  &lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeintegrationpoint1html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-1.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-1.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-1.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;/&gt;
+&lt;title&gt;MathML inside foreignObject&lt;/title&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.mathml-association.org/MathMLinHTML5/S2.html#SS1.SSS1&quot;/&gt;
+&lt;link rel=&quot;match&quot; href=&quot;integration-point-1-ref.html&quot;/&gt;
+&lt;meta name=&quot;assert&quot; content=&quot;Verify that MathML can be used inside a foreignObject element.&quot;&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;p&gt;Test passes if there is a green square and no red.&lt;/p&gt;
+  &lt;div&gt;
+    &lt;div style=&quot;position: absolute; width: 200px; height: 200px; background: red&quot;&gt;&lt;/div&gt;
+    &lt;div style=&quot;position: absolute;&quot;&gt;
+      &lt;svg width=&quot;200px&quot; height=&quot;200px&quot;&gt;
+        &lt;rect width=&quot;200px&quot; height=&quot;100px&quot; fill=&quot;red&quot;/&gt;
+        &lt;foreignObject width=&quot;200px&quot; height=&quot;200px&quot;
+                       requiredExtensions=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;
+          &lt;div style=&quot;width: 200px; height: 200px; background: green&quot;&gt;&lt;/div&gt;
+        &lt;/foreignObject&gt;
+      &lt;/svg&gt;
+    &lt;/div&gt;
+  &lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeintegrationpoint2expectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-2-expected.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-2-expected.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-2-expected.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;/&gt;
+&lt;title&gt;MathML as a phrasing content (reference)&lt;/title&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;p&gt;Test passes if there is a green square and no red.&lt;/p&gt;
+
+  &lt;div&gt;
+    &lt;div style=&quot;position: absolute; background: green; width: 400px; height: 400px;&quot;&gt;&lt;/div&gt;
+  &lt;/div&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeintegrationpoint2html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-2.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-2.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-2.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,71 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;/&gt;
+&lt;title&gt;MathML as a phrasing content&lt;/title&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.mathml-association.org/MathMLinHTML5/S2.html#SS1.SSS1&quot;/&gt;
+&lt;link rel=&quot;match&quot; href=&quot;integration-point-2-ref.html&quot;/&gt;
+&lt;meta name=&quot;assert&quot; content=&quot;Verify that MathML can be used at positions where phrasing content is accepted.&quot;&gt;
+&lt;style type=&quot;text/css&quot;&gt;
+  div {
+    color: green;
+  }
+  span.redsquare {
+    display: inline-block;
+    width: 10px;
+    height: 10px;
+    background: red;
+  }
+  mspace {
+    background: green;
+  }
+&lt;/style&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;p&gt;Test passes if there is a green square and no red.&lt;/p&gt;
+
+  &lt;div&gt;
+
+    &lt;div style=&quot;position: absolute; background: green; width: 400px; height: 400px;&quot;&gt;
+      &lt;p&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/p&gt;
+      &lt;h1&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/h1&gt;
+      &lt;h2&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/h2&gt;
+      &lt;ul&gt;
+        &lt;li&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/li&gt;
+      &lt;/ul&gt;
+      &lt;ol&gt;
+        &lt;li&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/li&gt;
+      &lt;/ol&gt;
+      &lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
+      &lt;a href=&quot;#id&quot;&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/a&gt;
+      &lt;em&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/em&gt;
+      &lt;strong&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/strong&gt;
+      &lt;small&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/small&gt;
+      &lt;span&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/span&gt;
+      &lt;u&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/u&gt;
+      &lt;q&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/q&gt;
+    &lt;/div&gt;
+    &lt;div style=&quot;position: absolute; width: 400px;&quot;&gt;
+      &lt;p&gt;&lt;math&gt;&lt;mspace width=&quot;10px&quot; height=&quot;10px&quot;/&gt;&lt;/math&gt;&lt;/p&gt;
+      &lt;h1&gt;&lt;math&gt;&lt;mspace width=&quot;10px&quot; height=&quot;10px&quot;/&gt;&lt;/math&gt;&lt;/h1&gt;
+      &lt;h2&gt;&lt;math&gt;&lt;mspace width=&quot;10px&quot; height=&quot;10px&quot;/&gt;&lt;/math&gt;&lt;/h2&gt;
+      &lt;ul&gt;
+        &lt;li&gt;&lt;math&gt;&lt;mspace width=&quot;10px&quot; height=&quot;10px&quot;/&gt;&lt;/math&gt;&lt;/li&gt;
+      &lt;/ul&gt;
+      &lt;ol&gt;
+        &lt;li&gt;&lt;math&gt;&lt;mspace width=&quot;10px&quot; height=&quot;10px&quot;/&gt;&lt;/math&gt;&lt;/li&gt;
+      &lt;/ol&gt;
+      &lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;math&gt;&lt;mspace width=&quot;10px&quot; height=&quot;10px&quot;/&gt;&lt;/math&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
+      &lt;a href=&quot;#id&quot;&gt;&lt;math&gt;&lt;mspace width=&quot;10px&quot; height=&quot;10px&quot;/&gt;&lt;/math&gt;&lt;/a&gt;
+      &lt;em&gt;&lt;math&gt;&lt;mspace width=&quot;10px&quot; height=&quot;10px&quot;/&gt;&lt;/math&gt;&lt;/em&gt;
+      &lt;strong&gt;&lt;math&gt;&lt;mspace width=&quot;10px&quot; height=&quot;10px&quot;/&gt;&lt;/math&gt;&lt;/strong&gt;
+      &lt;small&gt;&lt;math&gt;&lt;mspace width=&quot;10px&quot; height=&quot;10px&quot;/&gt;&lt;/math&gt;&lt;/small&gt;
+      &lt;span&gt;&lt;math&gt;&lt;mspace width=&quot;10px&quot; height=&quot;10px&quot;/&gt;&lt;/math&gt;&lt;/span&gt;
+      &lt;u&gt;&lt;math&gt;&lt;mspace width=&quot;10px&quot; height=&quot;10px&quot;/&gt;&lt;/math&gt;&lt;/u&gt;
+      &lt;q&gt;&lt;math&gt;&lt;mspace width=&quot;10px&quot; height=&quot;10px&quot;/&gt;&lt;/math&gt;&lt;/q&gt;
+    &lt;/div&gt;
+
+  &lt;/div&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeintegrationpoint3expectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-3-expected.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-3-expected.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-3-expected.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;/&gt;
+&lt;title&gt;phrasing content inside mtext (reference)&lt;/title&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;p&gt;Test passes if there is a green square and no red.&lt;/p&gt;
+
+  &lt;div&gt;
+
+    &lt;div style=&quot;position: absolute; background: green; width: 200px; height: 200px;&quot;&gt;&lt;/div&gt;
+
+  &lt;/div&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeintegrationpoint3html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-3.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-3.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/integration-point-3.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,63 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;/&gt;
+&lt;title&gt;phrasing content inside mtext&lt;/title&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.mathml-association.org/MathMLinHTML5/S2.html#SS1.SSS1&quot;/&gt;
+&lt;link rel=&quot;match&quot; href=&quot;integration-point-3-ref.html&quot;/&gt;
+&lt;meta name=&quot;assert&quot; content=&quot;Verify that &lt;mtext&gt; can contain phrasing content&quot;&gt;
+&lt;style type=&quot;text/css&quot;&gt;
+  div {
+    color: green;
+  }
+  span, math, mtext { font-family: Arial; font-size: 12pt; }
+  span.redsquare, span.greensquare {
+    display: inline-block;
+    width: 10px;
+    height: 10px;
+  }
+  span.redsquare {
+    background: red;
+  }
+  span.greensquare {
+    background: green;
+  }
+  mspace {
+    background: green;
+  }
+&lt;/style&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;p&gt;Test passes if there is a green square and no red.&lt;/p&gt;
+
+  &lt;div&gt;
+
+    &lt;div style=&quot;position: absolute; background: green; width: 200px; height: 200px;&quot;&gt;
+      &lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
+      &lt;span&gt;&lt;span&gt;&lt;u&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;
+      &lt;span&gt;&lt;span&gt;&lt;a href=&quot;#id&quot;&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;
+      &lt;span&gt;&lt;span&gt;&lt;del&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/del&gt;&lt;/span&gt;&lt;/span&gt;
+      &lt;span&gt;&lt;span&gt;&lt;em&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;
+      &lt;span&gt;&lt;span&gt;&lt;strong&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;
+      &lt;span&gt;&lt;span&gt;&lt;q&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/q&gt;&lt;/span&gt;&lt;/span&gt;
+      &lt;span&gt;&lt;span&gt;&lt;small&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/small&gt;&lt;/span&gt;&lt;/span&gt;
+      &lt;span&gt;&lt;span&gt;&lt;var&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/var&gt;&lt;/span&gt;&lt;/span&gt;
+      &lt;span&gt;&lt;span&gt;&lt;samp&gt;&lt;span class=&quot;redsquare&quot;&gt;&lt;/span&gt;&lt;/samp&gt;&lt;/span&gt;&lt;/span&gt;
+    &lt;/div&gt;
+    &lt;div style=&quot;position: absolute; width: 200px;&quot;&gt;
+      &lt;math&gt;&lt;mtext&gt;&lt;span&gt;&lt;span class=&quot;greensquare&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/mtext&gt;&lt;/math&gt;
+      &lt;math&gt;&lt;mtext&gt;&lt;u&gt;&lt;span class=&quot;greensquare&quot;&gt;&lt;/span&gt;&lt;/u&gt;&lt;/mtext&gt;&lt;/math&gt;
+      &lt;math&gt;&lt;mtext&gt;&lt;a href=&quot;#id&quot;&gt;&lt;span class=&quot;greensquare&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/mtext&gt;&lt;/math&gt;
+      &lt;math&gt;&lt;mtext&gt;&lt;del&gt;&lt;span class=&quot;greensquare&quot;&gt;&lt;/span&gt;&lt;/del&gt;&lt;/mtext&gt;&lt;/math&gt;
+      &lt;math&gt;&lt;mtext&gt;&lt;em&gt;&lt;span class=&quot;greensquare&quot;&gt;&lt;/span&gt;&lt;/em&gt;&lt;/mtext&gt;&lt;/math&gt;
+      &lt;math&gt;&lt;mtext&gt;&lt;strong&gt;&lt;span class=&quot;greensquare&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/mtext&gt;&lt;/math&gt;
+      &lt;math&gt;&lt;mtext&gt;&lt;q&gt;&lt;span class=&quot;greensquare&quot;&gt;&lt;/span&gt;&lt;/q&gt;&lt;/mtext&gt;&lt;/math&gt;
+      &lt;math&gt;&lt;mtext&gt;&lt;small&gt;&lt;span class=&quot;greensquare&quot;&gt;&lt;/span&gt;&lt;/small&gt;&lt;/mtext&gt;&lt;/math&gt;
+      &lt;math&gt;&lt;mtext&gt;&lt;var&gt;&lt;span class=&quot;greensquare&quot;&gt;&lt;/span&gt;&lt;/var&gt;&lt;/mtext&gt;&lt;/math&gt;
+      &lt;math&gt;&lt;mtext&gt;&lt;samp&gt;&lt;span class=&quot;greensquare&quot;&gt;&lt;/span&gt;&lt;/samp&gt;&lt;/mtext&gt;&lt;/math&gt;
+    &lt;/div&gt;
+
+  &lt;/div&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treenamespace1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/namespace-1-expected.txt (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/namespace-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/namespace-1-expected.txt        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+  


+
+PASS Test elements in XHTML namespace 
+PASS Test elements in SVG namespace 
+PASS Test elements in MathML namespace 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treenamespace1html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/namespace-1.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/namespace-1.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/namespace-1.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,57 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;&gt;
+&lt;title&gt;Namespaces&lt;/title&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.mathml-association.org/MathMLinHTML5/S2.html#SS1.SSS1&quot;&gt;
+&lt;meta name=&quot;assert&quot; content=&quot;Verify whether some elements are in the right namespaces.&quot;&gt;
+&lt;script src=&quot;../../../../../resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;../../../../../resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+  var namespaces = {
+    &quot;XHTML&quot;: &quot;http://www.w3.org/1999/xhtml&quot;,
+    &quot;SVG&quot;: &quot;http://www.w3.org/2000/svg&quot;,
+    &quot;MathML&quot;: &quot;http://www.w3.org/1998/Math/MathML&quot;
+  };
+  for (var c in namespaces) {
+    var test_namespace = async_test(&quot;Test elements in &quot; + c + &quot; namespace&quot;);
+    window.addEventListener(&quot;DOMContentLoaded&quot;, function() {
+      var el = document.getElementsByClassName(c);
+      for (var i = 0; i &lt; el.length; i++) {
+        test_namespace.step(function() {
+          assert_equals(el[i].namespaceURI, namespaces[c]);
+        });
+      }
+    });
+    test_namespace.done();
+  }
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;math class=&quot;MathML&quot; xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;/math&gt;
+  &lt;math class=&quot;MathML&quot;&gt;&lt;/math&gt;
+  &lt;math&gt;&lt;mtext class=&quot;MathML&quot;&gt;&lt;/mtext&gt;&lt;/math&gt;
+  &lt;svg width=&quot;0&quot; height=&quot;0&quot;&gt;
+    &lt;foreignObject height=&quot;0&quot; width=&quot;0&quot;&gt;
+      &lt;math class=&quot;MathML&quot;&gt;&lt;/math&gt;
+    &lt;/foreignObject&gt;
+  &lt;/svg&gt;
+  &lt;math&gt;
+    &lt;semantics&gt;
+      &lt;mtext&gt;&lt;span class=&quot;XHTML&quot;&gt;&lt;/span&gt;&lt;/mtext&gt;
+      &lt;annotation-xml encoding=&quot;SVG1.1&quot;&gt;
+        &lt;svg class=&quot;SVG&quot; width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;/svg&gt;
+      &lt;/annotation-xml&gt;
+      &lt;annotation-xml encoding=&quot;image/svg+xml&quot;&gt;
+        &lt;svg class=&quot;SVG&quot; width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;/svg&gt;
+      &lt;/annotation-xml&gt;
+      &lt;annotation-xml encoding=&quot;application/xhtml+xml&quot;&gt;
+        &lt;span class=&quot;XHTML&quot;&gt;&lt;/span&gt;
+      &lt;/annotation-xml&gt;
+      &lt;annotation-xml encoding=&quot;text/html&quot;&gt;
+        &lt;span class=&quot;XHTML&quot;&gt;&lt;/span&gt;
+      &lt;/annotation-xml&gt;
+    &lt;/semantics&gt;
+  &lt;/math&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treerequiredextensions1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-1-expected.txt (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-1-expected.txt        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+PASS Testing foreignObject.hasExtension('http://www.w3.org/1998/Math/MathML') 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treerequiredextensions1html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-1.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-1.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-1.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;meta charset=&quot;utf-8&quot;&gt;
+&lt;title&gt;SVG requiredExtensions&lt;/title&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.mathml-association.org/MathMLinHTML5/S2.html#SS1&quot;&gt;
+&lt;meta name=&quot;assert&quot; content=&quot;Verify whether the MathML namespace is recognized as a required extensions of SVG foreignObject when using the hasExtension javascript function.&quot;&gt;
+&lt;script src=&quot;../../../../../resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;../../../../../resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+  test(function() {
+  assert_true(document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;, &quot;foreignObject&quot;).hasExtension(&quot;http://www.w3.org/1998/Math/MathML&quot;))
+  }, &quot;Testing foreignObject.hasExtension('http://www.w3.org/1998/Math/MathML')&quot;);
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treerequiredextensions2expectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-2-expected.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-2-expected.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-2-expected.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;/&gt;
+&lt;title&gt;SVG requiredExtensions (reference)&lt;/title&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;p&gt;Test passes if there is a green square and no red.&lt;/p&gt;
+  &lt;svg width=&quot;200px&quot; height=&quot;200px&quot;&gt;
+    &lt;rect width=&quot;200px&quot; height=&quot;200px&quot; fill=&quot;green&quot;/&gt;
+  &lt;/svg&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treerequiredextensions2html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-2.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-2.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/required-extensions-2.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;/&gt;
+&lt;title&gt;SVG requiredExtensions&lt;/title&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.mathml-association.org/MathMLinHTML5/S2.html#SS1.SSS1&quot;/&gt;
+&lt;link rel=&quot;match&quot; href=&quot;required-extensions-2-ref.html&quot;/&gt;
+&lt;meta name=&quot;assert&quot; content=&quot;Verify that a foreignObject with MathML used as a requiredExtensions value is selected for display in a SVG switch element.&quot;&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;p&gt;Test passes if there is a green square and no red.&lt;/p&gt;
+  &lt;svg width=&quot;200px&quot; height=&quot;200px&quot;&gt;
+    &lt;rect width=&quot;200px&quot; height=&quot;100px&quot; fill=&quot;red&quot;/&gt;
+    &lt;switch&gt;
+      &lt;foreignObject width=&quot;200px&quot; height=&quot;200px&quot;
+                     requiredExtensions=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;
+        &lt;div style=&quot;width: 200px; height: 200px; background: green&quot;&gt;&lt;/div&gt;
+      &lt;/foreignObject&gt;
+      &lt;rect y=&quot;100px&quot; width=&quot;200px&quot; height=&quot;100px&quot; fill=&quot;red&quot;/&gt;
+    &lt;/switch&gt;
+  &lt;/svg&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeuniqueidentifier2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-2-expected.txt (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-2-expected.txt        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+PASS getElementById() 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeuniqueidentifier2html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-2.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-2.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-2.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;&gt;
+&lt;title&gt;Unique Identifier&lt;/title&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.mathml-association.org/MathMLinHTML5/S2.html#SS1.SSS2&quot;&gt;
+&lt;meta name=&quot;assert&quot; content=&quot;Verify whether the getElementById() works for MathML elements.&quot;&gt;
+&lt;script src=&quot;../../../../../resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;../../../../../resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+  setup({ explicit_done: true });
+  window.addEventListener(&quot;DOMContentLoaded&quot;, function() {
+    var mtext = document.getElementById(&quot;MTEXT&quot;);
+    test(function() {
+      assert_equals(mtext, document.body.firstElementChild.lastElementChild);
+    }, &quot;getElementById()&quot;);
+    done();
+  });
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;math&gt;
+    &lt;mtext id=&quot;MTEXT_&quot;&gt;&lt;/mtext&gt;
+    &lt;mtext id=&quot;MTEX&quot;&gt;&lt;/mtext&gt;
+    &lt;mtext id=&quot;MTEXT&quot;&gt;&lt;/mtext&gt;
+  &lt;/math&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeuniqueidentifier3expectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-3-expected.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-3-expected.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-3-expected.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;/&gt;
+&lt;title&gt;Unique identifier 3 (reference)&lt;/title&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+  &lt;p&gt;Test passes if you see the text &quot;PASS&quot;.&lt;/p&gt;
+  &lt;math&gt;
+    &lt;mtext style=&quot;background: green; color: white;&quot;&gt;PASS&lt;/mtext&gt;
+  &lt;/math&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationshtml5treeuniqueidentifier3html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-3.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-3.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/html5-tree/unique-identifier-3.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;/&gt;
+&lt;title&gt;Unique Identifier&lt;/title&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.mathml-association.org/MathMLinHTML5/S2.html#SS1.SSS2&quot;/&gt;
+&lt;link rel=&quot;match&quot; href=&quot;unique-identifier-3-ref.html&quot;/&gt;
+&lt;meta name=&quot;assert&quot; content=&quot;Verify that the id attribute affects CSS selectors.&quot;&gt;
+&lt;style&gt;
+  #fail { display: none; }
+  #pass { background: green; }
+&lt;/style&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+  &lt;p&gt;Test passes if you see the text &quot;PASS&quot;.&lt;/p&gt;
+  &lt;math&gt;
+    &lt;mtext id=&quot;fail&quot; style=&quot;background: red; color: white;&quot;&gt;FAIL&lt;/mtext&gt;
+    &lt;mtext id=&quot;pass&quot; style=&quot;color: white;&quot;&gt;PASS&lt;/mtext&gt;
+  &lt;/math&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationstextandmathusetypometrics1expectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/text-and-math/use-typo-metrics-1-expected.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/text-and-math/use-typo-metrics-1-expected.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/text-and-math/use-typo-metrics-1-expected.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;meta charset=&quot;utf-8&quot;/&gt;
+&lt;title&gt;Open Font Format: USE_TYPO_METRICS (reference)&lt;/title&gt;
+&lt;style&gt;
+  #green {
+     position: absolute;
+     background: green;
+     left: 10px;
+     width: 230px;
+     height: 230px;
+  }
+&lt;/style&gt;
+&lt;body&gt;
+  &lt;p&gt;Test passes if there is a green square and no red.&lt;/p&gt;
+
+  &lt;div&gt;
+    &lt;div id=&quot;green&quot;&gt;&lt;/div&gt;
+  &lt;/div&gt;
+&lt;/body&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlrelationstextandmathusetypometrics1html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/text-and-math/use-typo-metrics-1.html (0 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/text-and-math/use-typo-metrics-1.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/relations/text-and-math/use-typo-metrics-1.html        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -0,0 +1,51 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;meta charset=&quot;utf-8&quot;/&gt;
+&lt;title&gt;Open Font Format: USE_TYPO_METRICS&lt;/title&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.mathml-association.org/MathMLinHTML5/S2.html#SS2.SSS1&quot;/&gt;
+&lt;link rel=&quot;match&quot; href=&quot;use-typo-metrics-1-ref.html&quot;/&gt;
+&lt;meta name=&quot;assert&quot; content=&quot;Verify that the USE_TYPO_METRICS flag from the OS/2 table is taken into account to calculate line height.&quot;&gt;
+&lt;style&gt;
+  @font-face {
+    font-family: TestFont;
+    src: url(&quot;../../../fonts/math/lineheight5000-typolineheight2300.woff&quot;);
+  }
+  .green {
+     position: absolute;
+     background: green;
+     width: 115px;
+  }
+  .red {
+     position: absolute;
+     background: red;
+     width: 115px;
+  }
+  .forceHeight {
+    height: 230px;
+  }
+  .leftSide {
+    left: 10px;
+  }
+  .rightSide {
+    left: 125px;
+  }
+  span {
+    /* em=1000, lineHeight=5000, typoLineHeight=2300 and font-size=100px
+       implies typoLineHeightPx = 230px &lt; 500px = lineHeightPx */
+     font-family: TestFont;
+     font-size: 100px;
+     color: transparent;
+  }
+&lt;/style&gt;
+&lt;body&gt;
+  &lt;p&gt;Test passes if there is a green square and no red.&lt;/p&gt;
+
+  &lt;div&gt;
+    &lt;!-- Left side verifies that typoLineHeightPx &lt;= 230px --&gt;
+    &lt;div class=&quot;leftSide red&quot;&gt;&lt;span&gt;O&lt;/span&gt;&lt;/div&gt;
+    &lt;div class=&quot;leftSide green forceHeight&quot;&gt;&lt;/div&gt;
+
+    &lt;!-- Right side verifies that typoLineHeightPx =&gt; 230px --&gt;
+    &lt;div class=&quot;rightSide red forceHeight&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;rightSide green&quot;&gt;&lt;span&gt;O&lt;/span&gt;&lt;/div&gt;
+  &lt;/div&gt;
+&lt;/body&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-simulator/TestExpectations (203277 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/TestExpectations        2016-07-15 16:42:21 UTC (rev 203277)
+++ trunk/LayoutTests/platform/ios-simulator/TestExpectations        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -677,6 +677,9 @@
</span><span class="cx"> mathml/presentation/mathvariant-inheritance.html [ Skip ]
</span><span class="cx"> mathml/presentation/mathvariant-tokens.html [ Skip ]
</span><span class="cx"> 
</span><ins>+# This test fails because the USE_TYPO_METRICS flag is ignored for non-math font
+webkit.org/b/150394 imported/mathml-in-html5/mathml/relations/text-and-math/use-typo-metrics-1.html [ ImageOnlyFailure ]
+
</ins><span class="cx"> # The web font loading &amp; relayout seems to be performed too late.
</span><span class="cx"> imported/mathml-in-html5/mathml/relations/css-styling/mathvariant-transforms-1.html [ Pass ImageOnlyFailure ]
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/TestExpectations (203277 => 203278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/TestExpectations        2016-07-15 16:42:21 UTC (rev 203277)
+++ trunk/LayoutTests/platform/mac/TestExpectations        2016-07-15 16:48:17 UTC (rev 203278)
</span><span class="lines">@@ -809,6 +809,9 @@
</span><span class="cx"> webkit.org/b/159662 mathml/presentation/href-enter.html [ Skip ]
</span><span class="cx"> webkit.org/b/159662 mathml/presentation/href-style.html [ Skip ]
</span><span class="cx"> 
</span><ins>+# This test fails because the USE_TYPO_METRICS flag is ignored for non-math font
+webkit.org/b/150394 imported/mathml-in-html5/mathml/relations/text-and-math/use-typo-metrics-1.html [ ImageOnlyFailure ]
+
</ins><span class="cx"> webkit.org/b/128255 compositing/columns/composited-lr-paginated-repaint.html [ Pass Failure ]
</span><span class="cx"> webkit.org/b/128255 compositing/columns/composited-rl-paginated-repaint.html [ Pass Failure ]
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>