Closed Bug 55937 Opened 24 years ago Closed 24 years ago

Text color not reset when switching stylesheet to "None"

Categories

(Core :: CSS Parsing and Computation, defect, P3)

x86
Windows 2000
defect

Tracking

()

VERIFIED DUPLICATE of bug 47760
Future

People

(Reporter: bugzilla, Assigned: pierre)

Details

Attachments

(2 files)

In nightly build 20001005 under Win2K:

When selecting "None" from the alternatives in "View | Use style sheet", the
text color is not reset to the default.

For example, say your default colors are basic black on white. You visit a page
that doesn't have colors in the <body> tag and uses a named style sheet like:

body { color: white; background-color: black; }

If you then switch from the named style sheet to "None", the link and background
colors will change to the browser defaults, but the text will remain white,
which can render the page unreadable.
Attached file Bug demo stylesheet
Changing to Style System component, cc'ing attinasi, just a hunch he may have

some ideas on this.
Assignee: clayton → pierre
Component: Layout → Style System
QA Contact: petersen → chrisd
I guess it comes from the BodyFixupRule. If you change the rule in the attached 
stylesheet to act on the H1 instead of the Body, it works. We need a way to 
remove the BodyFixupRule when we switch from an alternate stylesheet to 'none' or 
to another alternate stylesheet.
Status: NEW → ASSIGNED
Target Milestone: --- → Future
I think this is related to (or dup of?)  bug 47760.
Suggest: platform=all, OS=all.
Correct: dup of 47760.


*** This bug has been marked as a duplicate of 47760 ***
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Verified dupe.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: