WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
191696
Getting the inferred background-repeat-[xy] values returns the shorthand background-repeat value
https://bugs.webkit.org/show_bug.cgi?id=191696
Summary
Getting the inferred background-repeat-[xy] values returns the shorthand back...
Ben Dean
Reported
2018-11-15 09:14:43 PST
Created
attachment 354945
[details]
Illustration / reproduction I can reproduce this bug on Chrome as well as Safari -- though not Firefox, which doesn't seem to support background-repeat-x or background-repeat-y. Code to reproduce:
> var div = document.createElement("div"); > div.style = "background-repeat: no-repeat, repeat"; > console.log(div.style.backgroundRepeatX); > console.log(div.style.backgroundRepeatY);
Expected
> "no-repeat" > "repeat"
Actual:
> "no-repeat, repeat" > "no-repeat, repeat"
Also see the attached html file. Thanks!
Attachments
Illustration / reproduction
(1.04 KB, text/html)
2018-11-15 09:14 PST
,
Ben Dean
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Ben Dean
Comment 1
2018-11-15 09:22:36 PST
This bug is tracked for Chrome at
http://crbug.com/905707
Brent Fulgham
Comment 2
2022-07-01 16:28:01 PDT
Chrome closed their bug in 2020 as Behaves Correctly: """ it is wrong usage to add "," between two values. according to spec, <repeat-style> = repeat-x | repeat-y | [repeat | space | round | no-repeat]{1,2}
https://drafts.csswg.org/css-backgrounds-3/#background-repeat
. so i think it should be like below div.style = "background-repeat: no-repeat repeat"; // without comma """ So we will take the same approach.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug