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

update CSS :matches() #2937

Merged
merged 13 commits into from
Feb 1, 2019
Merged

update CSS :matches() #2937

merged 13 commits into from
Feb 1, 2019

Conversation

myakura
Copy link
Contributor

@myakura myakura commented Oct 8, 2018

  • fix Edge status (support is not available)
  • fix Chrome status (Chrome never shipped it and its experimental support is partial)
  • add notes that :-moz-any() and :-webkit-any() are subset of :matches()

This reverts commit 37c0e0f.
4b7fb4c introduced the change;
However, the author confused the feature with `Element.matches()`,
the DOM method which tests an element against the selector given
as an argument. The `:matches()` CSS pseudo-class has never been
implemented in Edge.
fixed Chrome status claiming support is shipped in Chrome 66.
added flags and notes to show it is behind the flag and has partial
support.
Those implementation was based on the old spec.
@Elchi3 Elchi3 added the data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS label Oct 10, 2018
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.

Also, a single note can be written as:

"notes": "${note_text}"

@myakura
Copy link
Contributor Author

myakura commented Oct 12, 2018

@jpmedley @ExE-Boss thanks for the review! think I addressed them.

@jpmedley
Copy link
Contributor

NP. The link is what I'll be asking for going forward.

@Elchi3
Copy link
Member

Elchi3 commented Jan 31, 2019

@ExE-Boss does it look alright to you know? r?

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+

"edge_mobile": {
"version_added": false
},
"firefox": {
"version_added": "4",
"alternative_name": ":-moz-any"
"alternative_name": ":-moz-any",
"notes": "Doesn't support combinators."
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Consider adding a link to bug 906353:

Suggested change
"notes": "Doesn't support combinators."
"notes": [
"Doesn't support combinators.",
"See <a href='https://bugzil.la/906353>bug 906353</a>"
]

Copy link
Member

Choose a reason for hiding this comment

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

Added. (GitHub didn't offer me to accept your suggestion directly, as I'm not the PR author. [I think they should allow maintainers to accept these, too])

Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

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

r+

@Elchi3
Copy link
Member

Elchi3 commented Feb 1, 2019

Sorry this took a while!

@Elchi3 Elchi3 merged commit 256fe2a into mdn:master Feb 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants