DEV Community

Discussion on: If you could start over from scratch, how would CSS work?

Collapse
 
theodesp profile image
Theofanis Despoudis • Edited

You would not have to write CSS anymore. You would use a design editor that provided the design for all the browsers and just use the components as they are. The components would be just html elements with special tags on them so you can replace them with different tags if you wanted to make modifications. No CSS is needed.

All the logic for displaying the elements would be a machine representation compiled for the browser to parse and evaluate and would be handled by the design editor.

The design editor could be an external object or a plugin in the browser itself for quick prototyping.

Some low-code platform exists to offer similar capabilities but you still have to write CSS to handle edge cases and browser differences.

Collapse
 
booligoosh profile image
Ethan

😕 Where's the fun in that? 😂😂
Personally I find CSS quite fun to use.