W3C home > Mailing lists > Public > www-validator-css@w3.org > May 2019

Re: POSSIBLE VALIDATOR ERROR

From: David Dorward <david@dorward.me.uk>
Date: Tue, 14 May 2019 09:45:12 +0100
To: Carknocker <carknocker@okthepk.ca>
Cc: www-validator-css@w3.org
Message-ID: <36FA3666-987E-4F67-B632-44265F640DB1@dorward.me.uk>
On 13 May 2019, at 22:06, Carknocker wrote:

> While checking the code on an HTML page iFrame your validator produced 
> the following error message:

Your screenshot indicates that you are using the Markup Validation 
Service, not the CSS Validator.

> It doesn't like the percentage value in height.
>
> However, this code functions correctly in the Internet Explorer, Edge, 
> Chrome, FireFox, and Opera browsers.
>
> Is the validator correct or what am I missing here?

The validator is correct.

 From https://www.w3.org/TR/html5/fullindex.html#attributes-table :

> height
>
> canvas; embed; iframe; img; input; object; video	
>
> Vertical dimension
>
> Valid non-negative integer

A percentage is not an integer.

You should avoid presentational attributes anyway. Use CSS.
Received on Tuesday, 14 May 2019 08:47:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:01:22 UTC