CSS-1 sheet spec.s san-serif, 0.9.6 & .7 display serif

RESOLVED INVALID

Status

()

--
trivial
RESOLVED INVALID
17 years ago
17 years ago

People

(Reporter: tcshipley, Assigned: attinasi)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

17 years ago
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011221
BuildID:    2001122108

Konqueror 2.1.1, Netscape 4.7, and IE 5.5 all render documents in some sort of 
sans serif font, per design and expectation.  Konqueror and Netscape are 
running on same Linux system as Mozilla.

For both utf-8 and latin-1 Mozilla 0.9.6 and 0.9.7 render the main text in serif
script.

Note that DSSSL specification includes mention of a minimal provision of iso serif, 
sans-serif and monospace fonts.  One expects these (and possible default fonts
for the
CSS default fantasy and script fonts) to ship *with* a browser, at least for
latin-1.



<!doctype html public "-//w3c//dtd html 4.0 transitional//en">

<!-- more stuff -->

<link href="../EncyclopediaStyle.css" rel="stylesheet" type="text/css"
title="Encyclopedia Style Sheet">

<!-- link is an example.  Assume it actually gives good address for stylesheet -->

<!-- rest of document -->


The relevant code is:

body, frameset, table {font-family: Arial, Helvetica, sans-serif; 
                color: 000000; 
                background-color: f0f0f0;} 




Reproducible: Always
Steps to Reproduce:
1.Compose page
2.<link> page to stylesheet
3. Load page with browser from remote web-site or filesystem.

Actual Results:  Expected document to render in a san-serif font, unless markup
indicated otherwise.  Document rendered in serif font.  Browser never seems to
load san-serif font.  

Note browser will load monospace font.

Expected Results:  Should render using san-serif font.

Mozilla installed from tar.gz binary on RH 7.1 in /usr/local/mozilla

Note that though generically trivial, on my site a font switch often has
semantic value.
The CSS file contains HTML markup, which is not allowed in externally linked CSS 
files.  The markup is interpreted as part of the first rule.  So the rule you 
get is:

<style type="text/css">
<!--
body, frameset, table {font-family: Arial, Helvetica, sans-serif;
                color: 000000;
                background-color: f0f0f0;}

Now '<style type="text/css"><!-- body' is not a valid selector.  So the rule 
gets tossed...

removing the HTML from the external sheet should fix the problem.

The other browers you cite are violating the CSS spec in this case.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.