5 ms·
You had a running css engine in a few minutes?
by hossbeast 9y ago
You had a running css engine in a few minutes?
- tombert 9y agoHeh, bad wording; I should say that I had performance problems within a few minutes. I did eventually get something that kind of worked, but that took about a day, and still suffered performance issues, probably because I had no idea what the hell I was doing (and still don't, really)
- nnethercote 9y agoYou had a running CSS engine within a day?
- tombert 9y agoYeah, a really crappy one that parsed a CSS file using Bison, and could change text colors, background colors, and position things based on pixels (no em or %). I never got around to implementing class support, but I did allow targeting an element via ID. I did this in C++ for some reason, and used Xerces to parse the XML, and I used Allegro to render everything. If I were to try and make this now, I probably would not use a rendering system designed for games, but I was naive back then. I'll have to look to see if I can find the old files on my NAS; if I can I'll put it on Github.
- tvararu 9y agoThese kind of high-level overviews of prototype implementations are very useful, thank you for sharing.