-
Notifications
You must be signed in to change notification settings - Fork 757
Description
Spec: https://drafts.csswg.org/css-logical/
It'd be nice to add the possibility to set the shadow offsets as inline and block so if we have a vertical writing mode it still looks similar.
Example:
text-shadow: 10px 5px magenta;
box-shadow: 20px 10px cyan;
background: yellow;On an element with horizontal writing mode the text shadow will be 10px on the right and 5px down, and the box shadow 20px on the right and 10px down.
And the same will happen on a vertical element.
If we could set those values in a logical form setting inline and block offset we could get the same effect in both horizontal and vertical writing modes. On the vertical element the text shadow will be 10px down and 5px to the left, and the box shadow 20px down and 10px left.
Note that there's a proposal to make box-shadow and text-shadow a shorthand, so this would be part of the box|text-shadow-offset.

