What web protocols are possible for a CSS background image url?

I am creating an application for which it is required str_replace()for any lines http:or https:in the URL of a background image. Does anyone know of any other protocols that are possible for the background image url? For example, are any of the following methods possible, or did anyone see a CSS image in the URL of any of the following elements?

TCP
UDP
ICMP
POP
FTP
IMAP

As one example, is this possible for CSS?

#myDiv {    background-image: URL("ftps://mysite.com/pub/myimage.png");    }

Thank you for understanding!

+4
source share
2 answers

, CSS- W3C. URI, , .

TCP, UDP ICMP - , , ftp, pop imap . . : https://en.wikipedia.org/wiki/URI_scheme

URI , .

+2

.

CSS2, , , URI RFC3986, CSS1.

URI , , URI ( ..).

, - : , CSS , .

, , HTTPS CSS1- , CSS1 RFC HTTPS.

+1

Source: https://habr.com/ru/post/1599738/


All Articles