Mastodon Feed: Post

Mastodon Feed

adele@social.pollux.casa ("Adële") wrote:

Choosing an existing #CSS version as base for the #smolweb is complicated 🤔

CSS Mobile Profile 1.0 seems to be a good candidate. It is a subset of CSS 2.1.

It excludes rather than changing existing properties:

No positioning (position: absolute/relative/fixed) - avoided complex layout calculations

No advanced selectors (:hover, :focus, attribute selectors) - reduced parsing overhead

No table layout properties - simplified rendering

No generated content (:before, :after) - reduced memory usage

However, it is difficult to conform this CSS profile for a beautiful website.

Also looking at CSS Mobile Profile 2.0, it's significantly more complex than 1.0 and includes features that may conflict with smolweb goals of lightweight, computationally-efficient CSS.

Other option is to open smolweb to the whole CSS 2.1 (or 2.2) profile.

In all case, a smolweb site must be browsable with disabled styles (inline style blocks and linked CSS)

https://www.w3.org/TR/2000/WD-css-mobile-20001013

https://www.w3.org/TR/2014/NOTE-css-mobile-20141014/

https://www.w3.org/TR/CSS22/

Which version is the most adapted to the smolweb ?