domonic icon indicating copy to clipboard operation
domonic copied to clipboard

import CSS parser?

Open eoghanmurray opened this issue 7 months ago • 1 comments

Hi,

I'm inquiring as to how alive this library is? I notice incompleteness in areas of the CSS and would like to contribute; I'm wondering whether the library should be doing parsing itself as it appears to be, or should it import a 3rd party parser like cssutils or tinycss..

I'm hitting the missing implementation of e.g.

target_el.style.removeProperty(prop)

My main blocker for contribution is that I'm not sure whether style should continue to refer to a string, or should become a CSSStyleDeclaration object, and at what point that should be effected.

Thanks!

eoghanmurray avatar Jun 17 '25 17:06 eoghanmurray

Hi, apologies for such a long delay. I've not worked on this for a long time due to other commitments.

The project is still active. If someone makes a commit I can integrate it. As long as there's unit tests.

I did make a start on CSS at some point in the style.py file. As for whether the style prop should be a string or CSSStyleDeclaration object I guess whatever the actual DOM is doing we'd want to copy it.

byteface avatar Sep 06 '25 07:09 byteface