servo / servo/servo

inline <svg> can’t use cross-origin web fonts

Open
#47,643 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-content/svg A-platform/fonts C-has-manual-testcase
Dominant language
Rust
Stars
38k
Forks
3.8k
Avg merge
1d 6h
Merged PRs (30d)
465

Description

repro in servoshell 0.5.0 branch:

data:text/html,<style>@font-face{font-family:Fira Sans;src:url(https://fonts.gstatic.com/s/firasans/v17/va9E4kDNxMZdWfMOD5Vvl4jL.woff2)} *{font-family:Fira Sans}</style><p>hello in html<p><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" width="100" height="20"><text y="16" font-family="Fira Sans">hello in svg</text></svg>

servoshell 0.5.0 Firefox 151.0.3
Image Image

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

Start with the provided data:text/html reproduction in servoshell 0.5.0 and compare the HTML and inline SVG font rendering with Firefox. Trace the font-loading and SVG text-rendering paths involved; done means the inline SVG text uses the cross-origin web font consistently with the surrounding HTML.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, html, rust
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.