Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.world

2 replies

lemmy.world

I'd probably just make the img use a variable if one is set, and then set the variable for the shadow root host based on its extensionId attribute:

.button-background > img{
  content: var(--my-custom-image,none);
}
moz-button[extensionId="some-extension-id"]{
  --my-custom-image: url("image.png");
}
2

You reached the end