[css-transforms-2] computed values of 'translate', 'rotate', and 'scale'

The computed values of the properties in
https://drafts.csswg.org/css-transforms-2/#individual-transforms
seem simpler than they should be.  All three currently say:
  # Computed value:     as specified 
(although 'translate' has a second computed value line too!)

However, the prose below contains a number of defaults:

  # Unspecified translations default to 0px.
  ...
  # If the axis is unspecified, it defaults to 0 0 1, causing a "2d
  # rotation" in the plane of the screen.
  ...
  # Unspecified scales default to 1.

I believe these defaults should be considered part of the computed
value.  This will make the computed values of 'scale' more reliably
animatable, by avoiding mismatches in the length of the list.  It
might also avoid other problems.

(Whether they should be serialized is another question.  Didn't we
agree to add a new line to propdef tables about serialization, maybe
called Canonical order?)

-David

-- 
𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                          https://www.mozilla.org/   𝄂
             Before I built a wall I'd ask to know
             What I was walling in or walling out,
             And to whom I was like to give offense.
               - Robert Frost, Mending Wall (1914)

Received on Thursday, 24 September 2015 08:16:05 UTC