Index: LayoutTests/fast/css/all-shorthand-first-letter.html |
diff --git a/LayoutTests/fast/css/all-shorthand-first-letter.html b/LayoutTests/fast/css/all-shorthand-first-letter.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6e25a09a7a619451c4f8b77ec6a2dc7e73293284 |
--- /dev/null |
+++ b/LayoutTests/fast/css/all-shorthand-first-letter.html |
@@ -0,0 +1,15 @@ |
+<!DOCTYPE html> |
+<style> |
+ /* Some invalid properties for ::first-letter */ |
+ #elm { overflow:scroll; max-width:4em; opacity:0.6; background:yellow; } |
+ |
+ /* Some valid properties for ::first-letter */ |
+ #elm { margin-right:10px; padding-left:3em; } |
+ |
+ #elm::first-letter { color:red; all:inherit; margin-left:-3em; float:left; } |
+</style> |
+<p>Test that an all:inherit declaration in a ::first-letter rule inherits what should be inherited, |
+ while invalid properties for ::first-letter aren't.</p> |
+<p>The word "PASS" should be seen below, in a yellow box. There should be scrollbars on the yellow |
+ box. Translucency should be uniform. There should be no red.</p> |
+<div id="elm">P<span style="margin-left:-10px;">ASS</span></div> |