[Snippets] Bold <b> and anchor <a> tags don't work together nicely
Categories
(Firefox :: Messaging System, defect, P3)
Tracking
()
People
(Reporter: giorgos, Unassigned)
References
(Blocks 2 open bugs)
Details
There 're a few display issues for text in snippets that's both bold and links somewhere.
-
Links within marked bold text are ignored
Example:
<b><a href="https://example.com">foo</a></b>
displays text in bold, no link -
Bold text within link is ignored on Light theme only
Example:
<a href="https://example.com"><b>foo</b></a> -
All bold text within link is treated as bold when some text is marked bold only (Dark theme). Link is preserved.
Example:
<a href="https://example.com">Hi <b>there!</b></a>
Updated•5 years ago
|
Updated•4 years ago
|
Comment 1•4 years ago
|
||
Links introduce an edge case into how snippets are rendered with Fluent. Most Fluent strings that contain links are static (meaning the content of the string does not change, link position is fixed) while for snippets we need to render dynamic content. This seems to break for nested HTML tags, I think we need different snippet templates to handle this scenario if we need to support it.
Description
•