Closed Bug 562496 Opened 14 years ago Closed 14 years ago

[@font-face] italic font improperly used also for "font-style: normal"

Categories

(Core :: Graphics, defect)

1.9.2 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: cristian.adam, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3

Given:

@font-face {
    font-family: "DejaVu Sans";
    src: url("fonts/DejaVuSans.ttf");
}
@font-face {
    font-family: "DejaVu Sans";
    src: url("fonts/DejaVuSans-Oblique.ttf");
    font-style: italic, oblique;
}

the second definition was used also for "font-style:normal".

Reproducible: Always

Steps to Reproduce:
1. Render web page
Actual Results:  
http://www.assembla.com/code/cristianadam/subversion/node/blob/@font-face/results/utf-8/firefox_3.6.3.png

Expected Results:  
http://www.assembla.com/code/cristianadam/subversion/node/blob/@font-face/results/utf-8/chrome_4.1.png
Component: General → Graphics
Product: Firefox → Core
Version: unspecified → 1.9.2 Branch
Your font-style descriptor is incorrect, it can only take one value: either 'italic' or 'oblique' but not both. It is thus ignored.

http://www.w3.org/TR/css3-fonts/#font-property-descriptors-the-font-style

(If you open the error console, you will see this flagged as an error).
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.