Bug 77427

Summary: Style declaration objects expose properties whose names are CSS property names
Product: WebKit Reporter: Boris Zbarsky <bzbarsky>
Component: CSSAssignee: Tom Zakrajsek <tomz>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: bfulgham, dbates, hyatt, tomz
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Testcase showing bizarre WebKit behavior none

Boris Zbarsky
Reported 2012-01-31 05:24:17 PST
Created attachment 124711 [details] Testcase showing bizarre WebKit behavior Per spec, a style declaration object should have a property called "fontSize". WebKit has that, but it _also_ has a property called "font-size" which is not described in the spec and is not implemented in any other browsers. Some sites are using these properties to lock out non-WebKit UAs now. These properties should be either standardized or removed.
Attachments
Testcase showing bizarre WebKit behavior (139 bytes, text/html)
2012-01-31 05:24 PST, Boris Zbarsky
no flags
Dave Hyatt
Comment 1 2012-02-29 10:51:26 PST
Does IE also support these? I think that might have been the original motivation.
Tom Zakrajsek
Comment 2 2012-02-29 10:58:23 PST
Yes. IE does, but FF and Opera do not. You're probably right about that being the motivation. The primary issue is whether or not this is used in the real world. If not, I'd rather remove it than push for spec change.
Boris Zbarsky
Comment 3 2012-02-29 11:16:26 PST
Brent Fulgham
Comment 4 2022-07-12 16:32:38 PDT
It looks like all browsers handle this test case the same way.
Note You need to log in before you can comment on or make changes to this bug.