I search a way to determine the real visible color of page elements. If i use JQuery i can do the following:
$('#foo').css('background-color');
But, the background-color of #foo
may return "transparent" even if one of its parents declared a colored background. So, how do i get the correct color which is visible to end users (including half-transparency / RGBA)?
Update
I am using the Selenium2 Java API with Firefox 5. Maybe there is a way without JQuery, too. Involving Screenshots maybe?
Update 2
I rephrased and extended the question: Get dominating color of a specific area in an image: Color Query for Web Page Elements