RESOLVED DUPLICATE of bug 243539 67157
getComputedStyle returns incorrect styles with nonstandard pseudo-elements
https://bugs.webkit.org/show_bug.cgi?id=67157
Summary getComputedStyle returns incorrect styles with nonstandard pseudo-elements
Marc Hoyois
Reported 2011-08-29 15:18:55 PDT
Created attachment 105529 [details] HTML file demonstrating the bug Overview: getComputedStyle(element, pseudoElt) returns incorrect styles for many (all?) -webkit-prefixed pseudo-elements. For some it returns the styles of element, and for others it returns completely empty styles. Steps to reproduce: Open attached HTML file (check the console for the full styles). Actual result: The width of the play button is reported as '300px', the width of the spin button as ''. Expected results: The actual width of the play button is '16px', the width of the spin button is '13px'. Build Date & Platform: Tested in Safari 5.1 and r93978 Note: I prefixed '::' to the pseudoElt string, which I think is the correct way to do it, but the results are the same with ':' and no prefix at all.
Attachments
HTML file demonstrating the bug (681 bytes, text/html)
2011-08-29 15:18 PDT, Marc Hoyois
no flags
Ahmad Saleem
Comment 1 2022-08-06 05:27:25 PDT
*** Safari 15.6 on macOS 12.5 *** width of play button: 300px width of spin button: 300px etc. *** Firefox Nightly 105 *** width of play button: width of spin button: etc. *** Chrome Canary 106 *** width of play button: 300px width of spin button: 300px etc. *** This bug has been marked as a duplicate of bug 243539 ***
Note You need to log in before you can comment on or make changes to this bug.