Open
Description
It might be useful if there is an API that returns all the cascade layers of a tree scope as a sorted list or a tree. For example, DevTools might need this (source: https://twitter.com/kilianvalkhof/status/1484568350504140804?s=20)
However, for the same purpose, Chrome DevTools doesn't need a public web API. Instead, it retrieves information via Chrome DevTools Protocol, which is also a public API.
So while a layer-listing API seems good on its own, I'm not sure about the exact use cases, and therefore not sure about what the exact result format it should use. (I tried to draft something here)
So I'm opening this issue to collect ideas and see if we should introduce such an API.