Skip to content

[css-backgrounds-4] Allow repeating none in box-shadow-offset #8567

@cdoublev

Description

@cdoublev

none, none is currently valid in box-shadow but not in box-shadow-offset.

animation, transition, scroll-timeline, view-timeline, accept declaring none with other values and repeating it in a coordinating value list. In #8440, I suggested restricting none in these properties, before considering some (contrived) use cases.

.box {
  box-shadow: 0px 0px, black none 1px;
}
.box:hover {
  box-shadow-offset: 1px 1px, 2px 2px;
}

Nit: stacking {1,2} and # does not seem invalid but some spec readers may think [ <length>{1,2} ]# is clearer.

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