You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should there be a box-shadow-color property, for example? It could be used to change just the color of a box shadow without respecifying the other values, or animating/transitioning just the color even if the some other values changed too.
I know these are already possible with custom properties and @property/CSS.registerProperty(), but the longhands would make things much terser.
The text was updated successfully, but these errors were encountered:
valtlai
changed the title
[css-backgrounds] [css-text-decor] {box,text}-shadow longhands
[css-backgrounds] [css-text-decor] box-/text-shadow longhands
Feb 26, 2021
The
box-shadow
andtext-shadow
properties currently don’t have longhand properties.Should there be a
box-shadow-color
property, for example? It could be used to change just the color of a box shadow without respecifying the other values, or animating/transitioning just the color even if the some other values changed too.I know these are already possible with custom properties and
@property
/CSS.registerProperty()
, but the longhands would make things much terser.Example
(Live demo)
Could be just:
The text was updated successfully, but these errors were encountered: