I think we should only implement the `background-repeat-{x|y}`. Currently, no browser engine supports `mask-repeat-{x|y}`. But for `background-repeat-{x|y}`, Google Chrome already supports it.
In this comment[1], the usage of these properties is above the deprecation threshold (both usage rate > 0.07%). So, Google Chrome won't remove these properties. I also found this discussion[2], `background-repeat-{x|y}` are approved for level 4 of backgrounds and borders.
Currently, for web compatibility, I think we should implement these properties. The current status on other browser engines is following:
**Microsoft Edge**
No support.
**Google Chrome**
It supports keywords `repeat` and `no-repeat`.
The behavior of `background-repeat-x: no-repeat` is repeat the background only on y-axis, like `background-repeat: no-repeat repeat`.
The behavior of `background-repeat-y: no-repeat` is repeat the background only on x-axis, like `background-repeat: repeat no-repeat`.
The behavior of `background-repeat-x: no-repeat; background-repeat-y: no-repeat;` is repeat the background only on x-axis, like `background-repeat: no-repeat no-repeat`.
**Apple Safari**
No support.
And there is a site[3] using `background-repeat-x` and `background-repeat-y`. We can notice that some images should be no-repeat. And it works on Google Chrome not on Mozilla Firefox. There are the screenshots of Google Chrome[4] and Mozilla Firefox[5]. (Due to the size limitation of the attachment on dev-platform, I put the screenshots on
imgur.com.)
[1]:
https://github.com/w3c/csswg-drafts/issues/116#issuecomment-221668012
[2]:
http://lists.w3.org/Archives/Public/www-style/2014Apr/0188.html
[3]:
http://ocando.vnz.la/
[4]:
http://imgur.com/a/dFrvW
[5]:
http://imgur.com/a/wx6nv
On November 28, 2016 at 11:59:35, Tommy Kuo (
to...@mozilla.com) wrote:
I think we should only implement the `background-repeat-{x|y}`. Currently, no browser engine supports `mask-repeat-{x|y}`. But for `background-repeat-{x|y}`, Google Chrome already supports it.
In this comment[1], the usage of these properties is above the deprecation threshold (both usage rate > 0.07%). So, Google Chrome won't remove these properties. I also found this discussion[2], `background-repeat-{x|y}` are approved for level 4 of backgrounds and borders.
Currently, for web compatibility, I think we should implement these properties. The current status on other browser engines is following:
**Microsoft Edge**
No support.
**Google Chrome**
It supports keywords `repeat` and `no-repeat`.
The behavior of `background-repeat-x: no-repeat` is repeat the background only on y-axis, like `background-repeat: no-repeat repeat`.
The behavior of `background-repeat-y: no-repeat` is repeat the background only on x-axis, like `background-repeat: repeat no-repeat`.
The behavior of `background-repeat-x: no-repeat; background-repeat-y: no-repeat;` is repeat the background only on x-axis, like `background-repeat: no-repeat no-repeat`.
**Apple Safari**
No support.
And there is a site[3] using `background-repeat-x` and `background-repeat-y`. We can notice that some images should be no-repeat. And it works on Google Chrome not on Mozilla Firefox. I attached the screenshot in attachments.
[1]:
https://github.com/w3c/csswg-drafts/issues/116#issuecomment-221668012
[2]:
http://lists.w3.org/Archives/Public/www-style/2014Apr/0188.html
[3]:
http://ocando.vnz.la/