Skip to content

[css-fonts] Make larger/smaller simple ratios #1711

@Manishearth

Description

@Manishearth

As of https://bugzilla.mozilla.org/show_bug.cgi?id=1361550, Firefox, Chrome, Safari, IE, and Servo all treat font-size: smaller and larger as simple ratios of the parent font size.

The spec specifies a complicated size selection mechanism (see https://drafts.csswg.org/css-fonts-3/#relative-size-value), based off of finding the relative position on the table and using that.

Given that font-size is pretty complicated already due to the inheriting dependence of keywords on the language/family, this only muddies things further.

We probably should make this a simple ratio (with the exact ratio values left up to implementors?)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions