Open Bug 1927699 Opened 1 year ago Updated 1 year ago

Overriding line-height doesn't reset the value properly.

Categories

(Core :: CSS Parsing and Computation, defect, P3)

Firefox 132
defect

Tracking

()

People

(Reporter: robin, Unassigned)

Details

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

Steps to reproduce:

The following codepen shows that when you set a global line-height in a * selector, and then override it for a specific selector, it still uses the old value.

If you compare the codepen between Chrome and Firefox, you'll notice that in Chrome the lines are really close together (at a line-height of 1), but in Firefox they're really far apart (the old value 5).

https://codepen.io/Robin-Mosterd/pen/eYqMzwK

Actual results:

The line-height was at the wrong, old value.

Expected results:

The line-height should've been overwritten to 1.

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

The severity field is not set for this bug.
:jwatt, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jwatt)

Weird the cascade would fail for this specific property.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(jwatt)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.