Skip to content

[css-logical] Add some logical version for CSS gradients #6478

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

Closed
nico3333fr opened this issue Jul 28, 2021 · 1 comment
Closed

[css-logical] Add some logical version for CSS gradients #6478

nico3333fr opened this issue Jul 28, 2021 · 1 comment

Comments

@nico3333fr
Copy link

Spec: https://drafts.csswg.org/css-logical/

We need a logical version for CSS gradients.

Use case

In ProtonMail, we are using a gradient to manage upload progress for attachments, here an example in Farsi (RTL)

image

Actually, we have to detect if user is using a RTL language, and adapt the

image

Solution

Either logical keyword or something like:

linear-gradient(to inline-end,...
linear-gradient(to inline-start,...
linear-gradient(to block-start,...
linear-gradient(to block-end,... 

Thanks :)

@Loirooriol
Copy link
Contributor

Duplicate of #1724

@Loirooriol Loirooriol marked this as a duplicate of #1724 Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants