|
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | +<head> |
| 4 | +<meta charset="utf-8"/> |
| 5 | +<title>presentational hints</title> |
| 6 | +<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#attributes-common-to-html-and-mathml-elements"> |
| 7 | +<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#css-styling"> |
| 8 | +<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#double-struck-mappings"> |
| 9 | +<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#legacy-mathml-style-attributes"> |
| 10 | +<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#new-text-transform-values"> |
| 11 | +<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#the-displaystyle-and-scriptlevel-attributes"> |
| 12 | +<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#the-mathvariant-attribute"> |
| 13 | +<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#the-mathvariant-attribute"> |
| 14 | +<link rel="match" href="presentational-hints-001-ref.html"/> |
| 15 | +<link rel="stylesheet" href="/fonts/ahem.css"> |
| 16 | +<meta name="assert" content="Verify that local author style wins over presentation hints attributes"> |
| 17 | +<style> |
| 18 | + @font-face { |
| 19 | + font-family: DoubleStruck; |
| 20 | + src: url("/fonts/math/mathvariant-double-struck.woff"); |
| 21 | + } |
| 22 | + @font-face { |
| 23 | + font-family: Italic; |
| 24 | + src: url("/fonts/math/mathvariant-italic.woff"); |
| 25 | + } |
| 26 | + math { |
| 27 | + font: 25px/1 Ahem; |
| 28 | + } |
| 29 | +</style> |
| 30 | +<body> |
| 31 | + <p>dir: |
| 32 | + <math dir="rtl" style="direction: ltr;"> |
| 33 | + <mtext>X</mtext> |
| 34 | + <mtext>p</mtext> |
| 35 | + </math> |
| 36 | + </p> |
| 37 | + <p>mathcolor: |
| 38 | + <math mathcolor="red" style="color: green;"> |
| 39 | + <mtext>X</mtext> |
| 40 | + <mtext>p</mtext> |
| 41 | + </math> |
| 42 | + </p> |
| 43 | + <p>mathbackground: |
| 44 | + <math mathbackground="red" style="background: green;"> |
| 45 | + <mtext>X</mtext> |
| 46 | + <mtext>p</mtext> |
| 47 | + </p> |
| 48 | + <p>mathsize: |
| 49 | + <math> |
| 50 | + <mtext mathsize="300%" style="font-size: 100%">X</mtext> |
| 51 | + </math> |
| 52 | + </p> |
| 53 | + <p>mathvariant: |
| 54 | + <math style="font-family: DoubleStruck, Italic;"> |
| 55 | + <mtext mathvariant="double-struck" |
| 56 | + style="text-transform: math-italic">ب</mtext> |
| 57 | + </math> |
| 58 | + </p> |
| 59 | + <p>displaystyle: |
| 60 | + <math displaystyle="true" style="math-style: inline"> |
| 61 | + <munder> |
| 62 | + <mo movablelimits="true">X</mo> |
| 63 | + <mo>X</mo> |
| 64 | + </munder> |
| 65 | + </math> |
| 66 | + </p> |
| 67 | + <p>scriptlevel: |
| 68 | + <math> |
| 69 | + <mtext scriptlevel="1" style="font-size: scriptlevel(0);">X</mtext> |
| 70 | + </math> |
| 71 | + </p> |
| 72 | +</body> |
| 73 | +</html> |
0 commit comments