i and s flags in attribute selectors #30

Closed
opened 2026-03-20 16:30:06 +01:00 by SirPepe · 0 comments
SirPepe commented 2026-03-20 16:30:06 +01:00 (Migrated from github.com)

Input:

a[href*="insensitive" i] { color: cyan; }

Result:

StyleSheet(RuleSet(AttributeSelector(TagSelector(TagName),"[",AttributeName,MatchOp,StringLiteral,⚠,"]"),Block("{",Declaration(PropertyName,":",ValueName),";","}")))
[Input:](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/Attribute_selectors#s) ```css a[href*="insensitive" i] { color: cyan; } ``` Result: ``` StyleSheet(RuleSet(AttributeSelector(TagSelector(TagName),"[",AttributeName,MatchOp,StringLiteral,⚠,"]"),Block("{",Declaration(PropertyName,":",ValueName),";","}"))) ```
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lezer/css#30
No description provided.