haikuwebkit/LayoutTests/mathml/presentation/mspace.html

19 lines
378 B
HTML
Raw Permalink Normal View History

Add Support for mspace element https://bugs.webkit.org/show_bug.cgi?id=115610 Patch by Frédéric Wang <fred.wang@free.fr> on 2013-07-01 Reviewed by Chris Fleizach. Source/WebCore: This patch adds basic support for the MathML mspace element. This is important to let people control spacing of mathematical formulas. Attributes width, height and depth are implemented. For the moment, only nonnegative width are accepted. * CMakeLists.txt: add references to the RenderMathMLSpace files. * GNUmakefile.list.am: ditto. * Target.pri: ditto. * WebCore.vcxproj/WebCore.vcxproj: ditto. * WebCore.vcxproj/WebCore.vcxproj.filters: ditto. * WebCore.xcodeproj/project.pbxproj: ditto. * css/mathml.css: (mtable[columnlines="dashed"] > mtr > mtd + mtd): remove the obsolete linebreaking rule. * mathml/MathMLTextElement.cpp: (WebCore::MathMLTextElement::createRenderer): map mspaceTag to RenderMathMLSpace. * mathml/mathattrs.in: add width, height and depth attributes * mathml/mathtags.in: add mspace element * rendering/mathml/RenderMathMLBlock.cpp: (WebCore::parseMathMLLength): fix int to float conversion. * rendering/mathml/RenderMathMLBlock.h: declare isRenderMathMLSpace. (WebCore::RenderMathMLBlock::isRenderMathMLSpace): * rendering/mathml/RenderMathMLSpace.cpp: Added. (WebCore::RenderMathMLSpace::RenderMathMLSpace): (WebCore::RenderMathMLSpace::isChildAllowed): (WebCore::RenderMathMLSpace::computePreferredLogicalWidths): (WebCore::RenderMathMLSpace::updateFromElement): (WebCore::RenderMathMLSpace::updateLogicalWidth): (WebCore::RenderMathMLSpace::updateLogicalHeight): (WebCore::RenderMathMLSpace::layout): (WebCore::RenderMathMLSpace::styleDidChange): (WebCore::RenderMathMLSpace::firstLineBoxBaseline): * rendering/mathml/RenderMathMLSpace.h: Added. (WebCore::RenderMathMLSpace::isRenderMathMLSpace): (WebCore::RenderMathMLSpace::renderName): (WebCore::toRenderMathMLSpace): LayoutTests: Add a reftest for the mspace element (width, height and depth) and the parsing of MathML lengths. Import a reftest from Gecko to check positive namedspace values. * mathml/presentation/mspace-expected.html: Added. * mathml/presentation/mspace-units-expected.html: Added. * mathml/presentation/mspace-units.html: Added. * mathml/presentation/mspace.html: Added. * mathml/presentation/positive-namedspace-expected.html: Added. * mathml/presentation/positive-namedspace.html: Added. Canonical link: https://commits.webkit.org/136288@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@152235 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-07-01 18:41:43 +00:00
<!DOCTYPE html>
<html>
<head>
<title>mspace</title>
</head>
<body>
Remove padding and margin around the <math> element https://bugs.webkit.org/show_bug.cgi?id=157989 Source/WebCore: Reviewed by Brent Fulgham. No new tests, already covered by existing tests. * css/mathml.css: (math): Remove padding. (math[display="block"]): Remove margin. LayoutTests: Patch by Frederic Wang <fwang@igalia.com> on 2016-07-13 Reviewed by Brent Fulgham. * imported/mathml-in-html5/mathml/relations/html5-tree/href-click-1.html: Remove spacing hack. * imported/mathml-in-html5/mathml/relations/html5-tree/href-click-2.html: Ditto. * mathml/presentation/fractions-box-expected.html: Ditto. * mathml/presentation/fractions-box.html: Ditto. * mathml/presentation/href-enter.html: Ditto. * mathml/presentation/maction-toggle-href.html: Ditto. * mathml/presentation/mpadded-1-2.html: Ditto. * mathml/presentation/mpadded-1.html: Ditto. * mathml/presentation/mpadded-2.html: Ditto. * mathml/presentation/mpadded-3.html: Ditto. * mathml/presentation/mpadded-4-expected.html: Ditto. * mathml/presentation/mpadded-4.html: Ditto. * mathml/presentation/mspace-prefered-width.html: Ditto. * mathml/presentation/mspace-units-expected.html: Ditto. * mathml/presentation/mspace-units.html: Ditto. * mathml/presentation/mspace.html: Ditto. * mathml/presentation/scripts-height-expected.html: Ditto. * mathml/presentation/scripts-subsup-expected.html: Ditto. * mathml/presentation/scripts-subsup.html: Ditto. * mathml/presentation/scripts-underover-expected.html: Ditto. * mathml/presentation/scripts-underover.html: Ditto. * mathml/presentation/semantics-2.html: Ditto. * mathml/presentation/semantics-3.html: Ditto. * mathml/presentation/semantics-4.html: Ditto. * mathml/presentation/semantics-href.html: Ditto. * mathml/presentation/style-border-padding-background.html: Ditto. * platform/gtk/mathml/opentype/horizontal-expected.png: Rebaseline due to spacing change around the math tag. * platform/gtk/mathml/opentype/horizontal-expected.txt: Ditto. * platform/gtk/mathml/opentype/horizontal-munderover-expected.png: Ditto. * platform/gtk/mathml/opentype/horizontal-munderover-expected.txt: Ditto. * platform/gtk/mathml/opentype/large-operators-expected.txt: Ditto. * platform/gtk/mathml/opentype/opentype-stretchy-expected.png: Ditto. * platform/gtk/mathml/opentype/opentype-stretchy-expected.txt: Ditto. * platform/gtk/mathml/opentype/opentype-stretchy-horizontal-expected.png: Ditto. * platform/gtk/mathml/opentype/opentype-stretchy-horizontal-expected.txt: Ditto. * platform/gtk/mathml/opentype/vertical-expected.png: Ditto. * platform/gtk/mathml/opentype/vertical-expected.txt: Ditto. * platform/gtk/mathml/presentation/menclose-notation-default-longdiv-expected.png: Ditto. * platform/gtk/mathml/presentation/menclose-notation-default-longdiv-expected.txt: Ditto. * platform/gtk/mathml/presentation/menclose-notation-values-expected.png: Ditto. * platform/gtk/mathml/presentation/menclose-notation-values-expected.txt: Ditto. * platform/gtk/mathml/presentation/mo-stretch-expected.png: Ditto. * platform/gtk/mathml/presentation/mo-stretch-expected.txt: Ditto. * platform/gtk/mathml/presentation/mspace-children-expected.txt: Ditto. * platform/gtk/mathml/presentation/roots-expected.png: Ditto. * platform/gtk/mathml/presentation/roots-expected.txt: Ditto. * platform/gtk/mathml/radical-fallback-expected.png: Ditto. * platform/gtk/mathml/radical-fallback-expected.txt: Ditto. * platform/ios-simulator/mathml/opentype/opentype-stretchy-expected.txt: Ditto. * platform/ios-simulator/mathml/opentype/opentype-stretchy-horizontal-expected.txt: Ditto. * platform/ios-simulator/mathml/presentation/menclose-notation-default-longdiv-expected.txt: Ditto. * platform/ios-simulator/mathml/presentation/menclose-notation-values-expected.txt: Ditto. * platform/ios-simulator/mathml/presentation/mo-stretch-expected.txt: Ditto. * platform/ios-simulator/mathml/presentation/mspace-children-expected.txt: Ditto. * platform/ios-simulator/mathml/presentation/roots-expected.txt: Ditto. * platform/ios-simulator/mathml/radical-fallback-expected.txt: Ditto. * platform/mac/mathml/opentype/opentype-stretchy-expected.txt: Ditto. * platform/mac/mathml/opentype/opentype-stretchy-horizontal-expected.txt: Ditto. * platform/mac/mathml/presentation/menclose-notation-default-longdiv-expected.txt: Ditto. * platform/mac/mathml/presentation/menclose-notation-values-expected.txt: Ditto. * platform/mac/mathml/presentation/mo-stretch-expected.txt: Ditto. * platform/mac/mathml/presentation/mspace-children-expected.txt: Ditto. * platform/mac/mathml/presentation/roots-expected.txt: Ditto. * platform/mac/mathml/radical-fallback-expected.txt: Ditto. * mathml/mathml-in-dashboard-expected.txt: Ditto Canonical link: https://commits.webkit.org/177871@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@203171 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-07-13 19:14:59 +00:00
<math style="position: absolute; top: 0; left: 0;">
Add Support for mspace element https://bugs.webkit.org/show_bug.cgi?id=115610 Patch by Frédéric Wang <fred.wang@free.fr> on 2013-07-01 Reviewed by Chris Fleizach. Source/WebCore: This patch adds basic support for the MathML mspace element. This is important to let people control spacing of mathematical formulas. Attributes width, height and depth are implemented. For the moment, only nonnegative width are accepted. * CMakeLists.txt: add references to the RenderMathMLSpace files. * GNUmakefile.list.am: ditto. * Target.pri: ditto. * WebCore.vcxproj/WebCore.vcxproj: ditto. * WebCore.vcxproj/WebCore.vcxproj.filters: ditto. * WebCore.xcodeproj/project.pbxproj: ditto. * css/mathml.css: (mtable[columnlines="dashed"] > mtr > mtd + mtd): remove the obsolete linebreaking rule. * mathml/MathMLTextElement.cpp: (WebCore::MathMLTextElement::createRenderer): map mspaceTag to RenderMathMLSpace. * mathml/mathattrs.in: add width, height and depth attributes * mathml/mathtags.in: add mspace element * rendering/mathml/RenderMathMLBlock.cpp: (WebCore::parseMathMLLength): fix int to float conversion. * rendering/mathml/RenderMathMLBlock.h: declare isRenderMathMLSpace. (WebCore::RenderMathMLBlock::isRenderMathMLSpace): * rendering/mathml/RenderMathMLSpace.cpp: Added. (WebCore::RenderMathMLSpace::RenderMathMLSpace): (WebCore::RenderMathMLSpace::isChildAllowed): (WebCore::RenderMathMLSpace::computePreferredLogicalWidths): (WebCore::RenderMathMLSpace::updateFromElement): (WebCore::RenderMathMLSpace::updateLogicalWidth): (WebCore::RenderMathMLSpace::updateLogicalHeight): (WebCore::RenderMathMLSpace::layout): (WebCore::RenderMathMLSpace::styleDidChange): (WebCore::RenderMathMLSpace::firstLineBoxBaseline): * rendering/mathml/RenderMathMLSpace.h: Added. (WebCore::RenderMathMLSpace::isRenderMathMLSpace): (WebCore::RenderMathMLSpace::renderName): (WebCore::toRenderMathMLSpace): LayoutTests: Add a reftest for the mspace element (width, height and depth) and the parsing of MathML lengths. Import a reftest from Gecko to check positive namedspace values. * mathml/presentation/mspace-expected.html: Added. * mathml/presentation/mspace-units-expected.html: Added. * mathml/presentation/mspace-units.html: Added. * mathml/presentation/mspace.html: Added. * mathml/presentation/positive-namedspace-expected.html: Added. * mathml/presentation/positive-namedspace.html: Added. Canonical link: https://commits.webkit.org/136288@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@152235 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-07-01 18:41:43 +00:00
<mspace width="50px" height="3em" depth="3em" mathbackground="red"/>
<mspace width="40px" height="1em" depth="2em" mathbackground="green"/>
<mspace width="30px" height="2em" depth="1em" mathbackground="blue"/>
</math>
</body>
</html>