diff options
author | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2020-09-16 08:20:57 +0000 |
---|---|---|
committer | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2020-09-16 10:49:03 +0000 |
commit | 8504f7d13d30cf31fbe45e8d61e89d55a2004dbe (patch) | |
tree | 841afe532dac387a1f49523ae94223f4a40e738f /tests/wpt/web-platform-tests/css/css-display | |
parent | 03fb9c5d6e8c67fc996644a9e77e36d46687957f (diff) | |
download | servo-8504f7d13d30cf31fbe45e8d61e89d55a2004dbe.tar.gz servo-8504f7d13d30cf31fbe45e8d61e89d55a2004dbe.zip |
Update web-platform-tests to revision cd0ac591860335b75cdc2576fdc57c840afec870
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-display')
-rw-r--r-- | tests/wpt/web-platform-tests/css/css-display/display-math-on-non-mathml-elements.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-display/display-math-on-non-mathml-elements.html b/tests/wpt/web-platform-tests/css/css-display/display-math-on-non-mathml-elements.html new file mode 100644 index 00000000000..2d117cfff57 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-display/display-math-on-non-mathml-elements.html @@ -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> |