Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
<!DOCTYPE html>
<style>
div { border: 5px solid transparent; }
div::first-line { }
div::first-letter { border: inherit; border-color: yellow; }
</style>
<div>
Some text.
</div>
<script>
onload = function() {
var div = document.querySelector("div");
window.width = div.offsetWidth; // Make sure we flush layout.
div.appendChild(document.createTextNode('Does the first letter still have a border?'));
}
</script>