What is Nostr?
Adrian Roselli /
npub10ee…6keq
2024-08-17 21:40:31

Adrian Roselli on Nostr: I can set the start position of a CSS `linear-gradient` with an angle, a starting ...

I can set the start position of a CSS `linear-gradient` with an angle, a starting position & direction, or a rotation from 0,0.

Is there a logical property value to set the start position / edge instead?

Like `inset-inline-start` to start from the left in LTR languages but from the right in RTL langs?

I want:

```
background:
linear-gradient(
inset-inline-start,
transparent 0%,
transparent calc(100% - 0.1em),
#f00 calc(100% - 0.1em),
#f00 100%
);

```

#CSS #i18n
Author Public Key
npub10ee2ncgkjq5epjclj9e7f0tardj6smsyyrxe06p02sxjs22pxcyse46keq