summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/text-autospace/text-autospace-dynamic-text-003.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-text/text-autospace/text-autospace-dynamic-text-003.html')
-rw-r--r--testing/web-platform/tests/css/css-text/text-autospace/text-autospace-dynamic-text-003.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-text/text-autospace/text-autospace-dynamic-text-003.html b/testing/web-platform/tests/css/css-text/text-autospace/text-autospace-dynamic-text-003.html
new file mode 100644
index 0000000000..cf2237d48e
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/text-autospace/text-autospace-dynamic-text-003.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<link rel="help" href="https://drafts.csswg.org/css-text-4/#text-autospace-property">
+<link rel="help" href="text-autospace-dynamic-text-001-ref.html">
+<div id="target">国国国国国</div>
+<script>
+const target_text = document.getElementById('target').firstChild;
+document.body.offsetTop; // Force layout.
+target_text.replaceData(2, 1, 'AA国国AA');
+</script>