diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-text/text-align/text-align-match-parent-002.html')
-rw-r--r-- | testing/web-platform/tests/css/css-text/text-align/text-align-match-parent-002.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-text/text-align/text-align-match-parent-002.html b/testing/web-platform/tests/css/css-text/text-align/text-align-match-parent-002.html new file mode 100644 index 0000000000..19596e36af --- /dev/null +++ b/testing/web-platform/tests/css/css-text/text-align/text-align-match-parent-002.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>CSS Text Test: text-align - computed value for match-parent on the root element</title> +<link rel="help" href="https://drafts.csswg.org/css-text/#valdef-text-align-match-parent"> +<meta name="assert" content="'text-align: match-parent' on the root element with 'direction: rtl' should compute to 'start'."> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<style> + html { + text-align: match-parent; + direction: rtl; + } + #log { + direction: ltr; + text-align: start; + } +</style> +<div id="log"></div> +<script> + test(() => { + assert_equals(getComputedStyle(document.documentElement).textAlign, 'start'); + }); +</script> |