First Letter and Associated Punctuation seems to imply that white-space that precedes the first letter pattern should be ignored. Yet, all major browser do include leading white space consistently though their some behaviors are incompatible:
<!DOCTYPE html>
<style>
div {
float: left;
outline: solid 1px black;
margin-right: 10px;
}
div::first-letter {
font-size: 30px;
background: pink;
}
</style>
<div style="white-space: pre;">Hello</div>
<div style="white-space: pre;">H.ello</div>
<div style="white-space: pre;">.H.ello</div>
<div style="white-space: pre;"> .H.ello</div>
<div style="white-space: pre;"> Hello</div>
<div style="white-space: pre;"> . H .ello</div>
Firefox:
Chrome:
Epiphany (WebKit):
Servo (does not include white space, in an attempt to implement the spec):
