I want to write a user (i.e. local to my machine) CSS rule for an external website to add a file local to my machine as background, i.e. not from a webserver. Site https://example.org, which has one h1
tag and two p
tags is used as an example.
I tried the following:
p {
background: url('/home/andrybak/1.png') repeat;
}
h1 {
background: url('file:///home/andrybak/1.png') repeat;
}
Both options do not work in Firefox and in Chrome. Does CSS's url()
support file URI scheme?