<!DOCTYPE html> | |
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-pseudo"> | |
<link rel="match" href="first-line-on-ancestor-block-ref.html"> | |
<style> | |
#block::first-line { color: green; } | |
</style> | |
<div id="block"> | |
<div> | |
<div style="color: blue"> | |
<div> | |
<span><span>This text should be green.</span></span><br> | |
This text should be blue. | |
</div> | |
</div> | |
</div> | |
</div> |