Skip to content
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

Should split out shorthand properties in CSS. #9967

Closed
adjenks opened this issue May 10, 2019 · 3 comments
Closed

Should split out shorthand properties in CSS. #9967

adjenks opened this issue May 10, 2019 · 3 comments
Labels
i: out of scope Feature requests which don't fit the scope of @babeljs, e.g. ideas for new third-party plugins outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Comments

@adjenks
Copy link

adjenks commented May 10, 2019

Some properties have a lot of trouble being handled in shorthand form with functions inside of them. For example: "calc() does not work when used in the flex property"
(I realise that link is broken but it exists in the bug list and can be found if you search for it: https://www.bing.com/search?q=calc%28%29+does+not+work+when+used+in+the+flex+property)

And example is that this doesn't work:

flex: calc(1) 1 150px;

but this does:

flex-grow: calc(1);
flex-shrink: 1;
flex-basis: auto;

So splitting them out for compatibility with Edge and other struggling browsers should be useful.

Also... Does babel even transform CSS? If not, then where should I put this?

@babel-bot
Copy link
Collaborator

Hey @adjenks! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community
that typically always has someone willing to help. You can sign-up here
for an invite.

@nicolo-ribaudo
Copy link
Member

Nope, Babel is only for JavaScript. You can take a look at PostCSS (https://github.com/postcss/postcss), which is similar to Babel but for CSS.

@nicolo-ribaudo nicolo-ribaudo added the i: out of scope Feature requests which don't fit the scope of @babeljs, e.g. ideas for new third-party plugins label May 10, 2019
@adjenks
Copy link
Author

adjenks commented May 10, 2019

@nicolo-ribaudo Thank you good sir!

@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Aug 9, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Aug 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
i: out of scope Feature requests which don't fit the scope of @babeljs, e.g. ideas for new third-party plugins outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

No branches or pull requests

3 participants