Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRegression: -webkit-box-orient rules removed #776
Comments
This comment has been minimized.
This comment has been minimized.
Is it a really issue if you ask Autoprefixer to remove old prefix? ;) |
This comment has been minimized.
This comment has been minimized.
IharKrasnik
commented
Jan 25, 2017
@ai How to preserve -webkit-box-orient? |
This comment has been minimized.
This comment has been minimized.
Add any flexbox 2009 browser to |
This comment has been minimized.
This comment has been minimized.
IharKrasnik
commented
Jan 25, 2017
Thank you |
ai
closed this
Jan 25, 2017
This comment has been minimized.
This comment has been minimized.
@ai This still happens even if I add |
This comment has been minimized.
This comment has been minimized.
Are you sure that it does from Autoprefixer? Maybe some other tool (like minification in webpack’s |
This comment has been minimized.
This comment has been minimized.
yidea
commented
Jan 26, 2017
tested out with css-loader remain the same version, Autoprefixer is the only factor remains that causing this |
This comment has been minimized.
This comment has been minimized.
Oh, I was passing remove:false to postcss-cssnext. Passing it on to autoprefixer results in -webkit-box-orient not being removed. var postcss = require('postcss');
var css = postcss([
require('postcss-cssnext')({
browsers: 'chrome >= 42, safari >= 8',
features: {
autoprefixer: {remove: false}
}
})
]).process(`
.foo {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-box-align: stretch;
}`).css;
console.log(css); I thought the behavior of the (default) remove:true option was to only remove outdated rules if the modern rule was specified too. So that |
This comment has been minimized.
This comment has been minimized.
jrowlingson
commented
Jan 27, 2017
•
Disabling the remove option or adding a flexbox 2009 browser to browsers list are both fairly coarse workarounds for this type of scenario. Any interest in adding an option to opt-out of removal at the rule level? |
This comment has been minimized.
This comment has been minimized.
Extra option is not a solution, because most of developers will not read docs. If you want to fix it, send a PR removing this hack |
This comment has been minimized.
This comment has been minimized.
jrowlingson
commented
Jan 27, 2017
@ai thanks - will do |
This comment has been minimized.
This comment has been minimized.
Lars-Weber
commented
Apr 27, 2017
Possibly helpful for anyone reading up on this thread and problem, least intrusive option to prevent the removal of the line in question is to just disable the autoprefixer for this line/section
|
This comment has been minimized.
This comment has been minimized.
@Lars-Weber best option is just add old Safari to |
This comment has been minimized.
This comment has been minimized.
plamitgma
commented
Jan 10, 2018
@Lars-Weber: awesome, thank you so much! |
This comment has been minimized.
This comment has been minimized.
@Lars-Weber @plamitgma |
fanyifanbumaimeng
referenced this issue
Feb 28, 2018
Open
webpck不能编译这个属性-webkit-box-orient: vertical #48
This comment has been minimized.
This comment has been minimized.
shizitou
commented
Mar 5, 2018
|
This comment has been minimized.
This comment has been minimized.
@shizitou create
|
This comment has been minimized.
This comment has been minimized.
kmvan
commented
Mar 26, 2018
@Lars-Weber Works man.
not works man. |
This comment has been minimized.
This comment has been minimized.
@kmvan do you created Browsersllist config? |
This comment has been minimized.
This comment has been minimized.
kmvan
commented
Mar 26, 2018
@ai Yes.
|
This comment has been minimized.
This comment has been minimized.
@kmvan what is your input CSS, output, and expected output? |
This comment has been minimized.
This comment has been minimized.
kmvan
commented
Mar 26, 2018
@ai The output result |
This comment has been minimized.
This comment has been minimized.
@kmvan what is CSS input? ;) |
This comment has been minimized.
This comment has been minimized.
kmvan
commented
Mar 26, 2018
@ai Sorry, not CSS. Just SCSS input: |
This comment has been minimized.
This comment has been minimized.
@kmvan give me full rule (everything between |
This comment has been minimized.
This comment has been minimized.
printjs
commented
Apr 13, 2018
@Lars-Weber
|
This comment has been minimized.
This comment has been minimized.
lukechinworth
commented
May 24, 2018
•
thanks @Lars-Weber .box-vertical {
/*! autoprefixer: off */
-webkit-box-orient: vertical;
} I put it inside the rule, so that only that rule would be affected. |
This comment has been minimized.
This comment has been minimized.
xuanGetit
commented
May 27, 2018
the best solution is the follow, if you use less |
This comment has been minimized.
This comment has been minimized.
@xuanGetit it is wrong since |
This comment has been minimized.
This comment has been minimized.
kmvan
commented
May 27, 2018
/*! autoprefixer: off */
-webkit-box-orient: vertical;
/*! autoprefixer: on */ Works, but needs to remove |
This comment has been minimized.
This comment has been minimized.
@kmvan check my comment above |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
kmvan
commented
May 27, 2018
/* autoprefixer: ignore next */
-webkit-box-orient: vertical; It works, thank you very much. |
This comment has been minimized.
This comment has been minimized.
minchangyong
commented
Jun 4, 2018
But it doesn't show up after packaging |
postcss
deleted a comment from
jinglf000
Jun 29, 2018
This comment has been minimized.
This comment has been minimized.
@jinglf000 I removed your comment since it is wrong to put off and on comments. Autoprefixer apply these comments to whole block, NOT next lines (Autoprefixer even show a warning about it). In Sass use |
This comment has been minimized.
This comment has been minimized.
mebibou
commented
Jul 11, 2018
I've been trying to use
|
This comment has been minimized.
This comment has been minimized.
jinglf000
commented
Jul 12, 2018
•
@ai In my Vue project( use vue-cli init), I had tried many ways, such as
That not useful,only by this way
|
This comment has been minimized.
This comment has been minimized.
meigesir
commented
Jul 21, 2018
@jinglf000 my autoprefixer version 7.2.6 work,tks. |
This comment has been minimized.
This comment has been minimized.
@meigesir you use very outdated Autoprefixer. The current version is 9. |
postcss
deleted a comment from
Benbzhou
Sep 11, 2018
This comment has been minimized.
This comment has been minimized.
marialovesbeans
commented
Sep 23, 2018
Can anyone please make a PR to fix this by default? This css rule is used together with
|
This comment has been minimized.
This comment has been minimized.
eugle
commented
Oct 17, 2018
Is it the same in less? I used it in less, but it didn't work |
Dan503
referenced this issue
Oct 18, 2018
Closed
Ask not to remove the code: -webkit-box-orient #1141
qantumthemes
referenced this issue
Nov 16, 2018
Closed
Severe issue with autoprefixer since latest 2 versions, deleting CSS rules #512
added a commit
to alibaba/rax
that referenced
this issue
Nov 30, 2018
This comment has been minimized.
This comment has been minimized.
@zuobaiquan nope, |
postcss
deleted a comment from
zuobaiquan
Nov 30, 2018
postcss
deleted a comment from
minchangyong
Dec 7, 2018
This comment has been minimized.
This comment has been minimized.
I am дщслштп this issue because many developers suggest wrong solution. The only right solution: a {
line-height: 1em;
max-height: 2em;
display: -webkit-box;
/* autoprefixer: ignore next */
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
} |
Macil commentedJan 25, 2017
•
edited
While upgrading my dependencies on a project with some pretty old css (and which includes some webkit-specific hacks), I noticed an issue. Autoprefixer version 6.7.0 now entirely removes "-webkit-box-orient" rules. Version 6.6.1 did not have this issue.
->
Here's the code I've tested with: