Closed
Bug 52105
Opened 24 years ago
Closed 23 years ago
[FIX]Use stylesheet disables @imported style if this uses another stylesheet [AltSS]
Categories
(Core :: CSS Parsing and Computation, defect, P2)
Tracking
()
VERIFIED
FIXED
mozilla1.0
People
(Reporter: burnus, Assigned: bzbarsky)
Details
Attachments
(7 files, 2 obsolete files)
This is with 2000-09-08-21/Linux.
Assume this:
1. One stylesheet foo (default or alternate)
2. Another stylesheet bar (not default, only alternate), which imports foo
The result is: If you select bar (via Use stylesheet), the values from foo ar
not applyed.
If you use bar as default, everything works as expected.
This should depend on bug 47760 (body text color persists longer than stylesheet
that set it)
For alternate stylesheets in general, see bug 6782 ([RFE] UI for alternate and
user stylesheets [IMPORT])
Reporter | ||
Comment 1•24 years ago
|
||
Reporter | ||
Comment 2•24 years ago
|
||
Testing showed an workaround (in the webpage). If one uses:
* stylesheet "screen.css" title="screen"
* stylesheet "screen.css" media="all" title="screen"
* alternate stylesheet "print.css" media="all" title="print"
Then switching between screen and print works (none and others work as well).
The extra first line fixes not only mozilla's problem with importing screen in
print, but also netscape 4.x since it doesn't like media. (Testcase:
http://www.physik.fu-berlin.de/~fsi/ )
Comment 3•24 years ago
|
||
(marking alternate style sheet bugs for easy tracking...)
Summary: Use stylesheet disables @imported style if this uses another stylesheet → Use stylesheet disables @imported style if this uses another stylesheet [ASS]
Summary: Use stylesheet disables @imported style if this uses another stylesheet [ASS] → Use stylesheet disables @imported style if this uses another stylesheet [AltSS]
Comment 4•24 years ago
|
||
Netscape's standard compliance QA team reorganised itself once again, so taking
remaining non-tables style bugs. Sorry about the spam. I tried to get this done
directly at the database level, but apparently that is "not easy because of the
shadow db", "plus it screws up the audit trail", so no can do...
QA Contact: chrisd → ian
Comment 5•23 years ago
|
||
The problem only happens when an alternate stylesheet imports another alternate
stylesheet. It works if it imports the default stylesheet.
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Comment 6•23 years ago
|
||
Comment 7•23 years ago
|
||
Comment 8•23 years ago
|
||
Comment 9•23 years ago
|
||
Comment 10•23 years ago
|
||
Attachment #58328 -
Attachment is obsolete: true
Comment 11•23 years ago
|
||
Attachment #58329 -
Attachment is obsolete: true
Comment 12•23 years ago
|
||
Assignee | ||
Comment 13•23 years ago
|
||
What happened here was that we would call InsertSheetInDoc on the top-level
sheet and set it to be disabled. Then we walked down the SheetLoadData list
and cloned the sheet for the next insertion. So the child sheet we added was
added already disabled.
All the patch does is to make sure InsertChildSheet enables the sheet (since I
can't think of any reason child sheets would start out disabled by default).
Comment on attachment 71167 [details] [diff] [review]
Patch to fix
r=dbaron
Attachment #71167 -
Flags: review+
->bzbarsky
Assignee: pierre → bzbarsky
Status: ASSIGNED → NEW
Target Milestone: Future → ---
Assignee | ||
Updated•23 years ago
|
Priority: P3 → P2
Summary: Use stylesheet disables @imported style if this uses another stylesheet [AltSS] → [FIX]Use stylesheet disables @imported style if this uses another stylesheet [AltSS]
Target Milestone: --- → mozilla1.0
Comment 16•23 years ago
|
||
Comment on attachment 71167 [details] [diff] [review]
Patch to fix
sr=attinasi
Attachment #71167 -
Flags: superreview+
Comment 17•23 years ago
|
||
Comment on attachment 71167 [details] [diff] [review]
Patch to fix
a=shaver for 0.9.9
Attachment #71167 -
Flags: approval+
Assignee | ||
Comment 18•23 years ago
|
||
Checked in on trunk for 0.9.9
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•