Open nt1m opened 11 months ago
This bit of code from @emilio in https://phabricator.services.mozilla.com/D190919 :
&[progress] { list-style-image: image-set( url("chrome://browser/skin/tabbrowser/tab-loading.png"), url("chrome://browser/skin/tabbrowser/tab-loading@2x.png") 2x ); /* FIXME: This should probably also apply in regular dark mode? */ :root[lwt-popup="dark"] &[progress]:not([selected]) { list-style-image: image-set( url("chrome://browser/skin/tabbrowser/tab-loading-inverted.png"), url("chrome://browser/skin/tabbrowser/tab-loading-inverted@2x.png") 2x ); }
inspired me to suggest this. It would be nice if image-set() could also select based on color-scheme.
Syntax to be bikeshed, but it would be nice if you could write this:
list-style-image: image-set( url("chrome://browser/skin/tabbrowser/tab-loading.png") light, url("chrome://browser/skin/tabbrowser/tab-loading@2x.png") light 2x, url("chrome://browser/skin/tabbrowser/tab-loading-inverted.png") dark, url("chrome://browser/skin/tabbrowser/tab-loading-inverted@2x.png") dark 2x );
Imo just making light-dark() also work for images would be a bit more consistent. But this is fine too.
light-dark()
This bit of code from @emilio in https://phabricator.services.mozilla.com/D190919 :
inspired me to suggest this. It would be nice if image-set() could also select based on color-scheme.
Syntax to be bikeshed, but it would be nice if you could write this: