Bug 1640137 [wpt PR 23741] - Add test to ensure that mathcolor/mathbackground uses the CSS definit…, a=testonly
authorFrédéric Wang <fwang@igalia.com>
Tue, 26 May 2020 11:27:46 +0000
changeset 532478 4b242f21bb3c29cf7a1183ad643885e0cec93b28
parent 532477 c959918bd02485ac40feec4f4da81ee6e2bb6b67
child 532479 b3d21e6cfa7f743c89cdf97bf1f0fa88989ed62a
push id117176
push userwptsync@mozilla.com
push dateWed, 27 May 2020 11:45:04 +0000
treeherderautoland@c127b56cb97a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1640137, 23741
milestone78.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1640137 [wpt PR 23741] - Add test to ensure that mathcolor/mathbackground uses the CSS definit…, a=testonly Automatic update from web-platform-tests Add test to ensure that mathcolor/mathbackground uses the CSS definition. (#23741) https://github.com/mathml-refresh/mathml/issues/62 -- wpt-commits: ebd814422b787abd65010176104861f3cc5b180b wpt-pr: 23741
testing/web-platform/tests/mathml/relations/css-styling/mathcolor-mathbackground-css-ref.html
testing/web-platform/tests/mathml/relations/css-styling/mathcolor-mathbackground-css.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/mathml/relations/css-styling/mathcolor-mathbackground-css-ref.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS color (reference)</title>
+<link rel="stylesheet" href="/fonts/ahem.css">
+<style>
+  math  {
+    font-family: Ahem;
+    font-size: 20px;
+  }
+</style>
+</style>
+</head>
+<body>
+  <p>Test passes if you see a green rectangle:</p>
+  <p>
+    <math mathbackground="#0f0" mathcolor="#0f0">
+      <mtext>X X</mtext>
+    </math>
+  </p>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/mathml/relations/css-styling/mathcolor-mathbackground-css.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS color</title>
+<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#types-for-mathml-attribute-values">
+<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#legacy-mathml-style-attributes">
+<link rel="match" href="mathcolor-mathbackground-css-ref.html"/>
+<link rel="stylesheet" href="/fonts/ahem.css">
+<meta name="assert" content="Verify that the mathcolor and mathbackground attributes use the CSS definition of colors.">
+<style>
+  math  {
+    font-family: Ahem;
+    font-size: 20px;
+  }
+</style>
+</style>
+</head>
+<body>
+  <p>Test passes if you see a green rectangle:</p>
+  <p style="color: red">
+    <math mathbackground="rgb(0,255,0)" mathcolor="rgb(0,255,0)">
+      <mtext>X X</mtext>
+    </math>
+  </p>
+</body>
+</html>