Closed Bug 194198 Opened 22 years ago Closed 21 years ago

user style (userContent.css) does not fetch remote style (@import)

Categories

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

x86
Linux
defect

Tracking

()

RESOLVED FIXED
Future

People

(Reporter: habere, Assigned: bzbarsky)

References

Details

(Keywords: testcase)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 Galeon/1.2.7 (X11; Linux i686; U;) Gecko/20021226 Debian/1.2.7-6
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021226 Debian/1.2.1-9

userContent.css:

@import url("http://www.w3.org/StyleSheets/Core/Midnight");

fails to load/apply the remote stylesheet.

Reproducible: Always

Steps to Reproduce:
1. Create userContent.css with:
@import url("http://www.w3.org/StyleSheets/Core/Midnight");
2. Restart mozilla, and browse, say http://www.w3.org/

Actual Results:  
No change.

Expected Results:  
The fairly dark W3C core style - Midnight - should have been applied.


adding to userContent.css:

body
{
  background-image: url("http://www.w3.org/Icons/w3c_main") ! important;
}

indicates that this is not a network or security problem - since the remote
image is successfully retrieved.

--
Reference:

CSS2 spec - The @import rule
http://www.w3.org/TR/REC-CSS2/cascade.html#x5
(save to chrome folder.)
this reminded me of bug 182531
reporter: mozilla1.2 is old and the many things have changed since then.
please don't file bugs based on it.
additionally we request that you use mozilla.org builds instead of vendor
builds. if you have a problem with a vendor's product then you should complain
to the vendor.
Version: Trunk → Other Branch
timeless: thanks for the tip. (i did confirm it before posting with my colleague
chris - he's running moz1.3b under redhat 8.)
Yeah, as long as we load the sheets synchronously and HTTP does not support
synchronous loading, you will be unable to have user stylesheets living out in
http-land.
Assignee: dbaron → bzbarsky
Status: UNCONFIRMED → NEW
Depends on: 179006
Ever confirmed: true
Attached file Javascript workaround
The idea is to access the DOM and insert an external stylesheet.
Javascript bookmarklet included. :)
Yeah, but that's not quite the same as a real user stylesheet (eg cascade works
differently).
Keywords: testcase
Priority: -- → P3
I can prioritize my bugs myself, thank you.

I'm not even sure the "testcase" keyword applies, since that's not a testcase
you can just open in the browser... (but whatever).
Priority: P3 → --
Target Milestone: --- → Future
Version: Other Branch → Trunk
Priority: -- → P5
The fix for bug 192284 may just naturally solve this.... will test when I'm
reviewing that patch.
Depends on: 192284
Yeah, looks like fixing bug 192284 just fixed this.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: