RESOLVED WORKSFORME 57946
getComputedStyle() doesn't support CSS3 multiple backgrounds
https://bugs.webkit.org/show_bug.cgi?id=57946
Summary getComputedStyle() doesn't support CSS3 multiple backgrounds
André Dion
Reported 2011-04-06 07:12:12 PDT
If a given element has multiple background applied, getComputedStyle() will only return the first value. E.g., #test { background-image: url('test1.png'), url('test2.png'); background-repeat: no-repeat, repeat-x; background-position: 0 0, 100px 100px; -webkit-background-size: 10px, 100px; } ------ var cs = window.getComputedStyle(document.getElementById('test')); cs.backgroundImage; // url('test1.png') cs.backgroundRepeat; // no-repeat cs.backgroundPosition; // 0px 0px cs.WebkitBackgroundSize; // 10px
Attachments
Emil A Eklund
Comment 1 2011-04-18 13:56:26 PDT
This appears to have been fixed in tip of tree, cs.backgroundImage; // url(test1.png), url(test2.png)
Note You need to log in before you can comment on or make changes to this bug.