summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-pseudo/first-letter-punctuation-dynamic.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-pseudo/first-letter-punctuation-dynamic.html')
-rw-r--r--testing/web-platform/tests/css/css-pseudo/first-letter-punctuation-dynamic.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-pseudo/first-letter-punctuation-dynamic.html b/testing/web-platform/tests/css/css-pseudo/first-letter-punctuation-dynamic.html
new file mode 100644
index 0000000000..0a7295602a
--- /dev/null
+++ b/testing/web-platform/tests/css/css-pseudo/first-letter-punctuation-dynamic.html
@@ -0,0 +1,14 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>CSS Pseudo-Elements Test: ::first-letter modified text node with punctuation</title>
+<link rel="help" href="https://drafts.csswg.org/css-pseudo/#first-letter-pseudo">
+<link rel="match" href="first-letter-punctuation-dynamic-ref.html">
+<style>
+ #target::first-letter { color: green; }
+</style>
+<p>Only the 'A' below should be green.</p>
+<div id="target"> .<span>B</span></div>
+<script>
+ target.offsetTop;
+ target.firstChild.insertData(0, 'A');
+</script>