Skip to content

Access to the parsed CSS? #687

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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