How can select ::placeholder with ::after?

To add content for placeholder text in :focus?

Thanks.

I’m curious. What are you trying to do? You’ve got placeholder, after, and focus.

The placeholder text can’t be in the element created in ::after, so you can’t select it using that (::after defines an element created in CSS). ::placeholder is a pseudo-element, like ::after, a different one.

.my-input:focus::placeholder, anyway.