0

When you place a tag with more than 300 tags in it, chrome displays it without any style.

To reproduce you have to create a php file (or html file) and have:

<html>
<head>
  <style type="text/css">
    select.green_select {
      color: green;
      font-size: 8pt;
    }
  </style>
</head>
<body>
  <h1>SELECT PROBLEM</h1>
  <?php
    print '<select class="green_select">'."\n";

    for ($i = 1; $i < 301; $i++) {
      print '<option value="'.$i.'">this should be green '.$i.'</option>'."\n";
    }

    print '</select>';

    print '<select class="green_select">'."\n";

    for ($i = 1; $i < 302; $i++) {
      print '<option value="'.$i.'">this should be green '.$i.'</option>'."\n";
    }

    print '</select>';
  ?>
</body>
</html>

The resulting html displays the first select drop-down with all options in green and with the correct font size, while the second one removes all styles.

This select has 300 entries

This select has 301 entries

This only happens on chrome, does anyone know of a workaround?

Subash
  • 7,098
  • 7
  • 44
  • 70
Gringo
  • 51
  • 1
  • 1
  • 8
  • possible duplicate of [How to style the – Jay Blanchard Jul 31 '15 at 15:53
  • hum, no, this is a chrome issue, see my answer below. Thanks for responding! – Gringo Jul 31 '15 at 15:58

1 Answers1

0

Well, it seems it is a chrome issue. See https://code.google.com/p/chromium/issues/detail?id=513339

I will have to wait for the next version of chrome. Problem is on version 44.

Great. :)

Gringo
  • 51
  • 1
  • 1
  • 8