gecko-dev/layout/reftests/first-letter/1385656.html

17 строки
435 B
HTML

<!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>