blob: 19596e36aff5c532efae6fa81dc5c72887947cb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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>
|