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

RESOLVED FIXED in Future

Status

()

Core
CSS Parsing and Computation
P5
normal
RESOLVED FIXED
15 years ago
14 years ago

People

(Reporter: Paul Arzul, Assigned: bz)

Tracking

({testcase})

Trunk
Future
x86
Linux
testcase
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

15 years ago
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
(Reporter)

Comment 1

15 years ago
Created attachment 114998 [details]
user style with broken @import

(save to chrome folder.)

Comment 2

15 years ago
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
(Reporter)

Comment 3

15 years ago
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
(Reporter)

Comment 5

15 years ago
Created attachment 115662 [details]
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).

Updated

15 years ago
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
Last Resolved: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.