Closed
Bug 122346
Opened 23 years ago
Closed 23 years ago
[RR][ABS POS]Absolutely positioned content looses BODY style when changing BODY styles using JS
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
People
(Reporter: anders.korsvall, Assigned: dbaron)
References
Details
(Keywords: testcase)
Attachments
(1 file, 1 obsolete file)
|
628 bytes,
text/html
|
Details |
BuildID: 2002012803
When changing BODY styles such as backgroundColor using
document.body.style.backgroundColor='yellow', all text in absolutely positioned
DIVs that does not use a specified style (body text) looses style and is
rendered using default color, font etc.
Reproducible: Always
Steps to Reproduce:
1. Load the attached testcase
2. Click "Click to test"
Actual Results: The text in the absolutely positioned DIV looses style and is
rendered using the default font, color etc.
Expected Results: The text in the absolutely positioned DIV should not change.
| Reporter | ||
Comment 1•23 years ago
|
||
Comment 2•23 years ago
|
||
The styling of the DIV element is invalid (missing units of length), but
correcting that, doesn't fix it.
confirming.
| Reporter | ||
Comment 3•23 years ago
|
||
Fixed dimension units of the DIV to be px. As Alexey Chernyak noted, this does
not make the problem go away.
| Assignee | ||
Updated•23 years ago
|
Summary: Absolutely positioned content looses BODY style when changing BODY styles using JS → [RR]Absolutely positioned content looses BODY style when changing BODY styles using JS
| Assignee | ||
Comment 4•23 years ago
|
||
This is pretty clearly a problem with ReResolveStyleContext -- probably
misparenting of style contexts in some way. The problem shows up on theme
change as well.
Updated•23 years ago
|
Attachment #66867 -
Attachment is obsolete: true
| Assignee | ||
Updated•23 years ago
|
Summary: [RR]Absolutely positioned content looses BODY style when changing BODY styles using JS → [RR][ABS POS]Absolutely positioned content looses BODY style when changing BODY styles using JS
| Assignee | ||
Comment 5•23 years ago
|
||
I have a fix for this.
*** This bug has been marked as a duplicate of 88154 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•