Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
<!doctype html>
<style>
div::first-letter {
color: green;
}
div::first-line {
color: blue;
}
</style>
<div>My first letter should be green, and the whole line 20px in size</div>
<script>
document.body.offsetTop;
document.querySelector('div').style.fontSize = "20px";
document.body.offsetTop;
</script>