Skip to content

[css-images] Adding logical values for directions in linear-gradient() #8354

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
yarusome opened this issue Jan 25, 2023 · 1 comment
Closed

Comments

@yarusome
Copy link

Current syntax for linear-gradient() is:

linear-gradient() = linear-gradient(
  [ <angle> | to <side-or-corner> ]? || <color-interpolation-method>,
  <color-stop-list>
<side-or-corner> = [left | right] || [top | bottom]

And the acceptable values for <side-or-corner> make adaptation to different writing modes difficult, e.g. using <hr> with a non-zero block size and a linear gradient as its background image. Therefore, it seems useful to make <side-or-corner> additionally accept [block-start | block-end] || [inline-start | inline-end].

Relevant section in the spec: https://w3c.github.io/csswg-drafts/css-images-4/#linear-gradients

@cdoublev
Copy link
Collaborator

You might be interested by #1724.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants