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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 25 21:28:00 PDT 2011


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





--- Comment #6 from Garrett Smith <dhtmlkitchen at gmail.com>  2011-07-25 21:28:00 PST ---
(In reply to comment #5)
> (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 [details].
> 
> What Gecko does is to return "auto" which is different than a rect value, but the CSS 2.1 spec specifies a rect value. 

Correction: previous version of CSS 2.1 specified that clip computed style must be a rect. The current version of CSS 2.1 matches what Gecko does and returns "auto" when clip is "auto". Again:
> 
> | 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