There was recently a question on Stack Overflow about how you read a CSS property of an element that is defined in a stylesheet using Watir-WebDriver.
It’s really quite simple:
require 'watir-webdriver' b = Watir::Browser.start 'minesweeper.github.com' puts b.div(:id => 'g1minesRemaining100s').style 'background-image'