[Feature proposal]: -webkit-text-stroke support #11935
shaevtchac
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Is there a syntax difference between the two? If not I don't see why it can't just be added to the util. Failing that autoprefixer / lightningcss could handle it? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I'd like to propose one feature.
stroke
tool exists and works fine for SVG elements but not for normal text which is being used much more often.-webkit-text-stroke
is widely supported in browsers (95%) caniusestroke
should default to-webkit-text-stroke
in my opinion but I understand that's not going to happen so I suggest creating new tool liketextstroke
which will work in a similar way to stroke but for normal elements.It would be even better if you could extend
stroke
tool to include normal elements making it generating different code depending where it is used. E.g.stroke-white
andstroke-1
used on (or inside) SVG element would generatestroke: white;
andstroke-width: 1;
, but when used on normal text it results in-webkit-text-stroke-color: white;
and-webkit-text-stroke-width: 1px;
That would also solve #3501.
Whaddaya think? 😄
Beta Was this translation helpful? Give feedback.
All reactions