I was looking at Twitter's login page and noticed that in Chrome with autofill turned on the pseudoelement inside the shadowDOM attached to the input element changes depending on whether the suggestion is hovered on or not.
When it's the normal placeholder, the pseudoelement "-webkit-input-placeholder" is present, when my email address is hovered on (not clicked), the "-internal-input-suggested" pseudoelement is there instead.
I've attached screenshots on what I'm describing.
Screenshots:
-webkit-input-placeholder screenshot
-internal-input-suggested pseudoelement
Both of these elements are in the user agent shadowDOM. How can I check which of those pseudoelements is present using javascript?