Developing a Web Browser with Haskell

Tree-Box Css Project


Tree-Box Css Project

Tree-Box Css is a project written in Haskell.
In this project I combine the last projects developped.
I am using the inheritance and the boxcss project.

The project apply the css style rules for each element in
the tree. And each box is a window with margin, border and
padding properties.

I am applying the cascacading algorithm with the inheritance part.

Download and Install


  • Nothing.

To Implement

  • Implement for more properties.


  • Cascading style sheet for author, user, user agent.
  • Specificity of a selector.
  • Cascading algorithm and inheritance.
  • Css Box Model

Html Tags implemented

The following tags are reconised by the parser: style, html, head,
body, h1, h2, …, h6, p, big, small

Style Properties implemented

  • display; values: none, block, inherit
  • margin-top, margin-right, margin-bottom, margin-left
  • border-top-width, border-right-width ..
  • border-top-style .., values: hidden, dotted, dashed, solidborder-top-color: red, yellow, darkgrey, grey, white, green, blue, cyan, magenta
  • padding-top, padding-right, …

Blog at

%d bloggers like this: