|
|
|
|
|
by dgb23
1692 days ago
|
|
You’re hinting at something interesting there. As someone who‘s in web professionally but has been programming games as a hobby, I have only naive insight into the latter. But from that superficial understanding I assume it has to do with control: In a game you control the rendering/layout logic more specifically. Not every element has to follow all the rules, they need to follow certain rules, scoped to their use case. With CSS we only have high level control _and_ a predefined data structure that may or may not make sense for specific cases (DOM tree), so each rendering node has to respect _all_ the features, plus _all_ these dependencies are propagated across the whole tree, whether it makes sense or not for a given use case. If we had more generic, less abstract control, we would not have the same problems. Maybe there is merit in exposing more control to web developers. |
|