Skip to content

Should :extend(.selector all) flag be !all? #29

@matthew-dean

Description

@matthew-dean

I realized I've felt this way for a while but haven't raised it as a specific issue.

I think we should change this...

.foo:extend(.bar all) {}

...to...

.foo:extend(.bar !all) {}  // !all flag

That is, it's long felt odd to me that all looks like a regular selector. I think it should be a flag, like !important. Obviously if we ever got around to implementing deep it would be the same way.

It would be trivial in the parser to make ! optional, and then later update docs to prefer it, but I'm wondering how others feel about it.

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