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-scroll-snap] Parsing some scroll-padding* #14787

Merged
merged 3 commits into from
Jan 11, 2019

Conversation

ewilligers
Copy link
Contributor

Test that scroll-padding-* accept auto
and accept postive length-percentage.

Not yet tested: negative values, invalid values.

https://drafts.csswg.org/css-scroll-snap-1/#property-index

Test that scroll-padding-* accept auto
and accept postive length-percentage.

Not yet tested: negative values, invalid values.

https://drafts.csswg.org/css-scroll-snap-1/#property-index
Copy link
Contributor

@fantasai fantasai left a comment

Choose a reason for hiding this comment

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

Some comments:

  • calc() values for padding should include a percentage, to ensure that length/percentage combinations are parsed
  • Might consider pulling in the full set of tests for each set of longhands (physical, logical) into one file: it's still understandable, but also less work for the test runners to execute.
  • When you get around to invalid tests, include a calc() with 'auto' inside it.

Otherwise looks good!

Consolidate longhand tests into the shorthand parsing test files.
@ewilligers
Copy link
Contributor Author

Comments addressed.

#13688 and #13572 also need review :-)

@fantasai fantasai merged commit bc64b8c into web-platform-tests:master Jan 11, 2019
@ewilligers ewilligers deleted the scroll-padding-parsing branch January 11, 2019 07:41
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.

4 participants