https://drafts.csswg.org/css-color/#gray-to-rgb
This section should include the actual transformation as pseudo-code or an implementation in JavaScript.
It's nice that it says the computation is easy, and lists the steps, but it should just include code. This will make life easy for implementers, as well as someone writing tests.