Bug 80736 - CSSStyleDeclaration.getPropertyValue() for 'border-radius' returns null when value is set
Summary: CSSStyleDeclaration.getPropertyValue() for 'border-radius' returns null when ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Joe Thomas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-09 15:09 PST by Eric Guzman
Modified: 2012-04-14 14:05 PDT (History)
7 users (show)

See Also:


Attachments
Demo page of bug (1.74 KB, text/html)
2012-04-10 11:39 PDT, Eric Guzman
no flags Details
ProposedPatch (4.21 KB, patch)
2012-04-13 16:51 PDT, Joe Thomas
no flags Details | Formatted Diff | Diff
Reduced test case (310 bytes, text/html)
2012-04-13 16:58 PDT, Joe Thomas
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Guzman 2012-03-09 15:09:45 PST
There is an inconsistency with how the CSSStyleDeclaration reports the values of shorthand css properties. Also seen in Chrome.

Notably, the querying the value for 'border-radius' like so returns null:

// (Assume 'rule' is a CSSStyleRule object which has a the border-radius set)
rule.style.getPropertyValue('border-radius')

Other shorthand properties such as 'border' or 'background' will return their value.

Thanks!
Comment 1 Eric Guzman 2012-04-10 11:39:43 PDT
Created attachment 136496 [details]
Demo page of bug
Comment 2 Joe Thomas 2012-04-13 16:51:33 PDT
Created attachment 137180 [details]
ProposedPatch
Comment 3 Joe Thomas 2012-04-13 16:58:04 PDT
Created attachment 137181 [details]
Reduced test case
Comment 4 WebKit Review Bot 2012-04-14 14:05:18 PDT
Comment on attachment 137180 [details]
ProposedPatch

Clearing flags on attachment: 137180

Committed r114207: <http://trac.webkit.org/changeset/114207>
Comment 5 WebKit Review Bot 2012-04-14 14:05:23 PDT
All reviewed patches have been landed.  Closing bug.