-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test some visual effects on MathML content
- Loading branch information
Showing
8 changed files
with
144 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|