Chromium Code Reviews| 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> |