Skip to content

Commit

Permalink
Test some visual effects on MathML content
Browse files Browse the repository at this point in the history
  • Loading branch information
rwlbuis committed Sep 15, 2020
1 parent edfb582 commit 4ecbcfb
Show file tree
Hide file tree
Showing 8 changed files with 144 additions and 0 deletions.
14 changes: 14 additions & 0 deletions mathml/relations/css-styling/blur-filter-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Blur filter (reference)</title>
</head>
<body>
<p>Rectangles should be blurred.</p>
<div style="background: green; filter: blur(5px); width: 200px; height: 200px;"></div>
<div style="background: green; filter: blur(5px); width: 200px; height: 200px; position: absolute; top: 300px"></div>
</div>
</body>
</html>

22 changes: 22 additions & 0 deletions mathml/relations/css-styling/blur-filter.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Blur filter</title>
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#css-styling">
<link rel="match" href="blur-filter-ref.html"/>
<meta name="assert" content="Verify that 'filter: blur' works on MathML elements.">
</head>
<body>
<p>Rectangles should be blurred.</p>
<div>
<math><mspace width="200px" height="200px" style="background: green; filter: blur(5px)"/></math>
</div>
<div style="position: absolute; top: 300px">
<math style="filter: blur(5px)"><mspace width="200px" height="200px" style="background: green"/></math>
</div>
<script src="/mathml/support/feature-detection.js"></script>
<script>MathMLFeatureDetection.ensure_for_match_reftest("has_mspace");</script>
</body>
</html>

14 changes: 14 additions & 0 deletions mathml/relations/css-styling/clip-path-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Clip property (reference)</title>
</head>
<body>
<p>Rectangles should be clipped to a circle.</p>
<div style="background: green; width: 200px; height: 200px; clip-path: circle(50%)"></div>
<div style="background: green; width: 200px; height: 200px; position: absolute; top: 300px; clip-path: circle(50%)"></div>
</div>
</body>
</html>

22 changes: 22 additions & 0 deletions mathml/relations/css-styling/clip-path.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Clip property</title>
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#css-styling">
<link rel="match" href="clip-path-ref.html"/>
<meta name="assert" content="Verify that the clip property works on MathML elements.">
</head>
<body>
<p>Rectangles should be clipped to a circle.</p>
<div>
<math><mspace width="200px" height="200px" style="background: green; clip-path: circle(50%)"/></math>
</div>
<div style="position: absolute; top: 300px; width: 200px; height: 200px">
<math style="position: absolute; clip-path: circle(50%)"><mspace width="200px" height="200px" style="background: green"/></math>
</div>
<script src="/mathml/support/feature-detection.js"></script>
<script>MathMLFeatureDetection.ensure_for_match_reftest("has_mspace");</script>
</body>
</html>

14 changes: 14 additions & 0 deletions mathml/relations/css-styling/clip-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Clip property (reference)</title>
</head>
<body>
<p>Rectangles should be clipped.</p>
<div style="background: green; width: 200px; height: 200px; position: absolute; top: 100px; clip: rect(0px 100px 100px 0px)"></div>
<div style="background: green; width: 200px; height: 200px; position: absolute; top: 300px; clip: rect(0px 100px 100px 0px)"></div>
</div>
</body>
</html>

22 changes: 22 additions & 0 deletions mathml/relations/css-styling/clip.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Clip property</title>
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#css-styling">
<link rel="match" href="clip-ref.html"/>
<meta name="assert" content="Verify that the clip property works on MathML elements.">
</head>
<body>
<p>Rectangles should be clipped.</p>
<div>
<math><mspace width="200px" height="200px" style="position:absolute; top:100px; background: green; clip: rect(0px 100px 100px 0px)"/></math>
</div>
<div style="position: absolute; top: 300px; width: 200px; height: 200px">
<math style="position: absolute; clip: rect(0px 100px 100px 0px)"><mspace width="200px" height="200px" style="background: green"/></math>
</div>
<script src="/mathml/support/feature-detection.js"></script>
<script>MathMLFeatureDetection.ensure_for_match_reftest("has_mspace");</script>
</body>
</html>

14 changes: 14 additions & 0 deletions mathml/relations/css-styling/transform-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Transform property (reference)</title>
</head>
<body>
<p>Rectangles should be rotated.</p>
<div style="background: green; width: 200px; height: 200px; position: absolute; top: 100px; transform: rotate(90deg)"></div>
<div style="background: green; width: 200px; height: 200px; position: absolute; top: 300px; transform: rotate(90deg)"></div>
</div>
</body>
</html>

22 changes: 22 additions & 0 deletions mathml/relations/css-styling/transform.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Transform property</title>
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#css-styling">
<link rel="match" href="transform-ref.html"/>
<meta name="assert" content="Verify that the transform property works on MathML elements.">
</head>
<body>
<p>Rectangles should be rotated.</p>
<div>
<math><mspace width="200px" height="200px" style="position:absolute; top:100px; background: green; transform: rotate(90deg)"/></math>
</div>
<div style="position: absolute; top: 300px; width: 200px; height: 200px">
<math style="position: absolute; transform: rotate(90deg)"><mspace width="200px" height="200px" style="background: green"/></math>
</div>
<script src="/mathml/support/feature-detection.js"></script>
<script>MathMLFeatureDetection.ensure_for_match_reftest("has_mspace");</script>
</body>
</html>

0 comments on commit 4ecbcfb

Please sign in to comment.