Skip to content

tejbloke/CSSParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

CSSParser

Parser Implementation not inspired by or used the standard w3c sac interfaces and classes.

Java programmers are welcome to contribute or give a design suggestion.

####Dependencies :

  • commons-lang3-3.1.jar

####Implemetations :

  • Supports CSS 1, 2 and 3 style properties
  • Supports CSS3 keyframes
  • Supports fonts
  • Duplicate CSS auto removal
  • Duplicate selectors with different style properties will be merged, as per the browser functionality.
  • Checks for validity of each style property
  • Each css selector data is treated as a separate node, can be added, copied and modified dynamically.
  • Optimizing the css
  • User defined node creation

####Yet to be implemented :

  • KeyframeNode implementation is partial
  • CSSDocument - CParser should be made as singleton
  • parse() method should return CSSDocument object
  • PrettyPrint - option

####Accessible Nodes:

CSSNodeArrayList<CSSNode>cssNodes;
ArrayList<FontNode>fontNodes;
ArrayList<KeyframeNode> keyFrames;

####Methods:

String toCSS()
void addCSSNode(CSSNode node)
addFontNode(FontNode node)

####Initializing the parser:

CSSDocument doc=new Parser(css).parse();

About

Java library for CSS parsing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages