Is it possible to apply selection colors only to the first line of text in my course homework using CSS3? I recently started learning CSS3 and I am curious to know if this is achievable. While searching on Google, I came across information suggesting that it cannot be done solely with CSS. However, I would like to verify this for myself ;)
p::first-line {
color: red;
}
p::selection {
color: white;
background-color: red;
}