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)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 88154

People

(Reporter: anders.korsvall, Assigned: dbaron)

References

Details

(Keywords: testcase)

Attachments

(1 file, 1 obsolete file)

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.
Attached file testcase (obsolete) —
The styling of the DIV element is invalid (missing units of length), but correcting that, doesn't fix it. confirming.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
Attached file corrected testcase
Fixed dimension units of the DIV to be px. As Alexey Chernyak noted, this does not make the problem go away.
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
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.
Blocks: 122348
Attachment #66867 - Attachment is obsolete: true
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
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.

Attachment

General

Created:
Updated:
Size: