Hi, WeasyPrint/pydyf dev here!
> usually a good way to deal with it is to only use a very simple but coherent subset and enforce this usage with validation tools
You’re right, that’s exactly what we do. We support a growing subset of HTML and CSS that’s documented. We also use the W3C testing suite for HTML/CSS, and PDF validators, on top of custom unit tests.
> And big tech is not the only one trying hard to do vendor and developer lock-in.
We "only" follow open specifications and refuse vendor-specific features to avoid lock-ins (equivalent closed-source tools love that). And we even love the other open-source "concurrents": ♥ to Paged.js and Vivliostyle, try them, they’re great too!