Re: Pagespeed breaking CSS selector by removing quote

26 views
Skip to first unread message

Joshua Marantz

unread,
Nov 25, 2012, 11:46:12 AM11/25/12
to mod-pagespeed-discuss
Thanks for the report; we will look at it ASAP.  Tracking in http://code.google.com/p/modpagespeed/issues/detail?id=575.

-Josh



On Sat, Nov 24, 2012 at 5:31 AM, Joyce Babu <jo...@joycebabu.com> wrote:
I am using Bootstrap CSS framework from Twitter for my site. I just noticed that bootstrap is breaking some of my css by removing quotes from CSS selectors

Bootstrap uses the following CSS selector for elements with classes beginning with icon- prefix

[class^="icon-"],[class*=" icon-"]

ModPagespeed optimizes this into 

[class^=icon-],[class*= icon-]

After this change, Firefox ignores the leading whitespace and starts matching classes like thumbnails-icon-list.

Reply all
Reply to author
Forward
0 new messages