Skip to content

CSS Fonts Module Level 4: Support font-style: oblique with an angle #7

Description

@papandreou

Working draft: https://www.w3.org/TR/css-fonts-4/#font-style-prop

At the moment it's only supported by Firefox, so it's not really urgent.

Also plays into the font matching algorithm: https://www.w3.org/TR/css-fonts-4/#font-matching-algorithm

Presently font-snapper only works properly with font-style: oblique without an angle. There's a hack in place to avoid crashing:

// Hack to treat oblique <angle> as oblique until we add proper support
function removeObliqueAngle(fontStyle) {
if (/^oblique\b/.test(fontStyle)) {
return 'oblique';
} else {
return fontStyle;
}
}

Once implemented, add to the fuzz tests by switching to headless Firefox and removing:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions