Skip to content

[css-cascade-5] Do we need an API that lists the cascade layers in a tree scope? #7015

Open
@xiaochengh

Description

@xiaochengh

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.

@mirisuzanne

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions