Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<title>CSS Pseudo Test: Query ::first-line computed style before outer block ::first-line matches</title>
<link rel="match" href="first-line-green-ref.html">
<style>
#outer::first-line { color: green }
</style>
<div id="outer">
<div id="inner"></div>
</div>
<script>
getComputedStyle(inner, "::first-line").color;
inner.appendChild(document.createTextNode("This text should be green."));
</script>