[Webkit-unassigned] [Bug 20454] getPropertyValue() for clip returns wrong value

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 25 01:10:01 PDT 2011


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


Jeffery To <jeffery.to at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jeffery.to at gmail.com




--- Comment #3 from Jeffery To <jeffery.to at gmail.com>  2011-07-25 01:10:01 PST ---
Can someone have a look at this bug? As it stands, it is impossible to tell (from JavaScript) whether an element is visible or completely clipped.

Currently, when an element has no "clip" CSS declaration, getComputedStyle correctly returns "auto". ("auto" meaning the element is not clipped)

But when an element has "clip: auto" or "clip: rect(auto, auto, auto, auto)", getComputedStyle returns "rect(0px 0px 0px 0px)". This is a valid clip value, but this value means the element is completely clipped.

-- 
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