Closed Bug 274847 Opened 20 years ago Closed 20 years ago

External .css containing HTML tags only partially recognized

Categories

(Firefox :: General, defect)

1.0 Branch
x86
Windows 2000
defect
Not set
minor

Tracking

()

VERIFIED INVALID

People

(Reporter: andreas.hoefler, Assigned: bugzilla)

Details

I know, it's not correct external CSS, but if an external css-file with the content:

  <style type="text/css">
  <!--
  .dummy { color: red; } 
  .dummy2 { color: blue; }
  -->
  </style>

is referenced with <LINK ...> then the .dummy2-Style is usable in the including
file whereas the .dummy-Style is not. Checked with DOM-Inspector.

Shouldn't the content in the .css be either fully ignored or fully recognized?
Partially presence of the styles easily leads to confusion.
That's because your improper inclusion of HTML created a CSS selector called:

<style type="text/css"><!--.dummy

Which obviously does not exist in your HTML code.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
But in that case the DOM Inspector (Document Stylesheets) should display two CSS
styles:
- <style type="text/css"><!--.dummy
- .dummy2

but it only lists .dummy2

Could this perhaps be a bug in the DOM Inspector then?
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
See http://www.w3.org/TR/CSS21/syndata.html#ignore .

Marking Invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → INVALID
verified invalid
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.