3 ms·
https://news.ycombinator.com/item?id=27376496 https://news.ycombinator.com/item?id=27376496 We can certainly get a lot of work done within CSS's limits All I
by wruza 5y ago
https://news.ycombinator.com/item?id=27376496 https://news.ycombinator.com/item?id=27376496
We can certainly get a lot of work done within CSS's limits
All I really want is a linear model over current layout model. E.g.
...your regular css...
.wrapper:relations {
div.text/left == svg.line.underliner-segment/left + 5px
div.text/baseline == svg.line.underliner-segment/bottom + 2px
#item-a/center-x == #item-b/center-x
#item-d/right >= #item-c/left + 20px
*/right <= $this/right - 10px
*/bottom <= $this/bottom - 10px
}
I don't want play a detective with css properties ever, when there is a proper mathematical model for coordinate relations. Those who are fine with current CSS could then continue to craft wands and potions and everyone'd be happy.
- vagrantJin 5y agoRight. Thanks for this but > I don't want play a detective with css properties ever, when there is a proper mathematical model for coordinate relations. Designers and UI devs would probably rather just write custom shaders on canvas if they have that level mathematical prowess. For most, offloading that cognitive load to an abstraction like CSS is worth it. Let the browser do the math. Playing detective then seems like a woefully arbitrary issue to have. Those who are fine with current CSS could then continue to craft wands and potions and everyone'd be happy. I believe it's called the dark arts.