Autoprefixer: usage of -webkit-fill-available causes fill-available warning

Created on 25 May 2018  路  13Comments  路  Source: postcss/autoprefixer

Hi, I am currently receiving the warning Replace fill-available to stretch, because spec had been changed when building my css bundle. I've traced the cause down to the css file of a dependency which uses the styles:

    max-height: -webkit-fill-available;
    max-height: -moz-available;
    max-height: stretch;

I believe that autoprefixer is erroneously throwing a warning for the use of -webpkit-fill-available. Removing this line resolves the issue, however since this is a dependency's css, it's not really a solution. Any ideas?

Most helpful comment

Released in 8.5.1. Thanks for report.

All 13 comments

I will try to fix it 馃憤

Done 89627f3

Released in 8.5.1. Thanks for report.

Hi @ai
I am still getting the warnings for -webkit-fill-available.
Here is the piece of css
height: stretch; height: -webkit-fill-available; height: -moz-available;

@Komald

  1. Check Autoprefixer version by npm ls | grep autoprefixer
  2. Remove -moz-available and -webkit-fill-available from your code (not to fix issue, just because it is best practice)

I have just updated the module, version is 8.6.5 as per the changelog.(CHANGELOG.md)

I will look on this weekend. Sorry, need to prepare my talk.

No Problem. Thanks!

@Komald tested and didn鈥檛 get any warnings. Can you create a test project?

Ok. I will create and share one.

I tried but not able to create a pen which will reproduce the issue. Will update again if succeed.

Maybe you accidentally had old version of Autoprefixer? Or some other dependency used old version.

Yeah, the dependencies could be the issue. Thanks for your help @ai

Was this page helpful?
0 / 5 - 0 ratings

Related issues

derzwen picture derzwen  路  6Comments

KeviinCosmos picture KeviinCosmos  路  3Comments

yuheiy picture yuheiy  路  5Comments

Vidhya-Dilip picture Vidhya-Dilip  路  6Comments

jasonkuhrt picture jasonkuhrt  路  6Comments