Closed Bug 1902961 Opened 3 months ago Closed 3 months ago

DevTools incorrectly reports that element with `float:left;display:inline-grid` has been changed to block

Categories

(DevTools :: Inspector: Rules, defect, P2)

defect

Tracking

(firefox129 fixed)

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: dholbert, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Attached file testcase 1

STR:

  1. Load attached testcase.
  2. Open at the Rules View in DevTools Inspector, with the testcase's sole div selected.
  3. Hover the circled "i" next to the grayed-out display:inline-grid rule.

ACTUAL RESULTS:
There's a tooltip saying: "The display value has been changed by the engine to block because the element is floated. Try removing float or adding display:block"

This is not correct; in fact the display value has been changed to grid, not to block. (It's been "blockified" which means inline --> block and inline-$X --> $X).

EXPECTED RESULTS:
The message should say "grid" instead of "block". Or if we want to keep things generic, we could rewrite the message to say "the block-level equivalent" instead of "block".

Attached image screenshot

Thanks! We should get the computed display value and use this instead.

Severity: -- → S3
Priority: -- → P2
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6a8c20f23fcf
[devtools] Include proper computed display value in inactive-css-not-display-block-on-floated message. r=devtools-reviewers,fluent-reviewers,ochameau.
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: