byteface / domonic

Create HTML with python 3 using a standard DOM API. Includes a python port of JavaScript for interoperability and tons of other cool features. A fast prototyping library.
https://domonic.readthedocs.io/
MIT License
129 stars 13 forks source link

cssom #26

Open byteface opened 2 years ago

byteface commented 2 years ago

this is in the style.py file at the moment. I semi started it as d3 thing i was doing used some part of it. but I probably wont take that on fully just yet if someone else want it first take it.

byteface commented 2 years ago

the possibility for this has opened up a lot more with the html5lib integration. As the parser now provides a great opportunity to write the cssom parsers for live pages rather than having to create mock pages. This has already been stubbed out in styles.py. So figured I'd mention that this is very very ripe for takign at the moment. or at least parsing the stylesheets for a given document could be.

byteface commented 2 years ago

see release notes for 0.8.2 . separating them out and populating first models of the cssom.