Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: layout/reftests/first-line/reftest.list
<!DOCTYPE html>
<style>
div { color: red; }
div::first-line { color: green }
#y { display: inline-block; }
</style>
<div id="x"><span id="y">green</span></div>
<script>
x.offsetWidth;
y.insertBefore(document.createTextNode('This should be '), y.firstChild);
</script>