Closed Bug 4235 Opened 26 years ago Closed 25 years ago

need to add inherited font-family to nsFont

Categories

(Core :: CSS Parsing and Computation, defect, P3)

All
Other
defect

Tracking

()

VERIFIED WONTFIX

People

(Reporter: erik, Assigned: pierre)

Details

CSS2, font matching algorithm, section 15.5: 8. If there is no font within the family selected in 2, then use the inherited or UA-dependent 'font-family' value and repeat from step 2, using the best match that can be obtained within this font. It would be nice if we could append the inherited font-family list to the end of the current element's font-family list if there is no generic font in the current list. I.e. if the current list is "times, serif", then it makes no sense to append the inherited list, since "serif" is defined to exist, and everything that comes after it in the list should be ignored (since serif should match). What do you think?
Alternatively, we could add the UA-dependent font-family value. If both the current and the inherited font-family lists do not contain a generic font like serif, then we might still not find a matching font. If we append the UA- dependent value instead, we will always have at least one generic font in the list, right? (Assuming that the UA-dependent value ends with a generic.)
Status: NEW → ASSIGNED
Target Milestone: M5
Target Milestone: M5 → M6
Target Milestone: M6 → M7
Deferring to M10
Reassigning peterl's bugs to myself.
Accepting peterl's bugs that have a Target Milestone
Pushing my M15 bugs to M16
Closed as WontFix. Authors are strongly encouraged by the spec to add a generic font name at the end of the list. If they don't do so, we use the default font.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → WONTFIX
Verified WONTFIX
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.