[Webkit-unassigned] [Bug 18294] New: Strange Result for getComputedStyle on borderWidth set in em
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 2 23:15:28 PDT 2008
http://bugs.webkit.org/show_bug.cgi?id=18294
Summary: Strange Result for getComputedStyle on borderWidth set
in em
Product: WebKit
Version: 523.x (Safari 3)
Platform: PC
URL: http://dhtmlkitchen.com/ape/test/tests/dom/style-f-
test.html
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: dhtmlkitchen at gmail.com
I had a problem getting the computed style of a borderWidth in webkit.
It looks like a bug.
testGetComputedShorthandValues100px : function() {
var c1 = document.getElementById("c1"),
inp = "120em 110em 100em 90.1em";
c1.style.borderWidth = inp;
c1.style.borderStyle = "solid";
c1.style.fontSize = "100px";
var cs = getComputedStyle(c1, "");
//alert([cs.borderTopWidth, cs.borderRightWidth, cs.borderBottomWidth,
cs.borderLeftWidth]);
var out = dom.getStyle(c1, "borderWidth");
Assert.areEqual("12000px 11000px 10000px 9010px", out);
}
Safari 3.1 fails with "3808px 2808px 1808px 818px, (string)"
The html can be simplified to:
<body style="position: relative;margin:0;padding:0;"><div id="c1"></
div>l</body>
In Firefox, I get the expexted result. I don't understand webkit's
result. What's going on?
--
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