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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 28 06:42:45 PDT 2008


ddkilzer at webkit.org changed:

           What    |Removed                     |Added
  Attachment #20947|review?                     |review-
               Flag|                            |

------- Comment #2 from ddkilzer at webkit.org  2008-05-28 06:42 PDT -------
(From update of attachment 20947)
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.

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

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

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

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