Click here to Skip to main content
15,889,595 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: CCS is worst language ever created Pin
bjoernen3-Feb-21 3:03
bjoernen3-Feb-21 3:03 
JokeRe: CCS is worst language ever created Pin
raddevus3-Feb-21 3:12
mvaraddevus3-Feb-21 3:12 
GeneralRe: CCS is worst language ever created Pin
musefan3-Feb-21 3:21
musefan3-Feb-21 3:21 
GeneralRe: CCS is worst language ever created PinPopular
Jörgen Andersson3-Feb-21 3:27
professionalJörgen Andersson3-Feb-21 3:27 
GeneralRe: CCS is worst language ever created Pin
W Balboos, GHB3-Feb-21 3:44
W Balboos, GHB3-Feb-21 3:44 
GeneralRe: CCS is worst language ever created Pin
musefan3-Feb-21 5:26
musefan3-Feb-21 5:26 
GeneralRe: CCS is worst language ever created Pin
Jörgen Andersson3-Feb-21 5:27
professionalJörgen Andersson3-Feb-21 5:27 
GeneralRe: CCS is worst language ever created Pin
bjoernen3-Feb-21 5:43
bjoernen3-Feb-21 5:43 
What you describe already happens in the layout engine of modern browsers. The rules that I outlined earlier already happen, but is invisible to us. There are hundreds of such rules that must be evaluated to produce the final layout, and some are in direct conflict with each other, so the engine is designed to make a compromise. These compromise heuristics is what avoids endless recursion.

So imagine that tomorrow the Google Chrome team launches a new module called JSCSS, were they have moved out all those heuristics from inside the layout engine and written them in JS. From now on you point to a JSCSS file at the beginning of a HTML page, which defines all the CSS rules you intend to use. CSS still works exactly like before. But the HUGE difference is, now you can see how a flexbox actually figures out layout, AND you can extend CSS with your own definitions for things you think is better than the standard. AND you can omit CSS altogether, and write your layout directly in JSCSS of you want.

This would be a huge relief for everyone, because browser makers only have to make sure the core layout engine works correctly, and every CSS definition is in external JS, exactly the same for every browser. And any developer can extend CSS with his own definitions.
Bjorn

GeneralRe: CCS is worst language ever created Pin
Daniel Will4-Feb-21 17:19
Daniel Will4-Feb-21 17:19 
GeneralRe: CCS is worst language ever created Pin
harvyk07-Feb-21 10:43
harvyk07-Feb-21 10:43 
GeneralRe: CCS is worst language ever created Pin
Mike Hankey3-Feb-21 3:01
mveMike Hankey3-Feb-21 3:01 
GeneralRe: CCS is worst language ever created Pin
DerekT-P3-Feb-21 3:07
professionalDerekT-P3-Feb-21 3:07 
GeneralRe: CCS is worst language ever created Pin
Chris Maunder3-Feb-21 3:25
cofounderChris Maunder3-Feb-21 3:25 
GeneralRe: CCS is worst language ever created Pin
W Balboos, GHB3-Feb-21 3:46
W Balboos, GHB3-Feb-21 3:46 
GeneralRe: CCS is worst language ever created Pin
bjoernen3-Feb-21 5:53
bjoernen3-Feb-21 5:53 
GeneralRe: CCS is worst language ever created Pin
Chris Maunder3-Feb-21 6:52
cofounderChris Maunder3-Feb-21 6:52 
GeneralRe: CCS is worst language ever created Pin
Gerry Schmitz3-Feb-21 7:39
mveGerry Schmitz3-Feb-21 7:39 
GeneralRe: CCS is worst language ever created Pin
Matthew Dennis3-Feb-21 9:03
sysadminMatthew Dennis3-Feb-21 9:03 
GeneralRe: CCS is worst language ever created Pin
Sander Rossel3-Feb-21 9:20
professionalSander Rossel3-Feb-21 9:20 
GeneralRe: CCS is worst language ever created Pin
Jörgen Andersson3-Feb-21 10:51
professionalJörgen Andersson3-Feb-21 10:51 
GeneralRe: CCS is worst language ever created Pin
Sander Rossel3-Feb-21 22:11
professionalSander Rossel3-Feb-21 22:11 
GeneralRe: CCS is worst language ever created Pin
Eddy Vluggen3-Feb-21 15:49
professionalEddy Vluggen3-Feb-21 15:49 
GeneralRe: CCS is worst language ever created Pin
MadGerbil4-Feb-21 2:31
MadGerbil4-Feb-21 2:31 
GeneralRe: CCS is worst language ever created Pin
Slow Eddie4-Feb-21 2:40
professionalSlow Eddie4-Feb-21 2:40 
GeneralRe: CCS is worst language ever created Pin
Martin ISDN4-Feb-21 3:26
Martin ISDN4-Feb-21 3:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.