In Reader View, strikethrough text does not appear with a line through it
Categories
(Toolkit :: Reader Mode, defect, P5)
Tracking
()
People
(Reporter: z, Unassigned)
Details
(Whiteboard: [reader-mode-readability-algorithm] )
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0
Steps to reproduce:
Big fan of the Reader Mode, thought I would report this issue to help continue to improve it.
- Visit https://devblogs.microsoft.com/oldnewthing/20191119-00/?p=103115
- Notice that the text "Building 7" is struck out
- Open Reader Mode
- Notice that the text "Building 7" is not struck out
Actual results:
Struckthrough text is not struck out in Reader Mode.
Expected results:
Struckthrough text is struck out in Reader Mode.
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 2•5 years ago
|
||
The website uses <span style="text-decoration:strikethrough">
to mark this text. Reader mode strips inline styles which is how this is happening. To make this work, we'd need to (a) allow inline styles in the CSP, (b) change reader mode to keep some inline styles (but not everything...), which requires having a full-blown CSS parser available in reader mode. That's somewhat tricky; it probably won't be done any time soon.
If the website used the correct, semantic <del>
tag this probably wouldn't be an issue, and that would probably also be better for accessibility.
Updated•2 years ago
|
Description
•