Attribute selector's case-sensitivity identifier `s`
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- css, javascript
Research direction
Start by reproducing the three attribute-selector examples from the issue and inspect how attribute case-sensitivity flags are parsed. Done means the s identifier is recognized distinctly from unknown flags while preserving the existing i behavior, with a regression test covering these cases.
Written by the indexing model from the issue text.
Description
According to the CSS Selectors Level 4 specification, the Case-sensitivity identifiers are i and s.
However, it seems that postcss-selector-parser(v7.1.0) does not support s.
import parser from 'postcss-selector-parser';
const transform = (selectors: parser.Root) => {
selectors.walkAttributes((attr: parser.Attribute) => {
console.log(attr);
});
};
const processor = parser(transform);
processor.processSync('[class="foo" i] {}'); // { ..., insensitive: true, raws: { value: '"foo"' }, ... }
processor.processSync('[class="foo" s] {}'); // { ..., insensitive: false, raws: { value: '"foo"', insensitiveFlag: 's' }, ... }
processor.processSync('[class="foo" xxx] {}'); // { ..., insensitive: false, raws: { value: '"foo"', insensitiveFlag: 'xxx' }, ... }
- Dominant language
- JavaScript
- Stars
- 214
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from postcss/postcss-selector-parser
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 74/100
-
postcss/postcss-selector-parser#332 · 1 reaction · 2 assignees ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
postcss/postcss-selector-parser#306 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
postcss/postcss-selector-parser#299 · 1 comment ·
All issues in postcss/postcss-selector-parser
Similar issues
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
georgestephanis/p2026#40 ·
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Margaret-Petersen/food-delivery-app-clone-react-native#1981 ·