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

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: 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
« no previous file with comments | « no previous file | LayoutTests/fast/css/first-letter-render-quote-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ed67a479e72eb6619150c36340ef338345c0bf61
--- /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);
+
+ element2 = document.createElement('td');
+ element2.setAttribute('class', 'class1');
+ document.documentElement.appendChild(element2);
+
+ document.documentElement.offsetTop;
+}
+window.onload = runTest;
+</script>
+
+<p>Test passes if no CRASH and you see a quote on one line and a green B on the second line.</p>
« no previous file with comments | « no previous file | LayoutTests/fast/css/first-letter-render-quote-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698