Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome CSS Styles doesn't work for dropdownlist if more than 300 items

I have a select box (dropdownlist) on my webApplication which can have atleast 1600 items. I have applied

{ font-size: 10px; font-family: Verdana; }  

CSS styles to the dropdownlist. But, the style works only if the selectbox has less than 300 items. If the item count crosses 300, Option style becomes the browser default (i.e, Arial)

like image 977
Yesudass Moses Avatar asked Sep 27 '22 20:09

Yesudass Moses


1 Answers

Google Chrome developers didn't expect someone would put more than 300 items in a select dropdown so to improve performance they turned off css styling if you exceeded it. They are removing that restriction in v45. https://code.google.com/p/chromium/issues/detail?id=513339

like image 146
J Kenneth Avatar answered Nov 13 '22 03:11

J Kenneth