Skip to content

[css-nesting-1] Need to specify error-handling when writing selectors via OM #7971

@tabatkins

Description

@tabatkins

I need to specify what happens when you insert a nested style rule via the OM with a selector that violates the requirement to not start with an identifier or function, or modify the .selectorText of an existing rule to violate it.

I think the .selectorText update rule should do the check and, like if you try to set it to anything else that's not a valid selector, just do nothing.

For rule insertion, unsure whether we should silently drop such rules or raise an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions