Closed Bug 215668 Opened 22 years ago Closed 21 years ago

[FIX]prefs style sheet seems to be looked at after userContent.css

Categories

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

defect

Tracking

()

VERIFIED FIXED
mozilla1.6alpha

People

(Reporter: mjl+bmo, Assigned: bzbarsky)

Details

Attachments

(1 file)

Creating a user stylesheet with this rule: :link { color: black; } has no effect - the links are still coloured according to the pref setting. Looking at a simple page in DOMI, I see the UA styles, then my userContent.css, and then about:PreferencesStyleSheet, which seems to be the wrong order. According to BZ and some stuff in older bugs (e.g. bug 103594), the prefs styles should be before the user style sheet. I'm seeing this in trunk/2003080804/win2k.
Mine.
Assignee: dbaron → bzbarsky
OS: Windows 2000 → All
Priority: -- → P2
Hardware: PC → All
Summary: prefs style sheet seems to be looked at after userContent.css → [FIX]prefs style sheet seems to be looked at after userContent.css
Target Milestone: --- → mozilla1.6alpha
Attached patch PatchSplinter Review
Attachment #132077 - Flags: superreview?(dbaron)
Attachment #132077 - Flags: review?(dbaron)
Comment on attachment 132077 [details] [diff] [review] Patch Sure, although the style set concept of order seems backwards. (Why does GatherRuleProcessors use EnumerateBackwards?) But that seems a bit of a pain to change, and it's even documented in nsIStyleSet.h. (Finding nsIStyleSet.h in the tree is left as an exercise to the reader.)
Attachment #132077 - Flags: superreview?(dbaron)
Attachment #132077 - Flags: superreview+
Attachment #132077 - Flags: review?(dbaron)
Attachment #132077 - Flags: review+
Fixed.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
thanks bz. verified working in 2003100404/win2k.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: