Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6977799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:40:19+00:00 2026-05-27T17:40:19+00:00

For one of my projects , which validates JSON using JSON Schema, I miss

  • 0

For one of my projects, which validates JSON using JSON Schema, I miss accurate code for two format specifications: color and style.

The first specification, color, denotes whatever color is valid in CSS 2.1. The second, style, is whatever CSS 2.1 considers as a style.

I have two problems:

  • I don’t know CSS that much;
  • I have the devil’s time using cssparser to do the job.

The current code (here for color and here for style) will definitely allow invalid inputs, and disallow potentially valid inputs… Also, I wish I could use jStyleParser (part of the cssbox project), unfortunately it is not available on Maven, which is a requirement for me.

How can you use cssparser to accurately identify both format specifications above, if at all possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:40:20+00:00Added an answer on May 27, 2026 at 5:40 pm

    First off, there is no such color as “fuschia” (CSSColorValidator.java:42), so your bets are off. It should read “fuchsia” instead. Also, “#[\da-f]{1,6}” is not a good way to parse hash-colors, they can have ONLY 3 or 6 hex digits. Either contribute to the cssparser project or find a better parser 🙁

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At my workplace we have one large Subversion repository which holds about 100 projects.
I have 2 projects. One project is a core and contains the GUI which
We've got several Flex projects, one of which has just been refactored. I'm wondering
I have a solution in Visual Studio 2008 which has multiple projects. One of
I just got a few PHP projects which are using a similar kind of
I'm using standalone autotest in my projects along with minitest . In one of
I'm using standalone autotest in my projects along with minitest . In one of
I am developing a career website for one of my projects. I am using
I'm working on a project which stores single images and text files in one
I have a project which builds correctly from the command line. On one of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.