Related Questions:
Changing all links to //
Network-Path Reference URI / Scheme relative URLs
I have noticed some websites using the following format:
background:url(//cdn.domain.com/images/bg-normal.png)
They utilize "//", which the browser automatically converts to "https://" if the page is using HTTPS, and to "http://" if the page is using HTTP.
Is this notation only supported by modern browsers?
Would it be advisable to use this format, or should I manually include https:// or http:// in the CSS file depending on whether the page is using HTTPS or HTTP?