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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 25 21:24:53 PDT 2011


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





--- Comment #5 from Garrett Smith <dhtmlkitchen at gmail.com>  2011-07-25 21:24:53 PST ---
(In reply to comment #4)
> In other words, when I get "rect(0px 0px 0px 0px)" from getComputedStyle, I can't tell if the clip value is actually "auto" and the element is visible, or if the clip value is "rect(0px 0px 0px 0px)" and the element is completely clipped.

That was what they called a "fix" for bug 17433. See bug 17433 comment 2. The problem is demonstrated in this bug, to attachment 22884.

What Gecko does is to return "auto" which is different than a rect value, but the CSS 2.1 spec specifies a rect value. This makes sense and fortunately now too does CSS 2.1, which standardizes this behavior.

| Computed value:  'auto' if specified as 'auto', 
| otherwise a rectangle with four values, each of 
| which is 'auto' if specified as 'auto' and the 
| computed length otherwise

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