w3c / w3c/css-validator

Cast exception when validating @font-face rule with CSS level 2 profile

Open
#416 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
250
Forks
123
PR merge metrics
No merged PRs in 30d

Description

Steps to reproduce:

  1. Go to https://jigsaw.w3.org/css-validator/#validate_by_input+with_options
  2. Select CSS level 2 as the profile
  3. Paste @font-face {font-weight: 700;} into the textarea
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.