Closed Bug 840317 Opened 13 years ago Closed 13 years ago

media queries in scoped style sheets not re-evaluated

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: heycam, Assigned: heycam)

Details

Attachments

(2 files)

Attached file test
@media rules in scoped style sheets don't seem to be re-evaluated properly. Open the attached test, resize the window and see how the background colour does not change.
probably need to fix nsStyleSet::MediumFeaturesChanged
Looks like it. (I see I need to update SizeOfIncludingThis too.)
Attached patch patchSplinter Review
Assignee: nobody → cam
Status: NEW → ASSIGNED
Attachment #712690 - Flags: review?(dbaron)
Comment on attachment 712690 [details] [diff] [review] patch May as well also toss in nsTArray::SizeOfExcludingThis to include the size of the array's buffer too. r=dbaron
Attachment #712690 - Flags: review?(dbaron) → review+
This needed a followup to fix a build warning (treated as error), for a signed loop variable being compared to an unsigned value (Length()): https://hg.mozilla.org/integration/mozilla-inbound/rev/6d92250d9e52
Thanks Daniel.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: