Issue metadata
Sign in to add a comment
|
I can not access placeholder color with JS
Reported by
jeremia....@gmail.com,
Sep 16
|
||||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/68.0.3440.106 Chrome/68.0.3440.106 Safari/537.36 Steps to reproduce the problem: 1. Modify the placeholder color of an input 2. Try to access the input placeholder color with JS What is the expected behavior? I get the proper placeholder color with Javascript. What went wrong? I get a black placeholder color with Javascript. Did this work before? N/A Chrome version: 68.0.3440.106 Channel: n/a OS Version: 18.04 (64-Bit) Flash Version: Posted issue in Stackoverflow https://stackoverflow.com/questions/52355140/get-the-correct-placeholder-color-with-js
,
Sep 16
That's why i can not reuse placeholder color in my component: http://rising-placeholder-input.surge.sh/
,
Sep 16
,
Sep 18
Thanks for filing the issue! Tried checking the issue on reported chrome version 68.0.3440.106 using Ubuntu 14.04 with the below mentioned steps. 1. Launched Chrome 2. Navigated to http://rising-placeholder-input.surge.sh/ 3. Tried clicking the input fields. we observed everything seemed normal. Note: Considering the URL in C#2 as test file. @Reporter: As we are not very clear about "I get a black placeholder color with Javascript.", It would be highly helpful if elaborated on it. And please let us know if we missed anything in the test steps.
,
Sep 18
https://jsfiddle.net/4jbtouke/2/ Once the input has a value, the computed placeholder color returned by Javascript is always black in Chromium
,
Sep 18
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Oct 11
Tried checking the issue on reported chrome version 68.0.3440.106 and on version 60.0.3112.0 using Ubuntu 14.04 and mac 10.13.1 Our observations: ----------------- When navigated to https://jsfiddle.net/4jbtouke/2/ and entered value in input field then text colour is seen in black. Similar behaviour is seen in 60.0.3112.0. Attaching the screencast from Mac, as we are facing technical issue while recording the screen on Linux. @Reporter: Could you please have a look at the screen cast and let us know if the issue is seen in 60.0.3112.0(...from the screen cast) Any further inputs from your end may be helpful. Thanks!
,
Oct 21
The screencast shows the issue in version 60.0.3112.0. The getComputedStyle() method fails when pulling style info from ::placeholder CSS pseudo-element.
,
Oct 21
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Nov 5
FYI - This is a duplicate of the following issue: https://bugs.chromium.org/p/chromium/issues/detail?id=850744 Which I reported months ago and has been confirmed but not fixed yet.
,
Nov 6
From comment#10, this seems to be a duplicate of Issue 850744, hence merging into it. Requesting someone from respective team to have a look for further inputs. Thanks! |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 Deleted