Closed Bug 87103 Opened 25 years ago Closed 24 years ago

BodyFixupRule not applied if background data specified higher in cascade

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla0.9.8

People

(Reporter: fantasai.bugs, Assigned: hyatt)

References

Details

(Keywords: css2, regression, testcase, Whiteboard: [ruletree])

Attachments

(1 file)

Overview: If background information is specified on the <body> in a backstop or doc level rule, it gets applied to the canvas. If all the information is specified in a rule higher in the cascade (e.g. override or doc !important), the background information gets applied to the <body> frame and not the canvas. Steps to Reproduce: Open up testcase in Mozilla. I've run numerous tests, but I'm only attaching one file. If you want to try the others, save it to your disk and experiment. Expected Results: Background on <body> should be applied to the canvas. Actual Results: Background on <body> only gets applied to the canvas if it uses rules from doc or backstop levels Tested on: Mozilla nightly (id: 2001060308) on Windows 2000 Additional Information: This is a regression, because it works fine on the 2001053104 build. Hyatt, I'm CCing you because I believe your patch to bug 78695 is responsible -- as I understand it, nsRuleNode::WalkRuleTree goes up the rule tree until it fills the rule data. Then it stops. If it fills its data before reaching the doc level, where BodyFixupRule is, the rule data doesn't pick up the BodyFixupRule::PostResolveCallback function to fix the background.
Attached file testcase —
Mmmm, subtle. Taking.
Assignee: pierre → hyatt
Getting attinasi on the cc list.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.3
Can the internal, C++ rules be given 'special' priority, so they are always used, instead of applying at the doc level?
I was thinking that this could be specified at the backstop !important level and this bug marked dependent on bug 45852.
Whiteboard: [ruletree]
Blocks: 91672
Target Milestone: mozilla0.9.3 → mozilla0.9.4
Target Milestone: mozilla0.9.4 → mozilla0.9.5
Target Milestone: mozilla0.9.5 → mozilla0.9.6
Target Milestone: mozilla0.9.6 → mozilla1.0
->098
Target Milestone: mozilla1.0 → mozilla0.9.8
Fixed by checkin of bug 116161 at 2002-01-07 15:45/46 PST.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: