Skip to content

[css-images-4] Fixed interpolation of stripes() with different types #8614

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

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

SebastianZ
Copy link
Contributor

This changes the interpolation of stripes() values to look at each pair of thicknesses instead of disallowing mixing values completely.

This fixes #8163.

Sebastian

@@ -2420,7 +2420,8 @@ Interpolating ''stripes()'' {#interpolating-stripes}

1. Both the starting and ending image must have the same number of <<color-stripe>>s.

2. Neither image uses a combination of <<length>>, <<percentage>>, and <<flex>> stripes.
2. Each pair of interpolated thicknesses must be of the same type,
i.e. both must either be of type <<length>, <<percentage>>, or <<flex>>.
Copy link
Contributor

@Loirooriol Loirooriol Mar 19, 2023

Choose a reason for hiding this comment

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

Missing > in <<length>.

And the grammar uses <length-percentage> | <flex>, so it should probably be

Suggested change
i.e. both must either be of type <<length>, <<percentage>>, or <<flex>>.
i.e. both must either be of type <<length-percentage>> or <<flex>>.

(which implies that lengths and percentages can be mixed).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed. And as noted, I'll open a new issue to discuss mixing all values.

@SebastianZ SebastianZ force-pushed the css-images-4-stripes-interpolation branch from bff8263 to c34dc21 Compare March 19, 2023 23:09
@SebastianZ SebastianZ requested a review from Loirooriol March 19, 2023 23:12
@SebastianZ SebastianZ merged commit ccdce56 into w3c:main Mar 20, 2023
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.

[css-images] stripes() interpolation makes no sense
2 participants