Closed
Bug 293142
Opened 19 years ago
Closed 19 years ago
The font-family of an HTML <BODY> tag is not set at all when it is configured by a BODY { font-family: blar... } statement inside a CSS style sheet
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 287312
People
(Reporter: andyb, Assigned: dbaron)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 This bug is similar to Bugzilla Bug 287312 but as I'm not sure about whether or not I'm able to add my 10 cent's worth of information to an already existing bug, I've devcided to open a new bug. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 Here is my style sheet: <STYLE type=text/css> BODY { font-family: arial, helvetica, sans-serif } H1 { font-family: arial, helvetica, sans-serif } </STYLE> and here is my HTML: <HTML> <HEAD> <META NAME="GENERATOR" CONTENT="Sothink HTML Editor"> <LINK REL=STYLESHEET TYPE="text/css" HREF="sitestyle.css"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title> Brown's - Welcome to Brown's </title> <BODY> <p><h1>DNMobile</h1> is the client program used with Brown’s Boxes.</p> </BODY> </HTML> Firefox does not take the information from the style sheet relating to <BODY> but it does with regards to <H1>. This proves that the style sheet is being read and is correcty coded. Simply, when I state that I want the body text to be arial, Firefox continues to display the body text as whatever I've set it up as in Tools / Options / Fonts & Colours. I think this is a bug but it could be a "feature". Reproducible: Always Steps to Reproduce: 1. Create the two files. 2. Open the HTML file. 3. Actual Results: The style, as configured within the style sheet, is not actioned by Firefox. Expected Results: The style, as configured within the style sheet, is actioned by Firefox.
Comment 1•19 years ago
|
||
Please attach a testcase showing what you mean: https://bugzilla.mozilla.org/attachment.cgi?bugid=293142&action=enter
Comment 2•19 years ago
|
||
Does your external style sheet include the following two lines? <STYLE type=text/css> </STYLE> If yes, please remove them and try again.
Updated•19 years ago
|
Assignee: nobody → dbaron
Component: General → Style System (CSS)
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk
Comment 3•19 years ago
|
||
This is the same issue as the other bug, you can't have HTML code in external CSS files. As Erik mentions in comment 2, you need to remove the extra lines from the CSS file. *** This bug has been marked as a duplicate of 287312 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•