Skip to content

Access to the parsed CSS? #687

@jenstroeger

Description

@jenstroeger

Hello,

This is more of a question than an issue: using the Python bindings and after loading a CSS file from the local file system is it possible to get access to the parsed rules?

For example:

>>> import css_inline
>>> inliner = css_inline.CSSInliner(base_url='file:///path/to/styles.css')
>>> inliner
<builtins.CSSInliner object at 0x10fb59020>
>>> inliner.  # Show me the instance attributes…
i.inline(                 i.inline_fragment(        i.inline_many(            i.inline_many_fragments(  

doesn’t seem to expose anything that would allow me to walk the parsed styles?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions