mdn / mdn/fred

`<em>` in interactive examples doesn't render as italic in Safari

Open
#1,269 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

p1
Dominant language
JavaScript
Stars
233
Forks
61
Avg merge
1d 1h
Merged PRs (30d)
82

Description

Reported via https://github.com/mdn/content/pull/42992#issuecomment-3833185415.

STR:

  1. In Safari, open https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/em#try_it

Expected:

Image

Actual:

Image

Note: This is similar to https://github.com/mdn/yari/issues/7203, but content is not affected, because Fred uses multiple Inter @font-faces, whereas the Playground Runner uses a single @font-face.

PS: It works in the live samples further down, because those don't use Inter.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in Safari at the linked MDN interactive example, then compare the single Inter @font-face setup in mdn/dex cloud-function/src/internal/play/index.js with mdn/fred/components/font/inter.css. Done means the em example renders italic in Safari without regressing the live samples that already work.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.