Thanks! The real work is done in the Adi2 widget engine.
Take a look at: https://github.com/ovenpasta/adi2/blob/master/src/adi-widget... https://github.com/ovenpasta/adi2/blob/master/src/adi-layout... https://github.com/ovenpasta/adi2/blob/master/src/adi-css_st...
Regarding Pascal... yes you would need to rewrite everything I guess, Ada looks similar but it is quite different. Welcome!