blob: f00d712e0aff73cced9a5678e1ed2a75b69934ce [file] [log] [blame]
<!DOCTYPE html>
<style>
/* Some invalid properties for ::first-letter */
#elm { overflow:scroll; max-width:4em; }
/* Some valid properties for ::first-letter */
#elm { font-family:monospace; margin-right:10px; padding-left:3em; background:yellow; }
#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>