Closed Bug 1524575 Opened 7 years ago Closed 7 years ago

<del> shows no line-through due to children's inline-flex

Categories

(Core :: Layout, defect)

65 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: stefan, Unassigned)

References

()

Details

(4 keywords)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0

Steps to reproduce:

I have a <del> element with an <a> element in it. The <a> element has a CSS property display inline-flex.

https://codepen.io/rakker/pen/rPyoBG

Actual results:

The <del> element shows no line through text decoration anymore which is caused by the inline-flex style from it's parent. If I change the <a> to, for example a <span>, it has the same outcome.

Expected results:

The <del> element still should render the line through text decoration, like other common browsers.

Tested in Firefox 65.0 on a Windows machine.

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0
20190201221223

Status: UNCONFIRMED → NEW
Component: Untriaged → Layout
Ever confirmed: true
Product: Firefox → Core
Summary: <del> shows no line-trough due to childrens inline-flex → <del> shows no line-through due to children's inline-flex

inline-flex is like inline-block, which is an atomic inline item, which is skipped by decoration lines by default (CSS Text Decoration L4 provides text-decoration-skip which allows not skipping it, but no browser currently implements it), so text inside inline-flex wouldn't get decoration line from its ancestor.

Other browsers show a decoration line basically because they haven't implemented the correct way to render decoration lines (i.e. they still make decoration lines inherited).

Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.