Re: [csswg-drafts] [css-values-4] What happens to sign(%) when % has no meaning? (#12204)

> I don't understand how that edit doesn't break the entire percent hint concept and cause every calculation like 50px + 10% to fail (when in fact we want many of them to succeed when percentages are lengths).

I'm confused. The immediately preceding paragraph to that in the spec states that if percentages *are* resolved against another type, they get a percent hint of that other type. It's only percentages that stand on their own that get the "percent" percent hint.

> (I also still think it's desirable for z-index: sign(10%) to fail. I guess I should say that a little more explicitly than just asking whether it should.)

Luckily that's exactly what happens, as I explain in <https://github.com/w3c/csswg-drafts/issues/12204#issuecomment-2898786992>

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 23 May 2025 17:39:09 UTC