Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: LayoutTests/css1/pseudo/firstletter-surrogate.html

Issue 1133853006: Elements whose contents start with an astral Unicode symbol disappear when CSS `::first-letter` is … Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Working in process patch Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/css1/pseudo/firstletter-surrogate.html
diff --git a/LayoutTests/css1/pseudo/firstletter-surrogate.html b/LayoutTests/css1/pseudo/firstletter-surrogate.html
new file mode 100644
index 0000000000000000000000000000000000000000..8b34233dbefae60148d153291607338dd1eb28f3
--- /dev/null
+++ b/LayoutTests/css1/pseudo/firstletter-surrogate.html
@@ -0,0 +1,8 @@
+<style>
+p::first-letter {
+ background: red;
+}
+</style>
+This test makes sure that the ::first-letter pseudoclass works with first
+letters that require surrogates when written in UTF-16.
+<p>&#x1D306;Lorem ipsum (1)</p>

Powered by Google App Engine
This is Rietveld 408576698