Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mathml] Make math display values on non-MathML elements compute to flow #25483

Merged
merged 1 commit into from
Sep 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions css/css-display/display-math-on-non-mathml-elements.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>display: math and inline-math on non-MathML compute to flow</title>
<link rel="help" href="https://drafts.csswg.org/css-display/#the-display-properties">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<div id="container">

<div data-expected="block" style="display: math;"></div>
<div data-expected="inline" style="display: inline-math;"></div>
<div data-expected="inline" style="display: inline math;"></div>
<div data-expected="block" style="display: block math;"></div>

<svg data-expected="block" style="display: math;"></svg>
<svg data-expected="inline" style="display: inline-math;"></svg>
<svg data-expected="inline" style="display: inline math;"></svg>
<svg data-expected="block" style="display: block math;"></svg>

</div>

<script>
Array.from(container.children).forEach(element => {
test(function() {
assert_equals(window.getComputedStyle(element).display,
element.getAttribute('data-expected'));
}, `computed display on <${element.tagName} style="${element.getAttribute('style')}">`);
});
</script>