chiark / gitweb /
CSS: use "background" shorthand property
authorBen Harris <bjh21@bjh21.me.uk>
Thu, 3 Oct 2024 23:06:49 +0000 (00:06 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Thu, 3 Oct 2024 23:06:49 +0000 (00:06 +0100)
commitd23a7c9b5c70e5a7e57717bcbb4ec9232d73d88e
tree2ce8854050649c00a7d56a2c3944d0b9ba19570f
parent51f37a4975e46785e475bd032857dfbd43fd67a9
CSS: use "background" shorthand property

It's more compact and works just as well.  In fact, I think it might
work better on browsers that support background-image but not
background-size.  On such browsers the entire rule will be ignored,
which is what I want.  If the background image can't appear at
precisely the correct size, it shouldn't appear at all.

Of course, ideally on a browser that fails to display the background,
the title also wouldn't fade out to the left.  I wonder if there's a
sensible way to achieve that.
bedstead.css