Open dascritch opened 5 years ago
So we can, but you'll need to dive into themes making.
Bug re-opened and titlable, as may be do-able via new CSS layers and Container. https://dutchcelt.nl/posts/stop-the-cascade/
The new @rule
@container (inline-size)
just got from CSSWG a fantastic improvement : we can use var()
!
@container (inline-size > var(--small)) {
}
So now, we can insert it correctly without anty polyfill. Right here, right now, and waits for browsers to implement it !
Actually, breakpoints are hard-coded : 640px , 480px, and 320px
CSS variables are not able to be used as breakpoints, as they are... uh... variables.
There are some proposal to the standards, as CSS
@element
queries and CSS Environment variables, and some tests in browsers.Wait & see.