Skip to content

Add feature for individual transform properties - #565

Merged
foolip merged 2 commits into
mainfrom
individual-transforms
Feb 15, 2024
Merged

foolip merged 2 commits into
mainfrom
individual-transforms

Conversation

@foolip

@foolip foolip commented Feb 1, 2024

Copy link
Copy Markdown
Collaborator

The shortest plausible name for this is "translate, scale, and rotate",
but these are concepts that appear also in DOMMatrix and 2D canvas, so
to disambigutate include "CSS" as a prefix. Also include "properties" as
a suffix to make it clear that it's no about the ability to
translate/scale/rotate, which the transform property has, but the
indivudal properties.

The shortest plausible name for this is "translate, scale, and rotate",
but these are concepts that appear also in DOMMatrix and 2D canvas, so
to disambigutate include "CSS" as a prefix. Also include "properties" as
a suffix to make it clear that it's no about the ability to
translate/scale/rotate, which the `transform` property has, but the
indivudal properties.
@foolip foolip mentioned this pull request Feb 1, 2024
@@ -0,0 +1,10 @@
name: CSS translate, scale, and rotate properties

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These seem to be pretty well documented as "individual transform properties". How about using this as the name?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, that's a common naming of these that I've seen. My only concern is that if you know about the scale property, you'd have no way of finding it in a list of feature names where it's called "individual transform properties".

Ultimately I think this is an argument for both a structured/normalized name which would probably be "CSS translate, scale, and rotate properties" in this case, and a description which can spell it out.

@ddbeck what name do you think we should pick here?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is well documented as "individual transform properties" then I think that wins. If we need the disambiguation or search-ability, perhaps we could append it in parentheses: "Individual transform properties (translate, scale, and rotate)"

But maybe we ought to get on with adding a description field, just for our own auto documenting practice.

name: Individual transform properties
description: Transform elements with separate `translate`, `rotate`, and `scale` CSS properties.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, I've updated with your suggestion verbatim.

@foolip
foolip merged commit d2c8d79 into main Feb 15, 2024
@foolip
foolip deleted the individual-transforms branch February 15, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants