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

Add CSS Grid test for old & new syntaxes #2189

Merged
merged 3 commits into from Apr 13, 2017
Merged

Add CSS Grid test for old & new syntaxes #2189

merged 3 commits into from Apr 13, 2017

Conversation

KuraFire
Copy link
Member

While CSS Grid gets rolled out, it’s useful to have a way to target
IE11 which does not support @supports() but does support old CSS Grid
syntax, as does the new IE14.

While CSS Grid gets rolled out, it’s useful to have a way to target
IE11 which does not support @supports() but does support old CSS Grid
syntax, as does the new IE14.
Probably better not to make builds fail.
@ryanseddon
Copy link
Member

Can you add this to config-all.json too please

@ryanseddon
Copy link
Member

Normally we have each test separate but I think this makes sense to put it in one since most people will want both.

"name": "The _old_ CSS Grid",
"href": "https://www.w3.org/TR/2011/WD-css3-grid-layout-20110407/"
}],
"warnings": ["`grid-columns` is only in the old syntax, `grid-column` exists in both and so `grid-template-rows` is used for the new syntax."]
Copy link
Member

Choose a reason for hiding this comment

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

this isn't really a warning. Warnings should be about the detect themselves (i.e. 🚨 giamundo test🚨 , or listing possible edge case failures. Since the end user of modernizr won't need this information, but modernizr developers would, could you move this to a straight up JS comment on line 17?

- added new feature detect to lib/config-all.json
- made the notice a JS comment instead of a formal warning
@patrickkettner
Copy link
Member

lgtm

@KuraFire KuraFire merged commit 6ee39b9 into master Apr 13, 2017
@Stexxen Stexxen mentioned this pull request Apr 14, 2017
@ryanseddon ryanseddon deleted the feature/css-grid branch April 17, 2017 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants