Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-backgrounds-4] Added background-repeat-* longhands #9756

Merged
merged 1 commit into from
Aug 18, 2024

Conversation

SebastianZ
Copy link
Contributor

Added the background-repeat-x, background-repeat-y, background-repeat-block and background-repeat-inline longhand properties as resolved in #116.

I didn't add the logical values to the shorthand for now, because @Loirooriol expressed some valid concerns regarding that. I did add logical versions of the longhands as counterparts for the physical ones, though.

Sebastian

@svgeesus
Copy link
Contributor

@SebastianZ since you are now an Editor of this spec, feel free to merge your own PR

@SebastianZ SebastianZ merged commit 9053832 into w3c:main Aug 18, 2024
1 check passed
@SebastianZ
Copy link
Contributor Author

@svgeesus Thanks for your response and the review! I merged it now.

While I'm an editor of the spec., I still like to get some feedback on the changes I make.

Sebastian

Applies to: all elements
Inherited: no
Percentages: N/A
Computed value: list, each item a pair of keywords, one per dimension
Copy link
Contributor

@Loirooriol Loirooriol Aug 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shorthands don't have a computed value of their own. Must be "see individual properties", as in https://drafts.csswg.org/css-flexbox-1/#flex-property

<dl dfn-type=value dfn-for=background-repeat>
<dt><dfn>repeat-x</dfn>
<dd>
Computes to ''repeat no-repeat''.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shorthands don't have a computed value of their own. I would say "Equivalent to repeat no-repeat", as in https://drafts.csswg.org/css-flexbox-1/#flex-common

Comment on lines +177 to +178
<p>If a <<repeat-style>> value has two keywords, the first
one is for the horizontal direction, the second for the vertical one.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can be more explicit about the expansion: say that background-repeat-x is set to the first one, and background-repeat-y to the second.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants