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-values] Add tests for basic min() / max() support #19819

Merged
merged 4 commits into from
Oct 22, 2019

Conversation

xfq
Copy link
Contributor

@xfq xfq commented Oct 22, 2019

Resubmitted from #19801. Original description:

https://drafts.csswg.org/css-values-4/#functional-notations

Tests cover the following:

  • attr() in max()
  • calc() in max()
  • max() with 20 arguments
  • min() with unitless 0

This is my first wpt test. Comments are very welcome. Thanks!

xfq added 2 commits October 21, 2019 15:19
https://drafts.csswg.org/css-values-4/#functional-notations

Tests cover the following:

- attr() in max()
- calc() in max()
- max() with 20 arguments
- min() with unitless 0
<html>
<head>
<meta charset="utf-8">
<title>
Copy link
Member

Choose a reason for hiding this comment

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

Can you compact the markup up a bit? The "INDENT TABS" lint rule is disabled for this directory and there's no rules for indentation, but the more compact style of 076ec51 or 07c52e7 (the two most recent commits in this directory) would be great!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@foolip Just pushed a commit to compact the markup. Thanks!

<link rel="match" href="reference/all-green.html">

<style>
html, body { margin: 0px; padding: 0px; }
Copy link
Member

Choose a reason for hiding this comment

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

This is indented very deeply. It's probably best to replace tabs with spaces so that we're all seeing the same thing, since tabs can be any number of spaces...

@foolip
Copy link
Member

foolip commented Oct 22, 2019

I pushed a commit which I think will make the lint on Taskcluster pass.

I'm not a good reviewer for the tests themselves. @xfq if you don't get a reaction, you'll need to go poking people for review directly. @astearns FYI that reviews aren't working very well, although that's true of almost all of wpt, not just the css directory.

@astearns astearns self-requested a review October 22, 2019 19:08
Copy link
Contributor

@astearns astearns left a comment

Choose a reason for hiding this comment

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

The tests look good to me, and the failures are showing interesting bugs.

@foolip foolip merged commit cb6efc4 into web-platform-tests:master Oct 22, 2019
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.

5 participants