Closed Bug 1551580 Opened 6 years ago Closed 5 months ago

[Inactive CSS] Display a warning when float related properties are used incorrectly.

Categories

(DevTools :: Inspector: Rules, enhancement, P3)

enhancement

Tracking

(firefox129 fixed)

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: miker, Assigned: sebo)

References

(Blocks 1 open bug)

Details

(Whiteboard: [Importance: 86.0%])

Attachments

(1 file)

Only non-flex and non-grid items:

[
  "float",
]

[This property] doesn't have an effect because it cannot be used on grid or flex items.


Only block-level elements, floats, regions and pages:

[
  "clear",
]

[This property] doesn't have an effect because it only applies to block level elements, floats regions and pages. Try adding properties like display:block or float:left


Only floats:

[
  "float-offset",
  "shape-image-threshold",
  "shape-margin",
  "shape-outside",
]

[This property] doesn't have an effect because it only applies to floated elements. Try adding properties like float:left

Type: defect → enhancement
Priority: P2 → P3
Whiteboard: [Importance: 86.0%]
Severity: normal → S3

The clear property currently only applies to block-Level elements, not to floats, regions, or pages, because the related CSS Page Floats Module (https://www.w3.org/TR/css-page-floats-3/) is not implemented yet.
For the same reason, we don't check float-offset and float-defer at the moment.

Assignee: nobody → sebastianzartner
Status: NEW → ASSIGNED
Pushed by sebastianzartner@gmail.com: https://hg.mozilla.org/integration/autoland/rev/2eb99e54f529 [devtools] Handle float-related issues in inactive CSS. r=devtools-reviewers,fluent-reviewers,flod,nchevobbe.
Status: ASSIGNED → RESOLVED
Closed: 5 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: