Closed Bug 1724559 Opened 4 years ago Closed 1 year ago

`::first-letter` cause the `display:contents` element style cannot be inherited

Categories

(Core :: Layout, defect, P5)

Firefox 92
defect

Tracking

()

RESOLVED DUPLICATE of bug 1361313

People

(Reporter: 709922234, Unassigned)

Details

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

Steps to reproduce:

visit https://codepen.io/mantou132/pen/qBmJGyX

Actual results:

text font-size is 16px;

Expected results:

font-size is 36px;

The Bugbug bot thinks this bug should belong to the 'Core::Graphics: Text' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Graphics: Text
Product: Firefox → Core
Flags: needinfo?(emilio)
Component: Graphics: Text → Layout

Hard to say whether this is right or not... The spec for how first-letter inherits styles is fairly under-defined, and Gecko is the closest-to-correct here.

Flags: needinfo?(emilio)
Severity: -- → S3
Priority: -- → P5

This should be a duplicate of bug 1361313

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1361313
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.