css/css-fonts/test_font_feature_values_parsing.html expects `@font-feature-values --bongo` invalid, where css-fonts-4 makes `--bongo` a family name
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- html, javascript
- Domain
- testing-qa
Research direction
Read css/css-fonts/test_font_feature_values_parsing.html around line 152 and compare the case with the linked css-fonts-4 grammar. Check how nearby cases assert valid and invalid rules, then update or remove the --bongo case to match the reported behavior. Done when the test no longer expects this valid rule to be invalid and the relevant parsing test passes.
Written by the indexing model from the issue text.
Description
test_font_feature_values_parsing.html L152 lists { rule: makeRule("--bongo", "@styleset { blah: 1; }"), invalid: true }.
css-fonts-4 gives the rule's prelude as <font-family-name>#, and <font-family-name> = <string> | <custom-ident>+, excluding only an identifier that could be read as one of font-family's own keywords, a CSS-wide keyword or default. css-values-4 says "The <dashed-ident> production is a <custom-ident>", and css-syntax-3 tokenizes --bongo as one ident. So @font-feature-values --bongo { @styleset { blah: 1; } } is a valid rule for the family --bongo, and Chromium, Firefox and WebKit each keep it.
Reproducer: https://gist.github.com/YevheniiKotyrlo/c63b72273abff2b94f5ef64627436865
git clone https://gist.github.com/c63b72273abff2b94f5ef64627436865.git font-feature-values-dashed-family
cd font-feature-values-dashed-family
sh ./run.sh
run.sh installs Playwright and runs repro.mjs, which reads the grammar above from csswg-drafts main and the case from wpt master, then inserts the rule into a style sheet in Chromium, Firefox and WebKit and prints its cssText, beside the same rule for bongo and font-family: --bongo. It exits 1 while the grammar takes --bongo and the case expects the rule invalid. On Windows 11 with Node 26.12.1 and Playwright 1.65.0:
css-fonts-4 and css-values-4 from w3c/csswg-drafts@6f177f4c13fbc3153474b66e88c25cf58ce5cfdd; the test from web-platform-tests/wpt@46d2d63a209da5091af6bcb22828a9407f6c0926
css-fonts-4: "@font-feature-values = @font-feature-values <font-family-name>#" stands
css-fonts-4: "<font-family-name> = <string> | <custom-ident>+" stands
css-fonts-4: the identifiers excluded are font-family's own keywords and the CSS-wide keywords: stands
css-values-4: "The <dashed-ident> production is a <custom-ident>": stands
wpt L152: { rule: makeRule("--bongo", "@styleset { blah: 1; }"), invalid: true },
@font-feature-values --bongo { @styleset { blah: 1; } } in each engine, then the control '@font-feature-values bongo', then font-family: --bongo:
playwright 1.65.0
chromium 158.0.8127.18: @font-feature-values "--bongo" { @styleset { blah: 1; } }; control 'bongo' -> @font-feature-values bongo { @styleset { blah: 1; } }; font-family: --bongo -> "--bongo"
firefox 159.0: @font-feature-values --bongo { @styleset { blah: 1; } }; control 'bongo' -> @font-feature-values bongo { @styleset { blah: 1; } }; font-family: --bongo -> --bongo
webkit 27.2: @font-feature-values --bongo { @styleset { blah: 1; } }; control 'bongo' -> @font-feature-values bongo { @styleset { blah: 1; } }; font-family: --bongo -> --bongo
SUMMARY: css-fonts-4 takes --bongo as a <font-family-name>, so '@font-feature-values --bongo { @styleset { blah: 1; } }' is valid, and the test expects it invalid; exit 1
I'd expect this case to expect the rule valid, or to be dropped.
- Dominant language
- HTML
- Stars
- 6.3k
- Forks
- 4.1k
- Avg merge
- 17h 20m
- Merged PRs (30d)
- 841
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
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 web-platform-tests/wpt
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
web-platform-tests/wpt#65844 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
web-platform-tests/wpt#65831 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
web-platform-tests/wpt#65826 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
web-platform-tests/wpt#65823 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
web-platform-tests/wpt#65822 ·
Maintainers usually reply within 1 day
All issues in web-platform-tests/wpt
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
agent/scanner bug stage/010-actionable
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
torch-spyre/spyre-inference#1849 ·
Maintainers usually reply within 2 days
-
tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day