3 ms·
While this does make a few things that are already reasonably possible in css easier, I'd much rather see adoption of: http://dev.w3.org/csswg/css-regions/ htt
by e12e 13y ago
While this does make a few things that are already reasonably possible in css easier, I'd much rather see adoption of:
http://dev.w3.org/csswg/css-regions/ http://dev.w3.org/csswg/css-regions/
That would be a pretty major departure from how layout works now, but is IMNHO better than the half-working "css columns" stuff we have now (not to mention the mess that is fload, absolute vs fixed positioning etc). And it's based on a lot of earlier work from layout in the DTP world - in a good way. It makes sense -- if you want to do "fancy" layout in the browser at all.
And since modern browsers can't really display text properly (say, do some basic hyphenation) -- we're pretty much forced to do layout via css -- even if all we want do to is present some text for reading.
It's beyond me why no browser will render a page like:
<html>
<h1>A heading</h1>
<p>A paragraph or two</p>
<h2>Maybe a subhead</h2>
<p> ... </p>
</html>
In a way that's actually pleasant to read. I'd even accept going back to the horrible standard rendering if any css was included -- just do the right thing by default.
(Actually, a small enough tablet does a better job than most desktop browsers, but that is purely by accident -- and they still have pretty awful default colours (white on black -- too high contrast) -- and are much too hard to customize reasonably for the average users).
edit: As some of the other comments have mentioned, css is ok for styling -- but pretty bad at layout. I'd welcome both these specs -- and maybe a (stronger?) recommendation regarding how to hyphenate/space text (eg. along the lines of how (La)TeX does it).