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

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

Issue 667263002: Add layout test for first-letter and render quote. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase to master Created 6 years, 2 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/fast/css/first-letter-render-quote.html
diff --git a/LayoutTests/fast/css/first-letter-render-quote.html b/LayoutTests/fast/css/first-letter-render-quote.html
new file mode 100644
index 0000000000000000000000000000000000000000..38004fb02d16caa5564fa6406d157ea1c02cdccd
--- /dev/null
+++ b/LayoutTests/fast/css/first-letter-render-quote.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<style>
+html, body { margin: 0; padding: 0; }
+td::first-letter { color: green; }
+td { quotes: "A" "v" "B" "u" ; }
+.class1:before, .class2:before {
+ content: open-quote;
+}
+</style>
+<script>
+function runTest() {
+ element1 = document.createElement('div');
+ element1.setAttribute('class', 'class2');
+ document.documentElement.appendChild(element1);
Xianzhu 2014/10/22 17:39:25 What's the purpose of the div? It seems to have th
+
+ element2 = document.createElement('td');
+ element2.setAttribute('class', 'class1');
+ document.documentElement.appendChild(element2);
+
+ document.documentElement.offsetTop;
Xianzhu 2014/10/22 17:39:25 The above line seems unnecessary for a ref test.
+}
+window.onload = runTest;
+</script>
+
+<p>Test passes if you see a quote on one line and a green B on the second line.</p>

Powered by Google App Engine
This is Rietveld 408576698