Closed Bug 45240 Opened 25 years ago Closed 25 years ago

HTML presentational elements' styles can be overriden by user styles

Categories

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

x86
Windows 98
defect

Tracking

()

VERIFIED DUPLICATE of bug 2942

People

(Reporter: fantasai.bugs, Assigned: pierre)

References

Details

(Keywords: css1, testcase)

Attachments

(2 files)

Overview:

	HTML presentational elements (<B>, <I>, etc.) have their styles set in
	html.css, allowing the user stylesheet to override them. The CSS specs
 	specify that presentational hints from the markup be treated as if it
	were at the top of the author's stylesheet, and thus the user stylesheet
	would not be able to alter these styles without an !important rule.

	CSS1:3.2 - http://www.w3.org/TR/REC-CSS1#cascading-order
	CSS2:6.4.4 - http://www.w3.org/TR/REC-CSS2/cascade.html#q12

Steps to Reproduce, Actual Results, and Expected Results:

	See testcase (to be attached shortly)

Tested on:

	Build for.. the 3rd of July, I think. (I'm on a public comp ATM.)
Attached file HTML Presentational Elements Testcase (deleted) —
Blocks: 2942
Keywords: css1
Keywords: testcase
Closing as dup of bug 2942. I moved your comments and testcase there.


*** This bug has been marked as a duplicate of 2942 ***
Status: UNCONFIRMED → RESOLVED
Closed: 25 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

Creator:
Created:
Updated:
Size: