This repository was archived by the owner on Sep 5, 2024. It is now read-only.
CSS text-rendering style causes severe performance issues with long strings #1989
Labels
for: internal contributor
The team will address this issue and community PRs are not requested.
type: bug
https://github.com/angular/material/blob/master/src/core/style/structure.scss#L39
The text-rendering:optimizeLegibility CSS style is applied globally to html and body tags, resulting in severe performance issues on pages that try to render SVGs with large text content. If you need this CSS style, it should only be applied to the elements that need it, not globally.
To see the performance issue, you can reproduce at https://jsfiddle.net/saLmfxza/. Remove the text-rendering CSS style to see the (30x) difference.
The text was updated successfully, but these errors were encountered: