This page
<https://developer.mozilla.org/en-US/docs/Web/CSS/fit-content>
claims that Firefox fully supports fit-content.
CanIUse says it doesn't: <https://developer.mozilla.org/en-US/docs/Web/CSS/fit-content>
And Dev Tools in Firefox 87 says that "height: fit-content;" has an
invalid property value.
I have a parent DIV that contains a number of vertically aligned DIVs.
The parent DIV is a relatively positioned element, It has "display:
flex;" and is a item in a grid.
I run some calculations on the parent DIV so I need it's height to match
the overall height of the nested DIVs. How can I get the two to match?
On 12/03/2021 5:23 pm, Andrew Poulos wrote:
This page
<https://developer.mozilla.org/en-US/docs/Web/CSS/fit-content>
claims that Firefox fully supports fit-content.
CanIUse says it doesn't:
<https://developer.mozilla.org/en-US/docs/Web/CSS/fit-content>
Dr DuckDuckGo (DDDG) suggested I use -moz-fit-content and that seems
to get Firefox to behave as other browsers using fit-content.
In Message: <POCdnZ6c27v2kdb9nZ2dnUU7-TWdnZ2d@westnet.com.au>
Andrew Poulos <ap_prog@hotmail.com> wrote:
On 12/03/2021 5:23 pm, Andrew Poulos wrote:
This page
<https://developer.mozilla.org/en-US/docs/Web/CSS/fit-content>
claims that Firefox fully supports fit-content.
https://developer.mozilla.org/en-US/docs/Web/CSS/fit-content#browser_compatibility
click on 3₋ₓ₋ ▼ would reveal the following
prefix Implemented with the vendor prefix: -moz-
CanIUse says it doesn't:
<https://developer.mozilla.org/en-US/docs/Web/CSS/fit-content>
https://caniuse.com/mdn-css_properties_width_fit-content
the yellow background - indicates support with preix … hover over or
click on browser will produce a popup revealing more support info
accessibility issue perhaps
[snip]
Dr DuckDuckGo (DDDG) suggested I use -moz-fit-content and that seems
to get Firefox to behave as other browsers using fit-content.
The information was there on MDN and CanIUse … just over looked and
hidden.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 226:24:24 |
Calls: | 6,624 |
Calls today: | 6 |
Files: | 12,171 |
Messages: | 5,318,698 |