Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-webkit-gradient is parsed as URL resource. #15

Closed
hrj opened this issue Apr 10, 2014 · 1 comment
Closed

-webkit-gradient is parsed as URL resource. #15

hrj opened this issue Apr 10, 2014 · 1 comment

Comments

@hrj
Copy link

hrj commented Apr 10, 2014

A css rule such as:

background-image: -webkit-gradient(
     linear,
     left bottom,
     left top,
     color-stop(0.2, rgba(94, 94, 94, 0.5)),
     color-stop(0.9, rgba(24,24,24, 0.1))
   );

gets parsed as if a URL was specified for the background image. It causes the user agent to start fetching this URL:

http://blahblah/-webkit-gradient(linear, left bottom, left top, color-stop(0.2, rgba(94, 94, 94, 0.5)), color-stop(0.9, rgba(24,24,24, 0.1)));
@hrj
Copy link
Author

hrj commented Apr 10, 2014

Btw, when the standard variant (linear-gradient) is provided, it works fine.

But not all sites have switched to the standard yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant