This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15678 - Percentages should be disallowed in translate Z-components by the grammar, not just prose
Summary: Percentages should be disallowed in translate Z-components by the grammar, no...
Status: CLOSED FIXED
Alias: None
Product: CSS
Classification: Unclassified
Component: Transforms (show other bugs)
Version: unspecified
Hardware: All All
: P2 minor
Target Milestone: ---
Assignee: Dirk Schulze
QA Contact: This bug has no owner yet - up for the taking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-23 17:42 UTC by Aryeh Gregor
Modified: 2012-02-10 16:40 UTC (History)
5 users (show)

See Also:


Attachments

Description Aryeh Gregor 2012-01-23 17:42:17 UTC
"""
translate3d(<translation-value>, <translation-value>, <translation-value>)
specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively. Note that <percentage> values are not allowed in the tz translation-value, and if present will cause the propery value to be invalid.

...

translateZ(<translation-value>)
specifies a translation by the given amount in the Z direction. Note that <percentage> values are not allowed in the translateZ translation-value, and if present will cause the propery value to be invalid.
"""
http://dev.w3.org/csswg/css3-3d-transforms/#transform-functions

It would be simpler if this just read

"""
translate3d(<translation-value>, <translation-value>, <length>)
specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third parameters respectively.

...

translateZ(<length>)
specifies a translation by the given amount in the Z direction.
"""

Currently it says <translation-value>, but then says in the prose that percentages are disallowed.  <translation-value> is just <length> or <percentage> anyway, so why not simplify and just say it has to be <length> with no extra prose?
Comment 1 Dirk Schulze 2012-02-10 04:07:32 UTC
I'll fix that.
Comment 2 Dirk Schulze 2012-02-10 16:29:59 UTC
(In reply to comment #1)
> I'll fix that.

I fixed it as you suggested with commit 2012/02/10.
Comment 3 Aryeh Gregor 2012-02-10 16:40:46 UTC
Looks good to me.  Thanks!