[Webkit-unassigned] [Bug 6141] New: DOMCSSPrimitiveValue is always returning values in pixels when using getComputedStyle:
bugzilla-daemon at opendarwin.org
bugzilla-daemon at opendarwin.org
Sun Dec 18 14:32:49 PST 2005
http://bugzilla.opendarwin.org/show_bug.cgi?id=6141
Summary: DOMCSSPrimitiveValue is always returning values in
pixels when using getComputedStyle:
Product: WebKit
Version: 412+
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at opendarwin.org
ReportedBy: ohmson at myway.com
I get a DOMCSSStyleDeclaration when using -[DOMDocument getComputedStyle::]. From the
declaration, I can get the DOMCSSValue when using -getPropertyCSSValue. In my case, I needed to find
the CSS 'font-size' of an element.
The object returned in getPropertyCSSValue is actually a DOMCSSPrimitiveValue object. In my CSS file, I
actually have 'font-size: 10pt;' but when I try to use -[DOMCSSPrimitiveValue primitiveType], it is always
returning me DOM_CSS_PX
Maybe because the values are 'computed' and so everything is in one kind of metrics, 'px'...
But at least -[DOMCSSPrimitiveValue getFloatValue:DOM_CSS_PT] should have given me back the '10.0',
instead of '13.3333'
--
Configure bugmail: http://bugzilla.opendarwin.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