perspective-origin-001 |
= |
|
perspective-origin - 0px center('center' computes to '50%' in vertical position)
- The 'perspective-origin' property set 'center' computes to 50% for the vertical position.
|
perspective-origin-002 |
= |
|
perspective-origin - center 0px('center' computes to '50%' in horizontal position)
- The 'perspective-origin' property set 'center' computes to 50% for the horizontal position.
|
perspective-origin-003 |
= |
|
perspective-origin - 50% bottom('bottom' computes to '100%' in vertical position)
- The 'perspective-origin' property set 'bottom' computes to 100% for the vertical position.
|
perspective-origin-004 |
= |
|
perspective-origin - 50% top('top' computes to '0%' in vertical position)
- The 'perspective-origin' property set 'top' computes to 0% for the vertical position.
|
perspective-origin-005 |
= |
|
perspective-origin - left 50%('left' computes to '0%' in horizontal position)
- The 'perspective-origin' property set 'left' computes to 0% for the horizontal position.
|
perspective-origin-006 |
= |
|
perspective-origin - right 50%('right' computes to '100%' in horizontal position)
- The 'perspective-origin' property set 'right' computes to 100% for the horizontal position.
|
perspective-origin-x |
= |
|
perspective property
- Asserts that origin 'x1' visually moves the objects '-x1*d/(d-1)'
|
perspective-origin-xy |
= |
|
perspective property
- Asserts that origin '<x,y>' visually moves the objects '<-x,-y>*d/(d-1)'
|
transform3d-perspective-009 |
= ≠ |
|
'perspective-origin' and translate()
- This tests that 'perspective' and 'perspective-origin' have the same effect as an appropriately calculated sequence of translate() and perspective(). The reference file's body has a width of 400px and a height of 100px, so the perspective-origin should be (200, 50). The transform-origin is 'top', which works out to (50, 0). Thus we translate by (150, 50) to get the right origin.
|
transform3d-perspective-origin-001 |
= ≠ ≠ ≠ |
|
perspective-origin
- This tests that 'perspective-origin: 0 0' is the same as 'perspective-origin: top left', different from no 'perspective-origin', and different from no perspective or no transform.
|