4 ms·
That's horrifying. And I'd argue a damning indicator that CSS3 is wildly overcomplicated. It really shouldn't be Turing complete.
by forrestthewoods 11y ago
That's horrifying. And I'd argue a damning indicator that CSS3 is wildly overcomplicated. It really shouldn't be Turing complete.
- akerro 11y agoCan you center images yet? :>
- dasil003 11y agoI get the joke since I've been doing the web design thing for a couple decades at this point, but in case your question was serious, yes it is finally solved: https://philipwalton.github.io/solved-by-flexbox/demos/vertical-centering/ https://philipwalton.github.io/solved-by-flexbox/demos/verti...
- meesterdude 11y agocame to say the same thing. I love love love flexbox. I just wish i could drop all the vendor prefixes, but safari seems to be the holdout iirc
- gotchange 11y agoIsn't IE =< 10 supported by the Felxbox model?
- deleted 11y ago[deleted]
- talmand 11y agoSuch knowledge exists, but it requires a long and dangerous journey filled with adventure, thrills, and excitement too bold for most to endure. Many have traveled down that path, but few have returned to tell the tale. I am one of those few. I could easily share that knowledge, but for one to fully understand, one must walk such a path thyself guided by the voices from the source that flows over the stacks of such knowledge.
- gotchange 11y agoAs I walk through the valley of shadow of vertical-align, I took a look at my codebase and I realize there isn't much left ...
- forrestthewoods 11y agohttp://howtocenterincss.com/ http://howtocenterincss.com/ Good luck and God speed. There's no shame in turning back.
- PeCaN 11y agoHeck, it means that theoretically you can't verify a CSS3 stylesheet for correctness because you don't know the stylesheet will ever finish rendering. In practice it's probably not a problem since you don't have infinite HTML, but it is theoretically slightly disturbing. I'm an advocate of provably-correct, non-Turing-complete languages, which really should include CSS....
- Dylan16807 11y agoThis proof does not imply that. It cannot loop without you clicking all the boxes.
- PeCaN 11y agoA static analyzer doesn't know that you won't click all the boxes though.
- Dylan16807 11y agoIt still renders in O(n) time where n is the number of elements. You don't need Turing completeness to have trouble caused by user input. Imagine a million check boxes where the only rule is that they shrink by a pixel when checked. That should be about the same difficulty to analyze as the 110 rule checkboxes. Each input only affects the styling of 1-3 nodes.