blob: 7247ad62e24c14c2fd9618fa9f57e9170bae657b [file] [log] [blame]
<!DOCTYPE html>
<style>
/* Some invalid properties for ::first-letter */
#elm { font-family:monospace; 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>