-
Notifications
You must be signed in to change notification settings - Fork 715
[css-logical] Add some logical version for box-shadow and text-shadow #6338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don't know exactly what the issue is about |
The very same issue is also present with |
I have a feeling this could rely on what's resolved in #1282. |
something like .vrm .box-shadow { 10px 0 10px black } I was thinking of changing it with the direction attribute, but that doesn't help with vertical writing modes (I think?).... |
@mrego I agree with you, this issue is becoming a major problem in my projects. Currently, In the illustration above, you display only different writing modes. But when you use |
As mentioned in an earlier comment, #1282 is trying to find a general solution for the physical/logical values issue. The solution there will apply to @frivoal Just adding you to the discussion to add those two properties when enumerating the ones affected by this issue. Sebastian |
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:
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
andtext-shadow
a shorthand, so this would be part of thebox|text-shadow-offset
.The text was updated successfully, but these errors were encountered: