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: valent.novem@gmail.com Owned by: valent.novem@gmail.com
Priority: low Milestone: None
Component: css Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:
Description

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

<html>
    <head>
        <script src="jquery-1.7.1.js"></script>
        <script>
            $(function() {
                var $el = $('select:first').children(':first')
                alert([$el[0].style.color, $el.css('color')]);
            });
        </script>
    </head>
    <body>
        <select>
            <option style="color: #ff0000;">Hi</option>
            <option style="color: #00ff00;">Hi</option>
            <option style="color: #0000ff;">Hi</option>
        </select>
    </body>
</html>
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: → valent.novem@gmail.com
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

http://jsfiddle.net/zjKFs/

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. http://jsfiddle.net/Kt3KV/1/

Maybe it should be submitted to Mozilla tracker.

Changed December 14, 2011 09:09AM UTC by valent.novem@gmail.com 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.