Skip to content

Custom CSS: Nesting operator doesn't work if nesting level greather than 1 #73217

@EldarAgalarov

Description

@EldarAgalarov

For example, this CSS doesn't work:

&.is-layout-flex > *:has(+ *) {
	display: flex;
	flex-flow: row nowrap;
	column-gap: 5px;

	/* 2nd level nesting: not working as it should */
	&::after { 
		content: '•' 
	}
}

Works if unnest it:

&.is-layout-flex > *:has(+ *) {
	display: flex; 
	flex-flow: row nowrap; 
	column-gap: 5px
} 

&.is-layout-flex > *:has(+ *)::after { 
	content: '•' 
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions