Skip to content

Inherit order for inline CCS definitions versus imported style sheets #170

Description

@johnbatters

Hi there, I have a stylesheet import followed by some inline CSS definitions. On a page the inline definitions override the imported style sheet (as they come after), but when run through the pre-mailer the first imported stylesheet gets priority. The class definitions are identical so it should be the later definition that gets priority. I'm solving the problem by extracting the stylesheets from the HTML before running premailer, then running it again for the imported style sheets. Not an ideal solution but works. Any more elegant solutions or am I doing something wrong?

image

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions