window.getComputedStyle(input, '::-webkit-input-placeholer') should return style for placeholder |
||
Issue descriptionVersion: 56 canary OS: All What steps will reproduce the problem? See http://stackoverflow.com/questions/28592895/trying-to-get-style-of-placeholder-attribute-of-element What is the expected result? What happens instead? Please use labels and text to provide additional information. A CSSComputedStyleDeclaration instance doesn't keep a name for PseudoWebKitCustomElement. So, CSSComputedStyleDeclaration::styledNode() can't find a shadow element.
,
Nov 17 2016
Oh, then I don't think we want to do this. getComputedStyle in Firefox works with ::placeholder and ::-moz-placeholder. It's a bug of Firefox.
,
Sep 12
It seems the spec changed to remove the ::before and ::after edge cases and getComputedStyles should support ::placeholder now. Spec issue: https://github.com/w3c/csswg-drafts/issues/2149 CSSWG resolution tests: https://github.com/w3c/csswg-drafts/commit/4020029b187e485eed89ff53d32c315aba1f68ae Codepen: https://codepen.io/anon/pen/ZMozqx Please let me know if it would be more optimal to create a new issue. Thanks! |
||
►
Sign in to add a comment |
||
Comment 1 by r...@opera.com
, Nov 17 2016