New issue
Advanced search Search tips

Issue 922869 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

input's ::placeholder pseudo element cannot be queried with window.getComputedStyle

Project Member Reported by fergal@chromium.org, Jan 17 (6 days ago)

Issue description

Steps to repro (@623534).

1 open the attached file

Notice that the placeholder is red.
Notice that the ::placeholder pseudo's computed style is black.
Notice that the ::before pseudo's computed style is red.

It's possible I should be querying something else, not "::placeholder". It's also possible this is related to https://crbug.com/922359 which is a DCHECK related to placeholder style and dev tools.
 
placeholder.html
367 bytes View Download

Comment 1 by fergal@chromium.org, Jan 17 (5 days ago)

Components: Blink>CSS
tkent points out that the standard only specifies ::before and ::after while the draft standard supports all.

https://www.w3.org/TR/cssom-1/#dom-window-getcomputedstyle
https://drafts.csswg.org/cssom/#dom-window-getcomputedstyle

The code for Element::EnsureComputedStyle looks like it makes the effort to handle more than just those 2. I don't know why it fails for this case.

Comment 2 by e...@chromium.org, Jan 17 (5 days ago)

Cc: andruud@chromium.org
Status: Available (was: Untriaged)

Sign in to add a comment