Closed Bug 1793301 Opened 2 years ago Closed 2 years ago

:has with attribute selector

Categories

(Core :: CSS Parsing and Computation, defect)

Firefox 105
defect

Tracking

()

RESOLVED DUPLICATE of bug 1793012

People

(Reporter: gunnar, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0

Steps to reproduce:

Flag layout.css.has-selector.enabled set to true

Markup:

<ul>
  <li><a href="index">home</a></li>
  <li><a href="#main" aria-current="page">far far away</a></li>
<ul>

Stylesheet:

li:has([aria-current])::after {
  content: ' (You are here.)';
}

Test page: https://bittersmann.de/test/simple-hamburger

Actual results:

“(You are here.)” appears on either list item, or on neither on https://bittersmann.de/test/simple-hamburger/farfaraway

Expected results:

“(You are here.)” should only appear on the list item with the current page (marked with ARIA attribute) in it.

The Bugbug bot thinks this bug should belong to the 'Core::Disability Access APIs' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Disability Access APIs
Product: Firefox → Core

Me thinks the Bugbug bot is wrong here. This bug doesn’t relate to the Disability Access APIs, but to the selector engine.

Triage owner, apologies if this is the wrong component. I'm not exactly sure where selector stuff should go.

Component: Disability Access APIs → CSS Parsing and Computation
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.