[webkit-dev] Unprefixing intrinsic size keywords (-webkit-min-content et al)

Manuel Rego Casasnovas rego at igalia.com
Tue Mar 7 01:29:41 PST 2017

On 08/08/15 00:22, Dean Jackson wrote:
>> On 7 Aug 2015, at 2:44 AM, Christian Biesinger <cbiesinger at chromium.org> wrote:
>> Hi all!
>> We (blink) would like to unprefix the intrinsic sizing keywords:
>> https://drafts.csswg.org/css-sizing/#width-height-keywords
>> We support them for widths and for heights (though they all do the
>> same thing for heights)
>> We were wondering what Webkit's plan for those keywords is -- are you
>> also interested in unprefixing? Are you happy with the keywords as
>> specced? Would you rather stop supporting them?
> Is there a test suite?
> I think WebKit should unprefix these keywords.

Some time has passed, but I've worked on patch to unprefix min-content,
max-content and fit-content (the same that was done by Christian in Blink).
You can find it at:

This is really useful now that we're shipping CSS Grid Layout, as right
now we've everything unprefixed for Grid Layout but min-content and
max-content. So for example you have to write:
  grid-template-columns: -webkit-min-content fit-content(500px)
Instead of:
  grid-template-columns: min-content fit-content(500px) max-content;

That combination of prefixes (min-content and max-content) vs non
prefixes (fit-content()) is really strange.

You can find more details on the bug report.


More information about the webkit-dev mailing list