|
|
|
|
|
by err4nt
4429 days ago
|
|
Not having constraint-based algorithms isn't what's holding CSS back, if we used @media queries on the widths of elements themselves instead of browser dimensions we could implement really REALLY advanced layouts with the CSS we already have. I wish I could do CSS like this: .container .headline {
font-size: 14pt;
} @media .container (min-width > 500px) { .headline {
font-size: 18pt;
}
}@media .container (min-width > 900px) { .headline {
font-size: 24pt;
}
}I don't really care how wide the browser itself is. I don't care how big the device is or the orientation. If I know in the layout this element is going to be squished below 300px at some point,easily let me make styles for when that ELEMENT is below 300px and I can build layouts that will look pixel-perfect at any size on any screen No GSS or constraint-based languages necessary |
|