w3c / spec-prod

GitHub Action to build ReSpec/Bikeshed specs, validate output and publish to GitHub pages or W3C
https://w3c.github.io/spec-prod/
MIT License
34 stars 21 forks source link

non-decimal value is not allowed for img for other than pixel #119

Closed himorin closed 2 years ago

himorin commented 2 years ago

webxr-ar-module spec includes SVG image and having height copied from SVG into HTML, and got error as follows:

https://github.com/immersive-web/webxr/runs/4615757620?check_suite_focus=true

    "file:/home/runner/work/webxr/webxr.w3c/index.html":3026.10-3026.135: error: Bad value “12.509ex” for attribute “height” on element “img”: Expected a digit but saw “.” instead.
    "file:/home/runner/work/webxr/webxr.w3c/index.html":3029.10-3029.129: error: Bad value “13.509ex” for attribute “height” on element “img”: Expected a digit but saw “.” instead.
    "file:/home/runner/work/webxr/webxr.w3c/index.html":3032.10-3032.172: error: Bad value “13.509ex” for attribute “height” on element “img”: Expected a digit but saw “.” instead.

We should prevent non digit values for pixel (px) unit, but I believe we should allow non decimal values for relative units.

himorin commented 2 years ago

sorry, confused with CSS... this is in HTML element.