Skip to content

The "stylesheet" attribute doesn't seem to work #82

Description

@vkargov

Hi,

I've noticed that the stylesheet attribute doesn't seem to work with the extension. If I have the following 2 files:

dotty_style.css:

.vegan {
    fill: green;
}

example.dot:

digraph {
    stylesheet="dotty_style.css"
    hello [class=vegan]
}

If I place the two files in the same directory and run dotty from the command line as follows:

dot -Tsvg example.dot -o example.svg && open example.svg

I will see green text (which is expected - that means the CSS style was applied to the hello node). However, if I open the same .dot file with this extension, the text remains black.

At first I thought maybe it was a cwd problem so I tried providing the same path in a few different ways, but it doesn't seem to help.

Is this a bug? Or was it intentionally disabled?

Anyway, thanks for the extension!

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