CSS 'font:10px/12px' ignored (combination font-size/line-spacing)

VERIFIED INVALID

Status

()

Core
CSS Parsing and Computation
--
minor
VERIFIED INVALID
17 years ago
17 years ago

People

(Reporter: Phillip Oertel, Assigned: Pierre Saslawsky)

Tracking

Trunk
x86
Windows NT
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

17 years ago
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.2) Gecko/20010628
BuildID:    2001062815

according to the CSS docs, the first value should be font-size, the second
line-spacing.
Mozilla completely ignores the line. see url / attachment

Reproducible: Always
Steps to Reproduce:
1. see url
2.
3.

Actual Results:  text rendered in default size & line-spacing. 

Expected Results:  render txt in font-size & with line spacing given in 
font:10px/13px;
(Reporter)

Comment 1

17 years ago
Created attachment 40951 [details]
specifying font-size & line-height together via CSS ignored
over to style system.  ccing dbaron.  The "font: 10px/13px" syntax should set
font-size:10px and line-spacing:13px and it's not doing that....
Assignee: jst → pierre
Status: UNCONFIRMED → NEW
Component: DOM Style → Style System
Ever confirmed: true
aaaand this is invalid.  Looking over the "font" shorthand property definition
(at http://www.w3.org/TR/REC-CSS2/fonts.html#font-shorthand):

'font'
    Value:   [ [ <'font-style'> || <'font-variant'> || <'font-weight'> ]?
               <'font-size'> [ / <'line-height'> ]? <'font-family'> ] 
             | caption | icon | menu | message-box | small-caption
             | status-bar | inherit

Notice that this means that if we're settin the various font properties, the
font size and the font family are both _required_.  Something like "font:
10px/13px serif" works just fine in Mozilla, as it should.  "font: 12px" does
_not_ work, as expected.

Marking invalid, and apologies for the spam.
Status: NEW → RESOLVED
Last Resolved: 17 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.