Closed Bug 1696766 Opened 4 years ago Closed 4 years ago

[Inactive CSS] Display a warning when 'grid-template-*' are used on non-grid containers

Categories

(DevTools :: Inspector: Rules, enhancement)

enhancement

Tracking

(firefox88 fixed)

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: Oriol, Assigned: sebo)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The grid-template shorthand is already marked as useless when used in an element which is not a grid container. But it's longhands don't show this warning

  • grid-template-rows
  • grid-template-columns
  • grid-template-areas

Compare:

data:text/html,<style>body{grid-template:1px/2px}</style>
data:text/html,<style>body{grid-template-rows:3px; grid-template-columns:4px; grid-template-areas: "."}</style>

Assignee: nobody → sebastianzartner
Status: NEW → ASSIGNED
Pushed by sebastianzartner@gmail.com: https://hg.mozilla.org/integration/autoland/rev/03937fa14ae1 Added missing grid-template-* properties to inactive CSS rule checking properties invalid on non-grid containers. r=nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: