Inheritance Project
Inheritance is a project written in Haskell to test inheritance of properties of CSS.
This project is a continuation of the Selector Project,
and like the Selector Project, it also draw an html
tree in which each html tag is a box.
You can see in each box, the property name and value;
The project apply the css style rules for each element in
the tree.
I am applying the cascacading algorithm with the inheritance part.
Download and Install
- Download from Git (http://github.com/carliros/Inheritance)
- In order to get installed, you will need:
- wxhaskell (http://hackage.haskell.org/package/wx)
- uulib (http://hackage.haskell.org/package/uulib)
- uuagc (http://hackage.haskell.org/package/uuagc)
- Use the Makefile to compile and install: make all
- To run, use the generated file: ./inh
There are some examples in the test directory.
Updates
- Nothing.
To Fix
- Nothing.
To Implement
- Implement for more properties.
Implemented
- Cascading style sheet for author, user, user agent.
- Specificity of a selector.
- Cascading algorithm and inheritance.
Html Tags implemented
The following tags are reconised by the parser: style, html, head,
body, h1, h2, …, h6, p, big, small
