Bug 67157

Summary: getComputedStyle returns incorrect styles with nonstandard pseudo-elements
Product: WebKit Reporter: Marc Hoyois <marc.hoyois>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ahmad.saleem792, hyatt, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.7   
Attachments:
Description Flags
HTML file demonstrating the bug none

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.