Closed Bug 219111 Opened 22 years ago Closed 22 years ago

Non-recognition of remote CSS declarations within BODY selector

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows 98
defect
Not set
minor

Tracking

()

VERIFIED INVALID

People

(Reporter: seward, Assigned: dbaron)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5b) Gecko/20030827 Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5b) Gecko/20030827 When CSS script (darkmatter.css) is embedded within an HTML file, all supported declarations and selectors are recognised (ie, pretty much everything I use except the scrollbar changes). When the script is remote, though, none of the BODY selector declarations are applied. I tested the script in MIE 6.0 and everything turned up nominal. Other attributes, such as P- and BLOCKQUOTE-related attributes, appear as expected. I tested this on two separate distributions of Mozilla and encountered the same problem both times. (I believe the other one was beta 1.4.) The majority of CSS code was cut and pasted from an HTML-file embedded version, which worked as expected. Reproducible: Always Steps to Reproduce: 1. Load test page for remote CSS. Actual Results: Indentations appear as they ought; background is white, text is black. Visited links are orange (very painful on the eyes with a white background). Expected Results: Background should have been black, text light yellow. Font is supposed to be Verdana, but is reverting to browser default. (This was tested on two copies, one with Verdana as the default font, the other with Times New Roman.) Default theme.
<style> is an HTML element! It does NOT belong in a standalone stylesheet; it's the part of an HTML document that encapsulates embedded stylesheets. The presence of it is breaking the first rule; remove it and you'll be OK.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Verified invalid. http://jigsaw.w3.org/css-validator/ would have told you so...
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.