Edit in GitHubLog an issue

:only-child

Since UXP v3.0

Matches only an element with no siblings.

See: https://developer.mozilla.org/en-US/docs/Web/CSS/:only-child

Example:

Copied to your clipboard
1.item:only-child {
2 background-color: red;
3}
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.