Re: [csswg-drafts] [background-4] Add background-repeat-x/y (#116)

Thanks @gsnedders for the implementation insights!

Quoting my own comment

> According to [Google's data and the data from HTTP Archive](https://chromestatus.com/metrics/css/timeline/popularity/31), the use of `background-repeat-x` significantly increased...
> 
> This indicates that there _is_ some need for those longhands...
> Maybe someone familiar with querying HTTP Archive could find out for what pages are currently using those properties.

The goal behind this request was to get an answer for @fantasai's [question back in 2016](https://github.com/w3c/csswg-drafts/issues/116#issuecomment-221479056), i.e. to find out whether there _are_ actually use cases for those two being defined independently.

I assume there is a use case for specifying `no-repeat` for one axis while keeping the other axis unchanged, i.e. `repeat`.
So defining `background-image: url('pattern.png'); background-repeat-y: no-repeat;` would result in a decorative strip. And an author wouldn't have to write `background-repeat: repeat no-repeat;`.

Skimming through the previous discussions, I still wonder what's the issue with those longhands that lead to the resolution to make them deprecated and lead implementers to remove them rather than specify and implement them properly.
(Note that the above is meant objectively. I don't have a strong opinion for or against adding them.)

Sebastian

-- 
GitHub Notification of comment by SebastianZ
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/116#issuecomment-1287930061 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 22 October 2022 22:06:40 UTC