inline <svg> can’t use cross-origin web fonts
Nobody has claimed this yet.
- 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 |
|---|---|
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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