diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-text/text-autospace/text-autospace-dynamic-001.html')
-rw-r--r-- | testing/web-platform/tests/css/css-text/text-autospace/text-autospace-dynamic-001.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-text/text-autospace/text-autospace-dynamic-001.html b/testing/web-platform/tests/css/css-text/text-autospace/text-autospace-dynamic-001.html new file mode 100644 index 0000000000..db718eca8d --- /dev/null +++ b/testing/web-platform/tests/css/css-text/text-autospace/text-autospace-dynamic-001.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<link rel="help" href="https://drafts.csswg.org/css-text-4/#text-autospace-property"> +<link rel="match" href="text-autospace-no-001-ref.html"> +<link rel="mismatch" href="text-autospace-no-001-mismatch-ref.html"> +<style> +.no-as { text-autospace: no-autospace; } +</style> +<div class="test no-as">国国AA国国AA国国</div> +<div class="test">国国AA国国AA国国</div> +<script> +document.body.offsetTop; // Force layout. +for (const element of document.getElementsByClassName('test')) { + element.classList.toggle('no-as'); +} +</script> |