Odō no oni
1.0.17
Added a new rule htmlacademy/req-source-width-height that requires the width
and height
attributes of <source>
, inside <picture>
.
{
"htmlacademy/req-source-width-height": true
}
<picture>
<source srcset="images/image-tablet.jpg" width="768" height="480" media="(min-width: 768px)">
<img src="images/image-mobile.jpg" width="320" height="148" alt="">
</picture>