[Webkit-unassigned] [Bug 29084] getComputedStyle returns percentage values for left / right / top / bottom

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 19 20:52:51 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=29084


Tab Atkins <tabatkins at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |tabatkins at google.com
     Ever Confirmed|0                           |1




--- Comment #1 from Tab Atkins <tabatkins at google.com>  2011-10-19 20:52:52 PST ---
'10%' is the correct computed value - percentages are resolved at "used value" time.  However, the getComputedStyle function is a bit of a misnomer, and actually returns a mix of computed and used values.

Which properties return what is underdefined right now.  Ideally we should wait for the CSSOM spec to define this, but in the absence of that, we can look at what other browsers do.

In particular, Firefox returns used values for these properties.  I think that's useful, and we should probably match them.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list