Closed Bug 221274 Opened 21 years ago Closed 21 years ago

First specification ignored with linked style sheet

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Other
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: dave.saville, Assigned: dbaron)

Details

User-Agent:       Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.5; MultiZilla v1.5.0.2Beta) Gecko/20030919
Build Identifier: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.5; MultiZilla v1.5.0.2Beta) Gecko/20030919

I have a style sheet that begins
<style type="text/css" media="all">
h2 {text-align:center;}
fieldset { ............

If I embed the sheet in the head of the document every thing works. If however I
link it as  
<link rel="stylesheet" type="text/css" href="/misc/q.css" />
then the h2 style is not applied. If I double up the h2 spec thus

<style type="text/css" media="all">
h2 {text-align:center;}
h2 {text-align:center;}
fieldset { ...........

Then the style is applied.


Reproducible: Always

Steps to Reproduce:
1.
2.
3.



Expected Results:  
The text should be aligned centre
Do not include the HTML <style> element in external stylesheets. The <style> bit
is HTML, not CSS.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
v
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.