Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanxiyn/csstty
CSS implementation for tty media
https://github.com/sanxiyn/csstty
Last synced: 23 days ago
JSON representation
CSS implementation for tty media
- Host: GitHub
- URL: https://github.com/sanxiyn/csstty
- Owner: sanxiyn
- Created: 2011-10-16T11:01:09.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-10-16T13:47:28.000Z (over 13 years ago)
- Last Synced: 2024-12-24T06:39:58.614Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# csstty
csstty is a CSS implementation for tty media written in
[Python](http://www.python.org/). It uses
[html5lib](http://code.google.com/p/html5lib/) to parse HTML,
[cssutils](http://cthedot.de/cssutils/) to parse CSS,
[lxml.cssselect](http://lxml.de/cssselect.html) to apply CSS,
and [termcolor](http://pypi.python.org/pypi/termcolor) for rendering.cssselect.py is a patched version of lxml.cssselect to handle a default
namespace.## Running CSS Test Suite
There is an official W3C [CSS Test Suite](http://test.csswg.org/).
You can get it with [Mercurial](http://mercurial.selenic.com/).
Be warned that the suite is pretty big: it weighs more than 300 MB.hg clone http://hg.csswg.org/test/
ln -s test/approved/css2.1/src css21Some tests even pass on csstty! You can run an individual test like
this:python csstty.py css21/box-display/display-001.xht
Tests that the author has confirmed to pass are listed in PASS file.