-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Right prefixes for break-inside #177
Comments
Does Firefox not required |
Does there are any other changes in webkit syntax for other multicolumn props? Also maybe there are some links? |
I try to fix it after 22 of January. |
In earlier versions of specification were proposed three properties for managing column breaks: Webkit still uses old syntax for Firefox has no support for But in a case of css columns Firefox supports Some links for reference: |
Thanks for good review. I will add hack after finish my education course at 22 of January. Sorry for delay, but I really need any free time to sleep :D. |
Should I use |
For FF < 19 I should use |
Hm, seems |
Is this rules works with any values of |
CSS 2.1 CSS 3 But for FF there is no So in my opinion autoprefixer should work this way: /* before autoprefixer */
.class {
break-inside: auto;
}
/* after autoprefixer */
.class {
-webkit-column-break-inside: auto; /* webkit has own -webkit-column-break-inside for css-columns */
page-break-inside: auto; /* Firefox hasn't -moz property, but page-break-inside (without prefix) affects css-columns */
break-inside: auto; /* IE10+, Opera 11.1—12.1 */
}
/* before autoprefixer */
.class {
break-inside: avoid;
}
/* after autoprefixer */
.class {
-webkit-column-break-inside: avoid; /* webkit since v.4.0 */
page-break-inside: avoid; /* Firefox since v.19 */
break-inside: avoid; /* IE10+, Opera 11.1—12.1 */
}
/* before autoprefixer */
.class {
break-inside: avoid-column;
}
/* after autoprefixer */
.class {
-webkit-column-break-inside: avoid; /* webkit since v.4.0 */
page-break-inside: avoid; /* Firefox since v.19 */
break-inside: avoid-column; /* IE10+, Opera 11.1—12.1 */
}
/* before autoprefixer */
.class {
break-inside: avoid-page;
}
/* after autoprefixer */
.class {
page-break-inside: avoid; /* CSS2.1 property fallback. Firefox has support of this since v.19. */
break-inside: avoid-page; /* IE10+, Opera 11.1—12.1 */
}
/* before autoprefixer */
.class {
break-inside: avoid-region;
}
/* after autoprefixer */
.class {
/* situation with regions is even more difficult, so do nothing */
break-inside: avoid-region;
} |
Done: 6af1094 |
Does I understand correct, that in future we can remove all Autoprefixer doesn’t support polyfills, and when Firefox will works without prefixes, Autoprefixer will remove all |
Yes, that;s correct. Thanks for fixing. |
Will be in 1.1, wich I plan to release tomorrow. |
Version 1.1 with this fix was released today. |
Currently autoprefixer expands
break-inside: avoid;
as:But working solution at this moment looks like:
Where webkit prefix has own syntax
-webkit-column-break-inside: avoid
and Firefox uses for itpage-break-inside: avoid
since v.20.Maybe hack required for prefixing
break-inside :avoid
.The text was updated successfully, but these errors were encountered: