Skip to main content

Bug Tracker

Side navigation

#11020 closed bug (cantfix)

Opened December 14, 2011 01:30AM UTC

Closed December 14, 2011 03:19PM UTC

Last modified March 14, 2012 09:49AM UTC

Bug with CSS in Firefox

Reported by: Owned by:
Priority: low Milestone: None
Component: css Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

Try to load this page in Firefox. Try to reload the page. Try to reload using Ctrl+F5. It gives different results.

        <script src="jquery-1.7.1.js"></script>
            $(function() {
                var $el = $('select:first').children(':first')
                alert([$el[0].style.color, $el.css('color')]);
            <option style="color: #ff0000;">Hi</option>
            <option style="color: #00ff00;">Hi</option>
            <option style="color: #0000ff;">Hi</option>
Attachments (0)
Change History (6)

Changed December 14, 2011 01:58AM UTC by anonymous comment:1

Tested using jsFiddle.

jQuery <= 1.3.2 gives correct result, others wrong.

Changed December 14, 2011 02:03AM UTC by dmethvin comment:2

owner: →
status: newpending

Can you share your fiddle link with us, and a clear description of what is wrong in your opinion?

Changed December 14, 2011 02:20AM UTC by anonymous comment:3

I'm not sure what is wrong, but css method is working incorrectly (try version 1.3.2 vs 1.7.1)

Changed December 14, 2011 07:18AM UTC by anonymous comment:4

It seems like the bug is in Firefox engine, method getComputedStyle returns wrong value. Other browsers are OK.

Maybe it should be submitted to Mozilla tracker.

Changed December 14, 2011 09:09AM UTC by comment:5

status: pendingnew

Changed December 14, 2011 03:19PM UTC by timmywil comment:6

component: unfiledcss
priority: undecidedlow
resolution: → cantfix
status: newclosed

I don't there's anything we can do on our end.