[Webkit-unassigned] [Bug 17856] New: Cannot Read Computed Style for WebkitBorderRadius, WebkitBorderRadiusTopright
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Mar 14 15:23:24 PDT 2008
http://bugs.webkit.org/show_bug.cgi?id=17856
Summary: Cannot Read Computed Style for WebkitBorderRadius,
WebkitBorderRadiusTopright
Product: WebKit
Version: 523.x (Safari 3)
Platform: PC
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: dhtmlkitchen at gmail.com
getComputedStyle doesn't work with webkitBorderRadius (among others)
I need this for animation. Currently, this fails in webkit.
The following works in Mozilla:
javascript:alert(getComputedStyle(document.body,'').MozBorderRadiusTopright);
The following does not work in Mozilla because Mozilla does not return
shorthand values:
javascript:alert(getComputedStyle(document.body,'').MozBorderRadius)
Both should work in webkit:
javascript:alert(getComputedStyle(document.body,''). WebkitBorderRadius
sTopright); // "0px"
javascript:alert(getComputedStyle(document.body,''). WebkitBorderRadius); //
"0px"
The first one is pretty straightforward.
The second one is a shorthand value, which falls under another category. FF2
and Safari3 return the empty string for:
AFAIK - Shorthand values are not guaranteed to return any specific format. Is
there a spec reference for this? For example, what format should the following
return:
getComputedStyle(document.body,'').margin
"0px" or "0px 0px 0px 0px"?
Preferrably a shorthand would return 1 or 4 values, never "0px 0px" or "0px
0px 0px" -- that would complicate scripts.
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list