Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /mathml/presentation-markup/direction/direction-006.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>RTL mtable and mtable with frame</title>
<link rel="help" href="https://w3c.github.io/mathml-core/#attributes-common-to-html-and-mathml-elements">
<meta name="assert" content="Verify RTL math table renders the same as the column mirrored.">
<link rel="match" href="direction-006-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
math, math * {
font: 25px Ahem;
}
</style>
</head>
<body>
<p>
<math dir="rtl">
<mtable>
<mtr>
<mtd>
<mtext>X</mtext>
</mtd>
<mtd>
<mtext>p</mtext>
</mtd>
<mtd>
<mtext>É</mtext>
</mtd>
</mtr>
<mtr>
<mtd>
<mtext>Xp</mtext>
</mtd>
<mtd>
<mtext>XÉ</mtext>
</mtd>
<mtd>
<mtext>pÉ</mtext>
</mtd>
</mtr>
</mtable>
</math>
</p>
<p>
<math dir="rtl">
<mtable frame="solid">
<mtr>
<mtd>
<mtext>X</mtext>
</mtd>
<mtd>
<mtext>p</mtext>
</mtd>
<mtd>
<mtext>É</mtext>
</mtd>
</mtr>
<mtr>
<mtd>
<mtext>Xp</mtext>
</mtd>
<mtd>
<mtext>XÉ</mtext>
</mtd>
<mtd>
<mtext>pÉ</mtext>
</mtd>
</mtr>
</mtable>
</math>
</p>
<script src="/mathml/support/feature-detection.js"></script>
<script>MathMLFeatureDetection.ensure_for_match_reftest("has_dir");</script>
</body>
</html>