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

renaming :matches to :is #324

Merged
merged 5 commits into from
Nov 28, 2018
Merged

Conversation

chrisdavidmills
Copy link
Contributor

":matches": {
"syntax": ":matches( <selector># )",
":is": {
"syntax": ":is( <selector># )",
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you also please change <selector># to <complex-selector># to minimise breakage of #287 (which should’ve been meged before this)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure; updated.

":matches": {
"syntax": ":matches( <selector># )",
":is": {
"syntax": ":is( <complex-selector># )",
"groups": [
"Pseudo-classes",
"Selectors"
],
"status": "standard",
Copy link
Contributor

Choose a reason for hiding this comment

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

Also, this is probably experimental now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ack, forgot about that, thanks! I did set it as experimental in BCD.

":matches": {
"syntax": ":matches( <selector># )",
":is": {
"syntax": ":is( <complex-selector># )",
Copy link
Contributor

@ExE-Boss ExE-Boss Nov 15, 2018

Choose a reason for hiding this comment

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

I’m sorry to bug you a third time, but I realised that this should actually be <complex-selector-list> like in #287:

"syntax": ":not( <complex-selector-list> )",

@chrisdavidmills
Copy link
Contributor Author

Ah, so that's the official syntax that represents a complex selector list, so we don't need to write "one or more complex selectors". Works for me. Updated.

@ExE-Boss
Copy link
Contributor

To minimise merge conflicts, #287 should probably be merged first.

Copy link
Contributor

@ExE-Boss ExE-Boss left a comment

Choose a reason for hiding this comment

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

LGTM, r+

(maybe you could also move this to be alphabetically sorted)

@chrisdavidmills chrisdavidmills merged commit 1619b9c into mdn:master Nov 28, 2018
@chrisdavidmills
Copy link
Contributor Author

Done and merged. Thanks!

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.

2 participants