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 Aug 10, 2020
1 parent edfb582 commit d67487f
Show file tree
Hide file tree
Showing 4 changed files with 72 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-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; 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>Blur filter</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 'filter: blur' works on MathML elements.">
</head>
<body>
<p>Rectangles should be blurred.</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>

0 comments on commit d67487f

Please sign in to comment.