Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS -moz-available equivalent in Webkit?

Tags:

css

webkit

-moz-available equivalent in Webkit?

like image 213
eonil Avatar asked Aug 01 '10 22:08

eonil


2 Answers

It's now supported in WebKit as width:-webkit-fill-available, defined in CSS Intrinsic & Extrinsic Sizing Module Level 3 (http://www.w3.org/TR/2012/WD-css3-sizing-20120927/#width-height-keywords).

Contrary to Gecko, which bases its implementation width:-moz-available on CSS basic box model (http://dev.w3.org/csswg/css-box/#the-width-and-height-properties).

Note that both values are defined in different terms; they may function differently in edge cases. Furthermore, in the editor's draft (11 October 2013) of CSS Intrinsic & Extrinsic Sizing Module Level 3, fill-available is now specified as fill.

like image 95
Henry Avatar answered Oct 14 '22 07:10

Henry


This worked for me in Chrome:

box-sizing: border-box;
like image 42
greim Avatar answered Oct 14 '22 07:10

greim