Open Bug 1932552 Opened 14 days ago Updated 8 days ago

sibling selector shadow down

Categories

(Core :: CSS Parsing and Computation, defect)

Firefox 132
defect

Tracking

()

People

(Reporter: gerhard.meyer, Unassigned)

Details

Attachments

(1 file)

Attached file index.html

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

Steps to reproduce:

Just open my sample. The button show be visible when removing the readonly attribute from the input.

Actual results:

Sibling selector not applied correctly. When opening dev tools it suddenly applies

Expected results:

It should apply the sibling style. I have attached a example of the problem. Can be run in chrome to see expected results. The problem seems tied to the shadow dom and the sibling(~) selector.

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

Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core

Thanks for filing - and for the reduced testcase.

When opening dev tools it suddenly applies

That's a pretty telltale sign of a missed invalidation. Quickly changing display: none to background: red the issue still occurs, so it's unlikely to be the issue with the button not having a style.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: