Closed Bug 66554 Opened 25 years ago Closed 25 years ago

Font color set by stylesheet remains when that stylesheet is dynamically disabled.

Categories

(Core :: DOM: CSS Object Model, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 47760

People

(Reporter: val, Assigned: jst)

References

Details

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/4.6 [en-gb]C-CCK-MCD NetscapeOnline.co.uk (Win98; I) BuildID: 2001012020 If an external stylesheet is used to alter, amongst other things, a font color, and if that stylesheet is subsequently 'disabled' dynamically, then the font color should revert back to a prior/default style. However, it seems that the font color style cannot go back to what it was before the stylesheet was applied. That is, other styles disappear but the font color remains that specified in the stylesheet. And if two stylesheets are applied, one on top of the other, and both are then disabled, then the font color remains that of the first stylesheet. Reproducible: Always Steps to Reproduce: The attachment is an HTML document, which contains LINKs to two external stylesheets (blue.css and green.css), and some javascript to switch between, or disable both, stylesheets. (Note: on loading, both stylesheets are enabled - green on top of blue.) Use the underlined text to switch between stylesheets. Notice that - 1. If both stylesheets are applied, then disabling both leaves the text color of the first (blue) 2. If blue alone is applied, then disabling both leaves the blue text color. 3. If green alone is applied, then disabling both leaves the green text color. Expected Results: If all stylesheets are disabled, then the font color should go back to a prior/default setting.
Problem: can't figure out right now how to attach a suite of linked files, so the attachment above is the HTML file, and the two .css files should contain the following: blue.css body {background:#9999ff; color:blue} green.css body {background:#99ff99; color:green}
This is a problem with styles on "body"... *** This bug has been marked as a duplicate of 47760 ***
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Component: DOM Level 2 → DOM Style
Taking QA Contact on all open or unverified DOM Style bugs...
VERIFIED dup
Status: RESOLVED → VERIFIED
Blocks: 407316
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: