4 ms·
I'm thinking the opposite: lose floats. I definitely want to keep flex and grid. A team at FB implemented flex to power React Native. I'm thinking that effort
by dmitryminkovsky 6y ago
I'm thinking the opposite: lose floats. I definitely want to keep flex and grid.
A team at FB implemented flex to power React Native. I'm thinking that effort was made much easier given that they didn't have to account for floats, etc.
- zzo38computer 6y agoI would be OK to get rid of all CSS and other styling, and make it up to the user preferences instead how big a <h1> text is, how big a <h2> text is, how big the normal text is, what colours to use, what fonts are in use, etc. Make a more user-oriented specification, designed primarily for the user to control, assuming the user is an expert at it, rather than the author of the document.
- warkdarrior 6y ago> assuming the user is an expert at it, rather than the author of the document But the user is NOT an expert at styling a website, this is why we have designers to figure out which combination of layout, fonts, and colors work well together.
- zzo38computer 6y agoWell, they will make styles that are slow and/or that many users do not like. Instead, let it be subject to the user configuration; the web browser designer can put in suitable default settings.
- yoz-y 6y agoExpert users can already do this using extensions though.
- calvinmorrison 6y agoUsers generally don't give a shit about styling as much as UX designers justifying thier salaries. There are probably more people who suffer daily from accessibility on the web than UX designers in total
- userbinator 6y agoSome browsers have (had) user stylesheets, which can do exactly that. Firefox (barely) still has that option but it's disabled by default, Chrome had removed it many version ago, and Edge never had it from the beginning. IE11 still has the option.
- zzo38computer 6y agoI think it may be helpful to have some privileged commands which are only allowed in user stylesheets. (Additional unprivileged commands may also be useful, such as ability to specify colours by index number, and ability to specify the names of user configuration values where other values are expected.)
- goto11 6y agoCSS was supposed to work like that - a user style sheet can override the site stylesheet (which in turn override the built-in browser stylesheet). Of course this assumes users are competent designers. I think reader mode and similar is a much better solution to the problem.
- ptx 6y agoIf you're writing a document (not an app) and using floats for their intended purpose, they are useful - and can't easily be replicated with grids or flexbox, I think.
- quickthrower2 6y agoIt’s ok we can make a float polyfill
- dmitryminkovsky 6y agoYeah that's a good point. I've always thought pages should, then, specify if they're a document or an app. If you're a doc, you use all the various semantic tags. If you're an app, just use div/span. Maybe the spec could have something like that, app mode and doc mode.
- goto11 6y agoWhat would be the benefit?
- dathinab 6y agoWhich is the root of the problem, the web was designed for linear top-to-bottom mostly static documents. But most websites have diverged from this since a long time ago, even such which represent mostly immutable content.
- goto11 6y agoLosing float but retaining flex and grid would not significantly simplify CSS though. Flex and grid are much more complex that float logic. And floats are useful for primary-textual content. Wikipedia uses it a lot for example. Probably less useful for application-like interfaces.