Cast exception when validating @font-face rule with CSS level 2 profile
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 250
- Forks
- 123
- PR merge metrics
- No merged PRs in 30d
Description
Steps to reproduce:
- Go to https://jigsaw.w3.org/css-validator/#validate_by_input+with_options
- Select
CSS level 2as the profile - Paste
@font-face {font-weight: 700;}into the textarea - Press the Check button
Error encountered:
class org.w3c.css.properties.css2.Css2Style cannot be cast to class org.w3c.css.properties.css2.font.Css2Style (org.w3c.css.properties.css2.Css2Style and org.w3c.css.properties.css2.font.Css2Style are in unnamed module of loader org.w3c.jigsaw.servlet.AutoReloadServletLoader @2bee1bfe)
Contributor 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.
Research direction
Reproduce the failure at the CSS Validator URL using the CSS level 2 profile and @font-face {font-weight: 700;}. Start by tracing the validation path for the @font-face rule and the reported Css2Style cast; done means the input validates without the cast exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100