Re:Microsoft is building a Chromium browser to replace Edge ...
by goto11 on Tuesday December 04, 2018 @03:37AM
(#18597537)
Floats were just supposed to be used to control text floating around images and other inserts. It was never designed as a general-purpose layout mechanism.
[ Parent
| on HN ]
Re:Microsoft is building a Chromium browser to replace Edge ...
by notahacker on Tuesday December 04, 2018 @05:43AM
(#18598186)
Sure, but that's largely because standards bodies chose not to introduce a general purpose layout mechanism despite it being very clear from 1990s websites that the need existed, and instead focused on deprecating layout elements from HTML and persuading developers CSS was the only valid way to do layout.
Re:Microsoft is building a Chromium browser to replace Edge ...
by goto11 on Wednesday December 05, 2018 @03:54AM
(#18606672)
CSS layout capabilites is a superset of what is possible with presentational HTML, so deprecating presentational HTML is not really the issue. Many of the crazy float hacks was to achieve layouts like expanding sidebars - the so-called "holy grail layout". But this could be cleanly and easily achieved with display:table. So why didn't people use display:table? Because Internet Explorer did not support it. Microsoft disbanded the IE team and did not develop the browser for many years, but the browser still had a big enough market share that developers had to support it.