Skip to content

Odō no oni

Compare
Choose a tag to compare
@nikolai-shabalin nikolai-shabalin released this 17 May 07:44
· 15 commits to main since this release

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>