Case ce-0155-font-family-inheritance-issue · Scenario scenario-font-family-change

Font family inheritance causes unexpected formatting in Firefox

OS: Windows 11 Device: Desktop or Laptop Any Browser: Firefox 120.0 Keyboard: US Status: draft
font inheritance typography firefox

Phenomenon

When applying font family to text in Firefox, the font may be inherited from parent elements unexpectedly. This causes inconsistent font rendering and makes it difficult to control typography.

Reproduction example

  1. Create contenteditable with parent element having font-family
  2. Apply different font to selected text
  3. Observe font rendering

Observed behavior

  • Font may be inherited from parent
  • Applied font may not take effect
  • Font rendering is inconsistent
  • Typography control is difficult

Expected behavior

  • Applied font should override parent font
  • Font should be applied as specified
  • Inheritance should be predictable
  • Typography should be controllable

Browser Comparison

  • Chrome/Edge: Font application generally works
  • Firefox: Font inheritance issues (this case)
  • Safari: Font inheritance varies

Notes and possible direction for workarounds

  • Use more specific CSS selectors
  • Apply font with !important if needed
  • Ensure inline styles override parent styles
  • Normalize font inheritance behavior
Before
Hello World
Parent element has Arial font, World text selected
After Font Family (Bug)
Hello World
Attempting to apply Times font, not applied due to parent font inheritance
vs
✅ Expected
Hello World
Expected: Times font overrides parent font and is applied

Browser compatibility matrix

This matrix shows which browser and OS combinations have documented cases for this scenario. The current case is highlighted. Click on a cell to view other cases.

Current case
Confirmed
Draft
No case documented

All variants (detailed table)

Complete list of all cases for this scenario with full environment details.

Case OS Device Browser Keyboard Status
ce-0106-font-family-persistence-safari macOS 14.0 Desktop or Laptop Any Safari 17.0 US draft
ce-0135-font-family-empty-style Windows 11 Desktop or Laptop Any Chrome 120.0 US draft
ce-0155-font-family-inheritance-issue Windows 11 Desktop or Laptop Any Firefox 120.0 US draft

Playground for this case

Use the reported environment as a reference and record what happens in your environment while interacting with the editable area.

Reported environment
OS: Windows 11
Device: Desktop or Laptop Any
Browser: Firefox 120.0
Keyboard: US
Your environment
Sample HTML:
Event log
Use this log together with the case description when filing or updating an issue.
0 events
Interact with the editable area to see events here.

Comments & Discussion

Have questions, suggestions, or want to share your experience? Join the discussion below.