Re: [csswg-drafts] [css-values-4][cssom] <resolution> serializes to 'dppx', not 'x'

Makes sense; but then would e.g. '1x' be serialized to '1dppx'? It seems the previous resolution didn't have a clear answer to this; the relevant discussion from #461 is below:

> \<dael\> fantasai: We've never had alias units, so what do you get if you serialize it back out.
> \<dael\> leaverou: dpx?
> \<leaverou\> s/dpx/dppx/
> \<dael\> TabAtkins: It's only image resolution and webkit image set, so let's see what webkit does and do what they say. It'll b e x or dppx.
> \<dael\> smfr: Pretty sure it's x
> \<dael\> fantasai: If you put in dppx do you get out x?
> \<dael\> TabAtkins: In specified style no. We don't need fancy. They're different units with a 1 to 1 ratio. In computed when you canonicalize you go to probably x.

This seems to suggest that there are two different units rather than one unit with two names, which doesn't seem to be clear in the spec. I'm also not sure if this makes the most sense, as they really are the same unit, just specified in two different ways.

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

Received on Wednesday, 31 January 2018 18:12:49 UTC