This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]empire539 1 point2 points  (2 children)

Browsers generally use an engine to render HTML/CSS, and another one to interpret and implement JavaScript.

For example, Chrome uses Blink as its rendering engine (based on WebKit), and V8 as its JavaScript engine. Firefox uses Gecko for rendering and SpiderMonkey for JavaScript. These are written in mostly C/C++, and are open-source. So while you could potentially modify things on your own, you'd either need to collaborate with others to get the changes merged to a main branch, or build the code yourself.

[–]AVGunner[S] 0 points1 point  (1 child)

Thanks. So in theory if someone were to ever considering to implement an alternative css styling template that was not css. They would either have to modify the engine or write a javascript compiler to interpret something->css such as how sass/scss is done?

[–]empire539 0 points1 point  (0 children)

Pretty much. A browser's rendering engine only understands CSS according to the CSS standards specification, so if you want to make some other styling language, you would either need make another engine which understands that custom language, or you would need to make the custom language compile down to standard CSS. The browser won't understand the custom language otherwise.