Re:The Anti-Hero of CSS Layout – “display:table” (2014)
by olavk on Saturday February 11, 2017 @02:44PM
(#13624354)
Ah OK, I agree this would be useful. I think a newer CSS proposal factors the display property into separate values to declare element flow and element content flow independently.
Re:The Anti-Hero of CSS Layout – “display:table” (2014)
by c-smile on Saturday February 11, 2017 @03:04PM
(#13624493)
"a newer CSS proposal"
This is of 2002: http://www.w3.org/TR/2002/WD-css3-box-20021024/#L706
15 years ago, Carl!
Say, you want that div to replace content vertically as if all children are blocks and text runs are wrapped into anonymous paragraphs:
That's impossible in modern CSS without redefining `display` in children. But usually you cannot blindly say What if some child uses `display:flex` ?Problem is that `display` defines how element is replaced among its siblings. But not how its children are laid out.
At some point it was a proposal to add `display-model` css property. So you can have
Without it we have ugly semi-solution of combinatorial explosion: