davatron5000/deCSS3 — pull request #17 by justmarkup (2012-01-14 10:33:53+00:00)
Title: different way to loop through style content

Hy,

i found a problem with stylesheet.cssRules which should be solved with my commit.

For example this code:

.border-color {
height: 100px;
width: 100px;
background-color: #fff;
border: 2px solid rgba(50, 50, 50, 0.6);
background-color: rgba(255, 255, 255, 0.6)
}

stylesheet.cssRules will contain

.border-color {
height: 100px;
width: 100px;
border: 2px solid rgba(50, 50, 50, 0.6);
background-color: rgba(255, 255, 255, 0.6)
}

the same code but without

background-color: #fff

(the fallback).

So after replacing background-color: rgba(255, 255, 255, 0.6) with rgba() there is no background-color shown at all, which is false cause older browsers will show background-color: #fff

I tested it in FF9 and Chrome 16

Thanks,
Michael