Open Bug 1598338 Opened 5 years ago Updated 2 years ago

In Reader View, strikethrough text does not appear with a line through it

Categories

(Toolkit :: Reader Mode, defect, P5)

71 Branch
defect

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.

  1. Visit https://devblogs.microsoft.com/oldnewthing/20191119-00/?p=103115
  2. Notice that the text "Building 7" is struck out
  3. Open Reader Mode
  4. 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.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Reader Mode
Product: Firefox → Toolkit

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.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P5
Whiteboard: [reader-mode-readability-algorithm]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.