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

CSS4 selectors added #2626

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/parser.js
Expand Up @@ -68,6 +68,9 @@ var selectorTokens = [
var pseudoSelectors = [
// Logical Combinations
'matches'
, 'is'
iChenLei marked this conversation as resolved.
Show resolved Hide resolved
, 'has'
, 'where'
, 'not'

// Linguistic Pseudo-classes
Expand Down
8 changes: 8 additions & 0 deletions test/cases/selectors.pseudo.css
Expand Up @@ -94,3 +94,11 @@ label input:blank,
label span {
color: #014;
}
label input:has,
label span {
color: #016;
}
label input:where,
label span {
color: #017;
}
10 changes: 10 additions & 0 deletions test/cases/selectors.pseudo.styl
Expand Up @@ -83,3 +83,13 @@ label
input:blank
span
color #014
// throws illegal unary "==", missing left-hand operand
// input:is
// span
// color #015
input:has
span
color #016
input:where
span
color #017