Activity breaks CSS :has() rules due to display:none not affecting :has() matching
When using cacheComponents and Activity, navigating away from a page hides its content with display:none, but CSS :has() selectors still match hidden elements, causing unintended styles on the new page.
