Skip to content

Safari 12 crashes upon clicking a <select> element that uses Quicksand #2155

@acicali

Description

@acicali

A page will crash in MacOS Safari 12 at the moment the user clicks a select element whose font-family is Quicksand.

A reduced test case is below (or visit https://jsfiddle.net/nL1abgwx)

<form>
    <select style="font-family: 'Quicksand';border: 0;">
        <option>Click here to crash this page</option>
    </select>
</form>
<link rel='stylesheet' type='text/css' href='//fonts.googleapis.com/css?family=Quicksand:400,500'/>

Notes:

  • The crashing behavior no longer happens if the font is simply switched to Oswald. It seems to only happen with Quicksand.
  • Multiple font-weights in the tag appears to be necessary to cause the crashing behavior, not sure why.
  • The select element must have border: 0 because Safari will not apply the font without it (see here: https://css-tricks.com/dropdown-default-styling/#article-header-id-2)

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