Not sure if the title is really clear.
What I'm trying to do is select a webkit pseudo-element (inside shadow dom) with a pseudo-class :nth-of-type.
So, I want to select the second pseudo-element -webkit-datetime-edit-textin input.

I thought I could do it like this:
::-webkit-datetime-edit-text:nth-of-type(2){
display: none;
}
But that will not work.
Is there any way to do this?
Help would be greatly appreciated.
ps: for those who do not know about the possibility of viewing the shade, see paragraph nr 12 here .
source
share