Re: [csswg-drafts] [cssom] How to serialize 0% in translate property? (#7722)

From https://drafts.csswg.org/css-transforms-2/#individual-transforms

> The [resolved value](https://drafts.csswg.org/cssom-1/#resolved-value) of the [`translate`](https://drafts.csswg.org/css-transforms-2/#propdef-translate) property is the [computed value](https://drafts.csswg.org/css-cascade-5/#computed-value), and thus [getComputedStyle()](https://drafts.csswg.org/cssom-1/#dom-window-getcomputedstyle) includes percentage values in its results.

Also:

> When the second or third values are missing, they default to 0px.

So omitting `0%` would be like turning it into `0px`.

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


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

Received on Sunday, 11 September 2022 18:59:42 UTC