7 ms·
What does "immutable" mean in the context of CSS?
by tobr 12y ago
What does "immutable" mean in the context of CSS?
- itsbits 12y agoAs per site description "Simple, composable typographic and layout utilities based on common scales promote faster design and development in the browser and more performant, more readable code with no side effects." Not sure technically how this is immutable..
- tobr 12y agoFound their definition[0] of what immutable means. Apparently the idea is that you can trust that the rules in an immutable CSS selector will never change in the future. "Immutable" seems like a pretty confusing term for this. [0] http://www.basscss.com/docs/reference/principles/#immutable-utilities http://www.basscss.com/docs/reference/principles/#immutable-...
- bshimmin 12y agoI guess after "Object-oriented CSS" it was inevitable we would get Functional CSS...
- danieldisu 12y agoI think that it means that if you put a class called .block it will ONLY add the attribute display: block;
- gcz92 12y agoAfter doing that enough times, won't it basically look like a smaller version of inline css?
- mrmrs 12y agoMulti class patters render faster in the browser than inline styles. And I also think more readable especially with a series of single purpose classes that only target one breakpoint.