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

Unified Diff: LayoutTests/fast/css/first-letter.html

Issue 672953002: Convert first letter into a pseudo element. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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/fast/css/first-letter.html
diff --git a/LayoutTests/fast/css/first-letter.html b/LayoutTests/fast/css/first-letter.html
new file mode 100644
index 0000000000000000000000000000000000000000..85a1cc2a0415dfddfb4f84d1b8241c35b7cbc45f
--- /dev/null
+++ b/LayoutTests/fast/css/first-letter.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<style>
+.before:before { content: 'Carpe '; }
+.after:after { content: 'Foo '; }
+.target:first-letter { color: green; font-size: 2em; }
+span { text-decoration: underline; }
+#a { color: red; }
+#b { color: green; }
+#a::first-letter { text-decoration: underline; font-size: 2em; }
+</style>
+This tests various first letter combinations. In each case the first letter
+should be larger and green.
+<div class="target">Lorem</div>
+<div class="target"><span>Ipsum</span></div>
+<div class="target"><span class="before">Diem</span></div>
+<div class="target"><span class="after"></span>bar</div>
+<div id="a">
+ <div id="b">First letter should be green and underlined.</div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698