while playing around ::first-letter
when string start with @ then it color 2 letters.
footer {
color: mediumseagreen;
font-size: 2rem;
font-style: italic;
}
footer::first-letter { color: purple; }
<footer>@xyz</footer>
<footer>xyz</footer>
is this right behavior?
Per MDN,
The
@character is part of the "Other Punctuation" category, so it is correct for@xto be highlighted in your first example.