css3 - css transform: translate() % always refer to the size of bounding box? -


i'm confused specifications says. let me clarify understanding.

specifications

https://www.w3.org/tr/css-transforms-1/#propdef-transform

percentages: refer size of bounding box

https://drafts.csswg.org/css-transforms-2/#propdef-translate

percentages: relative width of containing block (for first value) or height (for second value)

my understanding

css-transforms-1

  1. there transform property.
    transform property refer bounding box.
    so, translate function of transform property refer bounding box.

  2. there not translate property.

css-transforms-2

  1. there transform property.
    transform property refer size of bounding box.
    so, translate function of transform property refer bounding box.

  2. there translate property.
    translate property refer containing box.

so, think % of transform: translate() refer bounding box,
right?

your second link draft used discussion. far know hasn't made final css standards or implementations.

so guess right, percentages related element's bounding box, not containing block.


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -