Closed
Bug 299960
Opened 19 years ago
Closed 19 years ago
computed style property not accurate
Categories
(Core :: DOM: CSS Object Model, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 316981
People
(Reporter: random_blankspace, Unassigned)
References
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050516 Firefox/1.0.4 (MOOX M3)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050516 Firefox/1.0.4 (MOOX M3)
When I call
document.defaultView.getComputedStyle(obj,null).getPropertyValue("background-position")
I get a blank value returned, even though the IE equivalent of
obj.currentStyle.backgroundPositionX
returns the correct value, which is "left". The background is indeed either
right- or left- aligned in Firefox, depending on how I alter the CSS
.foo {
background-position: left;
}
which confirms that the CSS renderer is recognizing the property and adjusting
the page accordingly. So it is my understanding that the computed style would
reflect this, instead of returning a blank value.
Reproducible: Always
Expected Results:
Return the computed style.
Comment 1•19 years ago
|
||
Reporter: please use the right component. /be
Component: JavaScript Engine → Style System (CSS)
Assignee: general → general
Component: Style System (CSS) → DOM: CSSOM
QA Contact: general → ian
Marking duplicate of a more-clearly-reported bug. *** This bug has been marked as a duplicate of 316981 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Updated•19 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•