#11020 closed bug (cantfix)
Bug with CSS in Firefox
Reported by: | Owned by: | ||
---|---|---|---|
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>
Change History (6)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
Can you share your fiddle link with us, and a clear description of what is wrong in your opinion?
comment:3 Changed 11 years ago by
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)
comment:4 Changed 11 years ago by
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.
comment:5 Changed 11 years ago by
Status: | pending → new |
---|
Sent to Mozilla. https://bugzilla.mozilla.org/show_bug.cgi?id=710561
comment:6 Changed 11 years ago by
Component: | unfiled → css |
---|---|
Priority: | undecided → low |
Resolution: | → cantfix |
Status: | new → closed |
I don't there's anything we can do on our end.
Tested using jsFiddle. jQuery <= 1.3.2 gives correct result, others wrong.