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
(config question, not a bug) Config: default + Safari 14 support #718
Comments
Something is providing a default browserslist target list to Lightning CSS, so it really depends on how you're running Lightning CSS (as part of another build tool?) Once you know that current value, you can just add your Safari range to it. So it might just be that your browserslist config should be |
I'm running it standalone from the CLI (and as a node library), so for example this is the default:
then
... gives me a different output than no targets at all One difference I see is when I specify a
My plan exactly, except I cannot figure out that current value |
Strange, it should by default use Lines 54 to 74 in baa1a2b
|
Interesting, I thought it's last 10 browser versions and further tweaking, happening during build time: lightningcss/scripts/build-prefixes.js Lines 33 to 42 in baa1a2b
|
I have a hard time with configuration. I went ahead with the default config but found rendering bugs in older Safari. So I'd like to support Safari >= 14 in addition to the default config. How do I go about that?
Seems like if I specify Safari using browserlist, all the smart lightningcss defaults go out the window and I'm in charge. So in effect specifying a target Safari >= 14 all the other browser tweaks are gone. No matter how I played with the browser targets (like
last 2 versions, not dead
) I couldn't match the defaults (e.g. various vendor prefixes are gone.) And I have a hard time finding what these defaults are. I'd like to be able to say "you do you but also support old safari" and can't figure out how to do it. I tried the concept of Features but even if I turn off all the features I still don't get the result I need.From my cursory understanding the support is setup based on browser version during build time plus additional feature tweaking. I'd love to update the former without losing the latter
BTW, the Safari parts I'd love to have back in the output are due to its lack of support for
width>=0
(as opposed tomin-width: 0
)text-decoration
shorthand, e.g.text-decoration: underline dashed
(I need-webkit-text-decoration
)The text was updated successfully, but these errors were encountered: