After applying the following CSS code to style the first letter of my text, I noticed an unusual behavior in Chrome:
main p::first-letter {
font-size: 300%;
}
<main>
<p>
This is some sample text
</p>
</main>
For instance, when I try to highlight the word 'is', the letters 'pl' from the word 'sample' get highlighted instead. You can test this issue on jsfiddle.
To illustrate further, here is a demonstration of what occurs:
https://i.sstatic.net/N07YE.gif
The highlighted text appears in the incorrect location as shown in the image.
I am uncertain whether this mistake is mine or if it is a bug specific to Chrome. How can I rectify this issue?