Skip to main content

Bug Tracker

Side navigation

#12530 closed bug (wontfix)

Opened September 13, 2012 11:49AM UTC

Closed October 29, 2012 05:32PM UTC

$.fn.css return values for background-color

Reported by: ada99@bk.ru Owned by:
Priority: low Milestone: None
Component: css Version: 1.8.1
Keywords: 1.9-discuss Cc:
Blocked by: Blocking:
Description

$("element without background-color").css("background-color");

return

FF 15: "transparent"

Chrome 17: "rgba(0, 0, 0, 0)"

Attachments (0)
Change History (10)

Changed September 13, 2012 12:09PM UTC by mikesherov comment:1

component: unfiledcss
keywords: → 1.9-discuss
status: newopen

I'm not sure if we want to normalize this value, as it likely to lead to trouble and opens jQuery up to the possibility of more bugs and slowness to normalize here.

However, I'll bring it up for discussion in 1.9. Thanks for the report!

Changed September 24, 2012 04:46PM UTC by dmethvin comment:2

Is there a reasonable value for everyone to return? If so what would it be? Could we just have a lookup table that turns "transparent" into an RGBA value?

Changed September 27, 2012 02:00PM UTC by gibson042 comment:3

-1, this belongs in the color plugin but not in core.

Changed September 27, 2012 09:14PM UTC by mikesherov comment:4

Someone's got to give gibson042 access to the official voting widget and have him revote!

Changed September 27, 2012 09:15PM UTC by mikesherov comment:5

-1, same reasons as gibson042. I'd like to avoid future "normalization" of the results of gCS

Changed October 15, 2012 05:44PM UTC by timmywil comment:6

-1, agreed

Changed October 15, 2012 05:46PM UTC by timmywil comment:7

priority: undecidedlow

Changed October 22, 2012 05:22PM UTC by gibson042 comment:8

-1

Changed October 22, 2012 05:49PM UTC by gnarf comment:9

-1, With jQuery.Color, you can just add

 $.Color( element, "background-color" ).is( "transparent" ) 
-- both rgba(0,0,0,0) and transparent are valid responses for "transparent"

Changed October 29, 2012 05:32PM UTC by mikesherov comment:10

resolution: → wontfix
status: openclosed