[Inactive CSS] Display a warning when 'caption-side' is used on invalid elements
Categories
(DevTools :: Inspector: Rules, enhancement, P2)
Tracking
(Not tracked)
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 }
Comment 1•3 years ago
|
||
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".
Description
•