Inline text in inspector disappears when display changes to flex
Categories
(DevTools :: Inspector, defect, P2)
Tracking
(Not tracked)
People
(Reporter: pbro, Unassigned)
Details
(Whiteboard: dt-q)
Attachments
(1 file)
|
33.03 KB,
image/png
|
Details |
Steps:
- Open the following page:
data:text/html,<span>some text</span> - Open the inspector and select the span
- Add
display:inline-flexto this element in the rule-view
Problem: the some text textnode disappears from the inspector.
One thing to note is: short textnodes are normally inlined. This means that are not rendered in the inspector as a separate node, they are just displayed within the opening a closing tags of their parent node.
This is to make the inspector more compact and easier to read.
That said, doing so is not correct, since it makes it impossible to select the textnode in the inspector.
And so, because we did need to select textnodes when we implemented the flexbox inspector (because textnodes can be flex items), we added some code that would prevent inlining in this case.
The code that prevents the inlining is here.
So, not inlining flex item textnodes is correct, but when this happens, they should have their own node in the inspector and their parent should have an expanding arrow so they can be shown.
The bug here is that when switching from inlining to no inlining, the arrow does not appear, and so it appears as if the textnode just disappeared.
| Reporter | ||
Updated•7 years ago
|
Comment 1•5 years ago
|
||
(In reply to Patrick Brosset <:pbro> from comment #0)
Tested on Mozilla/5.0 (X11; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0
Issue appears resolved, could you confirm?
Comment 2•5 years ago
|
||
| Reporter | ||
Comment 3•5 years ago
|
||
No I believe there is still a bug. The "some text" text node still disappears from the Inspector panel.
Updated•4 years ago
|
Description
•