[Webkit-unassigned] [Bug 15823] getPropertyValue for border returns null, should compute the shorthand value

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 30 13:32:08 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=15823





------- Comment #4 from rwlbuis at gmail.com  2008-05-30 13:32 PDT -------
Hi David,

(In reply to comment #2)
> (From update of attachment 20947 [edit])
> What happens when you try to get the "border" property of a div like this?
> 
>   <div id="border" style="border-left: 5px solid red; border-top: 5px solid
> green; border-right: 5px solid blue; border-bottom: 5px solid purple; " ></div>
> 
> I think it returns "5px 5px 5px 5px solid solid solid solid green blue purple
> red", which is not a legal value for the "border" property.

Correct, good find.

> Does the CSS spec say what should happen in the case where a single "border"
> property can't accurately represent an element's border?

Will look into that.

> I tried the above test case in Firefox 2.0.0.x, and it returns the value for
> "border-top" when asking for the "border" property!  Not sure what MSIE 6 or 7
> do.

Opera does "5px solid".

> r- since this change doesn't return a value valid in the negative case.  (We
> should at least have a "negative" test case as well.)

Ok, will work on that. Thanks for the review!
Cheers,

Rob.


-- 
Configure bugmail: http://bugs.webkit.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