The default bug view has changed. See this FAQ.

@import style sheet not included in Page Info

NEW
Assigned to

Status

SeaMonkey
Page Info
--
enhancement
15 years ago
5 years ago

People

(Reporter: Matthijs Melchior, Assigned: db48x)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

15 years ago
User-Agent:       Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.1) Gecko/20020826
Build Identifier: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.1) Gecko/20020826

The stylesheets included with the followng construct:
  <style type="text/css">
  @import url(/style/tigris.css);
  @import url(/style/scarab.css);
  </style>
are not listed in the Links tab in the Page Info window.

Reproducible: Always

Steps to Reproduce:
1. visit URL specified
2. View Page Source
3. View Page Info


Actual Results:  
The @import files are not mentioned in the Page Info

Expected Results:  
mention the @imported files as Stylesheet

Comment 1

15 years ago
confirming (no dupes found)

possibly related: bug 170143
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows NT → All
(Assignee)

Comment 2

15 years ago
now all we need to know is if this is possible. I suspect that the css dom
doesn't show any evidence that two files were imported. If this is the case, it
probably wont be easy to fix this bug. Anyone know for sure?
The CSS DOM has all sorts of info in this case.  ;)  From the <style> you can
get .sheet (see
http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-LinkStyle).
 That gives you a CSSStyleSheet
(http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleSheet).  You get
its .cssRules (see
http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRuleList) and can walk it
looking for rules that have .type == CSSRule.IMPORT_RULE (see
http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRule).

Once you know a rule is an @import rule,
http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSImportRule should have
all the properties you need to get the href and the child sheet (which you could
walk recursively if you want).

Alternately, you could put stylesheets in a separate tab and use
document.styleSheets to show <link>, Link:, <meta http-equiv="link">, and
<style> stylesheets.... (because @import is _not_ a "link" in my mind any more
than <img> or <script> is).
Product: Browser → Seamonkey
QA Contact: pmac

Updated

8 years ago

Comment 4

8 years ago
MASS-CHANGE:
This bug report is registered in the SeaMonkey product, but has been without a comment since the inception of the SeaMonkey project. This means that it was logged against the old Mozilla suite and we cannot determine that it's still valid for the current SeaMonkey suite. Because of this, we are setting it to an UNCONFIRMED state.

If you can confirm that this report still applies to current SeaMonkey 2.x nightly builds, please set it back to the NEW state along with a comment on how you reproduced it on what Build ID, or if it's an enhancement request, why it's still worth implementing and in what way.
If you can confirm that the report doesn't apply to current SeaMonkey 2.x nightly builds, please set it to the appropriate RESOLVED state (WORKSFORME, INVALID, WONTFIX, or similar).
If no action happens within the next few months, we move this bug report to an EXPIRED state.

Query tag for this change: mass-UNCONFIRM-20090614
Status: NEW → UNCONFIRMED

Comment 5

8 years ago
MASS-CHANGE:
This bug report is registered in the SeaMonkey product, but has been without a comment since the inception of the SeaMonkey project. This means that it was logged against the old Mozilla suite and we cannot determine that it's still valid for the current SeaMonkey suite. Because of this, we are setting it to an UNCONFIRMED state.

If you can confirm that this report still applies to current SeaMonkey 2.x nightly builds, please set it back to the NEW state along with a comment on how you reproduced it on what Build ID, or if it's an enhancement request, why it's still worth implementing and in what way.
If you can confirm that the report doesn't apply to current SeaMonkey 2.x nightly builds, please set it to the appropriate RESOLVED state (WORKSFORME, INVALID, WONTFIX, or similar).
If no action happens within the next few months, we move this bug report to an EXPIRED state.

Query tag for this change: mass-UNCONFIRM-20090614

Comment 6

8 years ago
MASS-CHANGE:
This bug report is registered in the SeaMonkey product, but has been without a comment since the inception of the SeaMonkey project. This means that it was logged against the old Mozilla suite and we cannot determine that it's still valid for the current SeaMonkey suite. Because of this, we are setting it to an UNCONFIRMED state.

If you can confirm that this report still applies to current SeaMonkey 2.x nightly builds, please set it back to the NEW state along with a comment on how you reproduced it on what Build ID, or if it's an enhancement request, why it's still worth implementing and in what way.
If you can confirm that the report doesn't apply to current SeaMonkey 2.x nightly builds, please set it to the appropriate RESOLVED state (WORKSFORME, INVALID, WONTFIX, or similar).
If no action happens within the next few months, we move this bug report to an EXPIRED state.

Query tag for this change: mass-UNCONFIRM-20090614

Comment 7

8 years ago
Reopening
Status: UNCONFIRMED → NEW

Comment 8

5 years ago
FYI the JSView extension supplies more tabs to the PageInfo window including a StyleSheets tab that shows @import ed stylesheets.
You need to log in before you can comment on or make changes to this bug.