HTML5 Video

For technical support and bug reports for all editions of CSS HTML Validator, including htmlval for Linux and Mac.
Post Reply
Baluteer
Rank 0 - Newcomer
Posts: 1
Joined: Thu Dec 06, 2018 7:27 am

HTML5 Video

Post by Baluteer »

Error 613 - says that "Percentages like "100%" are not allowed
here." However, when I search for it, I find it stated that percentages and
auto are supported.

https://css-tricks.com/NetMag/FluidWidt ... hVideo.php
https://www.w3schools.com/css/css_rwd_videos.asp

And it does seem to work in the browsers I have checked. Should I be
concerned? Thanks
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: HTML5 Video

Post by Albert Wiersch »

Hello,

I have looked into this.

You're probably using percentages for "height" and "width" HTML attributes and this is not allowed. See:
https://developer.mozilla.org/en-US/doc ... ment/video
and
https://html.spec.whatwg.org/multipage/ ... attributes

However, percentages are allowed for the "height" and "width" CSS properties (but not the HTML attributes mentioned above).

I hope this helps. Please let me know if you have any more questions.

UPDATE: I've improved the message that may appear when an invalid percentage is used for a "width" or "height" attribute value in 2019/v19:
The value "100%" for the "height" attribute contains one or more non-integer characters after the integer characters. NOTE: Percentage values like "100%" are not allowed for this attribute (but may be allowed for the corresponding CSS property value).
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
Post Reply