Skip to content

Reduce the amount of work done to assemble a list of all properties #279

@domenic

Description

@domenic

As a follow-up to #278. #210 is probably related?

lib/generated/allProperties.js currently contains all properties in CSS specs according to the W3C JSON file.

lib/utils/allExtraProperties.js claims to contain other properties which are not in CSS specs but are implemented in browsers. I am unsure this claim is true. Also, many of the properties listed here also exist in allProperties.js, so they are redundant.

Both of the above files are only useful as input to scripts/generatePropertyDefinitions.mjs, which uses @webref/css. The end result is: @webref/css ∩ (allProperties.jsallExtraProperties.js).

So basically, we are generating fewer properties than are available in @webref/css, using a pretty complicated system.

I think it's best to delete lib/generated/allProperties.js and lib/utils/allExtraProperties.js and just use @webref/css. Is there any downside to this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions