Servo and the Web Platform Tests
2023-07-20 How we use the Web Platform Tests to guide Servo’s development.
With over 52000 tests and nearly two million subtests, the Web Platform Tests are one of the most important parts of the web’s interoperability and compatibility story. Servo has long used the WPT to catch regressions and flakiness, but the suite has also played a role in our layout engine migration and guiding our way towards CSS2 conformance.
You can find Servo on
, a dashboard for all browsers integrated with the Web Platform Tests.
To see the pass rates for Servo, follow this direct link, or click EDIT, ADD PRODUCT, choose Servo, then click SUBMIT.
While fyi is not so great for tracking progress over time (though definitely possible), it has been very helpful for drilling down from specs to sections, tests, and subtests. This has made it easier for us to decide what to work on next.
But the key to this was our
Built in April, the dashboard has since tracked Servo’s pass rate over time, not just over the suite as a whole but also over several focus areas:
The dashboard has data for both our legacy and new layout engines, which made it easy to see where the new engine most needed catching up.
Over the last three months, we’ve halved the gap with legacy or better in several of those areas:
- CSS overall (7.7pp → 3.7pp)
- our CSS2 focus areas (19.0pp → 8.2pp)
- margin-padding-clear (33.0pp → 10.3pp)
- CSS flexbox module (10.5pp → 3.1pp)
- CSS position module (2.5pp → 0.2pp(!))
We’re two thirds of the way to legacy in floats (31.5pp → 10.8pp) and floats-clear (48.3pp → 3.3pp(!)):
And in the CSS2 positioning tests, we’ve surpassed legacy and built a healthy 5.5pp lead:
Over time, as our pass rates improve or people start working on new things, we’ll continue adding new focus areas, and with the web platform continuously evolving, we probably won’t run out of areas any time soon.