Re: [csswg-drafts] [css-sizing] cyclic percentage concept should not exist

We can't unilaterally apply it to all percentages because, for example, a percentage that resolves against a definite size in one axis needs to be taken into account for intrinsic sizes in the other axis when an aspect ratio or orthogonal flows are involved.

For example, the intrinsic widths of an image with a percentage height that is resolved against a definite containing block height: http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cdiv%20style%3D%22height%3A%2060px%3B%20border%3A%20solid%20orange%3B%22%3E%0A%20%20%3Cimg%20src%3D%22https%3A%2F%2Fplacehold.it%2F100x100%22%20style%3D%22max-height%3A%20100%25%3B%20display%3A%20block%3B%22%3E%0A%3C%2Fdiv%3E

While we could maybe have a more general definition of affected percentages that includes percentages which are not cyclic but which don't have an effect on intrinsic sizes anyway, I don't think that would be an easier definition to have here. By definition, a percentage which has an impact on the intrinsic size is cyclic; and for one which doesn't, it doesn't matter how we categorize it during intrinsic size computation. (The UA can of course categorize percentages however it's convenient if there's no effect on its output.)

Proposing to close WONTFIX, let us know if this is unsatisfactory.

-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3010#issuecomment-417475939 using your GitHub account

Received on Thursday, 30 August 2018 21:40:25 UTC