8000 Layout should shape text across element boundaries · Issue #35397 · servo/servo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout should shape text across element boundaries #35397

Open
xiaochengh opened this issue Feb 10, 2025 · 0 comments
Open

Layout should shape text across element boundaries #35397

xiaochengh opened this issue Feb 10, 2025 · 0 comments
Labels
C-untriaged New issues that haven't been triaged yet

Comments

@xiaochengh
Copy link
Contributor

Describe the bug:
Currently shaping is broken at element boundaries. It shouldn't.

To Reproduce:
See the test case below. In all the paragraphs, we should see "ffi" shaped as a ligature.
Servo only shapes the first paragraph correctly, and shapes all the remaining paragraphs as 3 independent letters.

<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<style>
:root {
  font-family: Roboto;
  font-size: 150%;
}
div::before {
  content: "f";
}
div::after {
  content: "i";
}
q {
  quotes: "f" "i";
}
</style>

<h1>All of the paragraphs below should look the same</h1>

ffi
f<span>f</span>
<div>f</div>
<q>f</q><br>
@xiaochengh xiaochengh added the C-untriaged New issues that haven't been triaged yet label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-untriaged New issues that haven't been triaged yet
Projects
None yet
Development

No branches or pull requests

1 participant
0