Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Percentages not allowed in sizes="" #234
Was speaking with @yoavweiss and I mentioned how sizes in Chrome Canary doesn't allow you to use percentages and he said that this was because percentages were removed due to author confusion (thinking that the percentages would be relative to its parent). I suggest adding this to the speck, list what units are allowed in the sizes attribute. I also think it might be worth considering doing the same for other units that are relative to the parent and not the root/viewport.
Here is an example
The spec does explicitly list what types are allowed - it says
But I'm fine with adding a more explicit note that percentages aren't allowed (and that you probably want to use the vw/vh units).