Closed Bug 1523950 Opened 7 years ago Closed 7 years ago

font-family: monospace rendered with sans-serif font when unchecking "Allow pages to choose their own fonts…"

Categories

(Core :: Layout: Text and Fonts, defect)

64 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: fche, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0

Steps to reproduce:

  • Turned off the "Allow pages to choose their own fonts ..." tickiebox, because I like my font selections.
  • Opened a web page with a text box with CSS that includes "font-family: ..., monospace;"

Actual results:

  • Firefox rendered it with the proportional-space sans-serif font.

Expected results:

  • render it with the preferences-selected monospace font.

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0
20190124174741

Please provide a testcase. The following works for me.

  1. https://www.w3schools.com/html/tryit.asp?filename=tryhtml_basic
  2. Add style="font-family: monospace" to the body element.
  3. Click the Run button.
Component: Untriaged → Layout: Text and Fonts
Product: Firefox → Core
Summary: monospace font selection → font-family: monospace rendered with sans-serif font when unchecking "Allow pages to choose their own fonts…"

Thanks for your response. It was user error - my monospace font selection wasn't monospace enough. Sorry for the trouble!

Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.