postcss-flexbugs-fixes icon indicating copy to clipboard operation
postcss-flexbugs-fixes copied to clipboard

Use postcss warnings to unfixable bugs

Open kadmil opened this issue 9 years ago • 4 comments

There are things we can't fix on css-only level. For such problems we could generate warnings with postcss API https://github.com/postcss/postcss/blob/master/docs/api.md#warning-class

Thank @ai for suggesting this. )

kadmil avatar Jun 24 '15 16:06 kadmil

You mean for bugs that we can't evaluate if width or height, for example?

luisrudge avatar Jun 24 '15 16:06 luisrudge

Yep, like this. Or if we detect config which is known to cause bugs and can't fix them on css-only level https://github.com/philipwalton/flexbugs/blob/master/README.md#2-column-flex-items-set-to-align-itemscenter-overflow-their-container

kadmil avatar Jun 24 '15 16:06 kadmil

:+1:

MoOx avatar Jun 30 '15 20:06 MoOx

Can this qualify as a flexbug for the purposes of warning about it?: https://drafts.csswg.org/css-flexbox/#item-margins

Authors should avoid using percentages in paddings or margins on flex items entirely, as they will get different behavior in different browsers.

[Edit: Ah, #12]

cvrebert avatar Jan 22 '16 08:01 cvrebert