Skip to content

Paths to urls within CSS likely to be busted #12

Description

@peterbe

If we intercept and download https://cdn.example.com/prefix/foo.css and that contains css like this:

.selector {
  background-image: url(../path/static.png);
}

If that css (minified and everything) is inserted inline the HTML page, it's going to assume that the file static.png exists on the HTML page's domain too.

Either print a warning. Or attempt to solve it by extrapolating the domain and prefix etc.

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