Closed Bug 303313 Opened 19 years ago Closed 19 years ago

Dynamic changes to media values are not recognized

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: eric, Assigned: bzbarsky)

References

Details

Attachments

(2 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.1 (KHTML, like Gecko) Safari/312
Build Identifier: 

In the testcase to follow, the 'media' value of a stylesheet 'link' is dynamically changed from 'projection' 
to 'screen', but nothing happens.  Only after flipping the 'href' of the 'link' element to 'null' and then 
back tot he correct URI does the change get seen.

Reproducible: Always

Steps to Reproduce:
1. Download the testcase.
2. Unpack the archive
3. Load up the page and then click the "fix" link.

Actual Results:  
No change was seen until the "fix" link was clicked.

Expected Results:  
The document should have been black on white from the outset (or at least the instant after page load).
Attachment #191545 - Attachment description: A ZIP archive containing all the files needed to test this case. → A ZIP archive containing all the files needed to test this case: 'gecko-media.html', 'zero.css', and 'one.css'.
Attached file Testcase
Attachment #191545 - Attachment is obsolete: true
Assignee: nobody → general
Status: UNCONFIRMED → NEW
Component: General → DOM: HTML
Ever confirmed: true
OS: MacOS X → All
Product: Firefox → Core
QA Contact: general → ian
Hardware: Macintosh → All
Version: unspecified → Trunk
Peter, what do you think?
Attachment #205352 - Flags: superreview?(peterv)
Attachment #205352 - Flags: review?(peterv)
Attachment #205352 - Flags: superreview?(peterv)
Attachment #205352 - Flags: superreview+
Attachment #205352 - Flags: review?(peterv)
Attachment #205352 - Flags: review+
Fixed
Assignee: general → bzbarsky
Target Milestone: --- → mozilla1.9alpha
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Depends on: 436261
Component: DOM: HTML → DOM: Core & HTML
QA Contact: ian → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: