Closed Bug 1583909 Opened 5 years ago Closed 3 years ago

[Inactive CSS] Display a warning when 'caption-side' is used on invalid elements

Categories

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

enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: miker, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [importance-2%])

Main file:
devtools/server/actors/utils/inactive-property-helper.js

invalidProperties: [
"caption-side",
]

inactive-css-caption-side = <strong>{ $property }</strong> has no effect on this element since it can only be applied to tables and table caption elements.

inactive-css-caption-side-fix = Try moving the property to a table or table caption element. { learn-more }

Strictly speaking, since this property is inherited-by-default, we probably shouldn't take action on this bug, per my notes in bug 1583901 comment 9 onwards, and the code-comment added in bug 1688538.

If an author has a bunch of tables and they prefer their captions to be on the bottom (for example), they could quite reasonably specify caption-side: bottom on their <html> or <body> element, with the intent of setting the value for the whole document. And this would be a totally legitimate thing for them to do, and we shouldn't really complain that this CSS "has no effect".

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