Getting the inferred background-repeat-[xy] values returns the whole background-repeat value
Reported by
bend...@fullstory.com,
Nov 15
|
|||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
Steps to reproduce the problem:
Run this code in the JS console:
```
var div = document.createElement("div");
div.style = "background-repeat: no-repeat, repeat";
console.log(div.style.backgroundRepeatX);
console.log(div.style.backgroundRepeatY);
```
What is the expected behavior?
We get this output:
> no-repeat
> repeat
What went wrong?
We get this instead:
> no-repeat, repeat
> no-repeat, repeat
Did this work before? N/A
Does this work in other browsers? No
I can reproduce the issue in Safari 12. I filed this Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=191696
Chrome version: 70.0.3538.77 Channel: n/a
OS Version: OS X 10.13.6
Flash Version:
Thanks!
,
Nov 16
Thanks for filing the issue! Able to reproduce the issue on reported chrome version 70.0.3538.77 and on the latest canary 72.0.3610.0 using Mac 10.14.1, Windows 10 and Ubuntu 14.04 As the issue is seen from M60(60.0.3112.0) considering it as Non-Regression and marking it as untriaged.
,
Nov 16
I can't see that there's a spec for this but the current implementation is silly. |
|||
►
Sign in to add a comment |
|||
Comment 1 by swarnasree.mukkala@chromium.org
, Nov 16