Hi I am an engineer for a news media website. While recently reviewing CLS issues, I discovered that when using the web font "Noto Sans" (Source Han Sans), specific characters like quotation marks "「」" will cause CLS problems.A bit difficult to explain, please use the following URL and tool for testing. I've attached the URL and saved tracing JSON data for viewing.Link: https://udn.com/upf/static/common/cls-bracket.html
Tools used:Chrome 134, Performance Tab
Simulation status:
Mobile with iPhone XR size (414*896)
Description of the situation:
The issue occurs when text encounters specific symbols and needs to be wrapped due to width constraints. While managing news content, we found that in certain specific situations, during the rendering process of text with web fonts, when encountering insufficient width, chrome tends to adjust the spacing between characters above and below. This indirectly triggers CLS layout shifting problems.
This issue seems unreasonable because the text itself is dynamic, and we cannot set different properties for different text at each different CSS breakpoint. Please review this issue and advise if there's a better solution.
From the test URL, you can see that the first and second paragraphs contain the same text. The difference is that in the second paragraph, a line break character has been added after the text "視覺智慧," which causes the CLS issue. This issue only occurs on devices with exactly 414px width. Please ensure to use the same device simulation for testing.