Quantcast
Channel: Gustav Ernberg » Programmering
Viewing all articles
Browse latest Browse all 6

Safari problem: @font-face /

$
0
0

Today I encountered a strange bug in a regular html form.
Some users reported that they weren’t able to choose items from a <select> (drop-down) list.

Active (broken) select dropdown - Safari 4.0

Active (broken) select dropdown – Safari 4.0

After some investigation (using the really good live-tool from Browserstack) I found out that the bug was isolated to old Safari versions. Strangely enough I couldn’t reproduce the bug in my development enviroment.

Some searching later I found out that someone had a similar bug, and that it was related to the @font-face css property (which we use in <select> lists). That made sense to me since the fonts loaded with @font-face doesn’t work in the development enviroment (we’re using fonts.com). I tried to remove fonts using font-face from the select/option fields and it worked!

Lesson learned: Don’t use @font-face on selects in old Safari versions.

The solution we’re using at the moment is simply not to have @font-face on <select> lists – it’s not optimal and it will probably change later with a JS / Serverside browser-detection implementation.


Viewing all articles
Browse latest Browse all 6

Trending Articles


Girasoles para colorear


mayabang Quotes, Torpe Quotes, tanga Quotes


Tagalog Quotes About Crush – Tagalog Love Quotes


OFW quotes : Pinoy Tagalog Quotes


Long Distance Relationship Tagalog Love Quotes


Tagalog Quotes To Move on and More Love Love Love Quotes


5 Tagalog Relationship Rules


Best Crush Tagalog Quotes And Sayings 2017


Re:Mutton Pies (lleechef)


FORECLOSURE OF REAL ESTATE MORTGAGE


Sapos para colorear


tagalog love Quotes – Tiwala Quotes


Break up Quotes Tagalog Love Quote – Broken Hearted Quotes Tagalog


Patama Quotes : Tagalog Inspirational Quotes


Pamatay na Banat and Mga Patama Love Quotes


Tagalog Long Distance Relationship Love Quotes


BARKADA TAGALOG QUOTES


“BAHAY KUBO HUGOT”


Vimeo 10.7.0 by Vimeo.com, Inc.


Vimeo 10.7.1 by Vimeo.com, Inc.