Re:CSS Grid Level 2 – subgrid is coming to Firefox
by SquareWheel on Thursday June 06, 2019 @07:36AM
(#20113498)
I was thinking about that problem earlier. Is there not a CSS unit for container size? If not, that seems like a very useful addition. Like a more embedded version of vw/vh.
Re:CSS Grid Level 2 – subgrid is coming to Firefox
by ZeikJT on Thursday June 06, 2019 @09:59PM
(#20121011)
Percent can be based on container depending on how the container size is set.
Re:CSS Grid Level 2 – subgrid is coming to Firefox
by SquareWheel on Friday June 07, 2019 @06:17AM
(#20123141)
Ah, of course you're right. Good point thank you.
For instance, I recently made a component to be included on other pages at work. It had to look good no matter the size the page gave it. So they might put it into a 400px wide container, on a 1600px wide page. If I used vw or media queries to draw it based on page size, it would behave wrong.