Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Clipping breaks animation of absolutely positioned items #5030

Closed
mjtko opened this issue Nov 19, 2013 · 2 comments
Closed

Clipping breaks animation of absolutely positioned items #5030

mjtko opened this issue Nov 19, 2013 · 2 comments

Comments

@mjtko
Copy link
Contributor

mjtko commented Nov 19, 2013

With the introduction of b89584d, animating absolutely positioned elements causes them to be clipped, losing shadows and/or any overflowed elements.

Plunkr: http://plnkr.co/edit/BjRzwlZXraWpBTXR191G?p=preview

While this can be worked around by explicitly specifying 'clip: auto' on the element (as shown in the plunkr) this behaviour is suprising. Is there something that can be done to guard against this behaviour?

/cc @matsko

@matsko
Copy link
Contributor

matsko commented Nov 19, 2013

The clip property is there to gaurantee that the transition animation always closes (since it results in a nasty bug when it doesn't). I am aware of the box-shadow issue and I have a commit that replaces clip with border-spacing which is only visible when border-collapse is set to separate (which would mean that you're using a table or something with display: table).

This should be in today or tomorrow via this PR:
#5015

@mjtko
Copy link
Contributor Author

mjtko commented Nov 19, 2013

Great, thanks!

@matsko matsko closed this as completed in 1d50663 Nov 21, 2013
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this issue Jan 27, 2014
…ng styles

The clip property seems to remove the box-shadow property when an absolute
positioned animation is ongoing. This fix changes the property to be border-spacing
which is also very underused. The border-spacing CSS property is only visible
when border-collapse is set to separate.

Closes angular#4902
Closes angular#5030
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this issue Jan 27, 2014
…ng styles

The clip property seems to remove the box-shadow property when an absolute
positioned animation is ongoing. This fix changes the property to be border-spacing
which is also very underused. The border-spacing CSS property is only visible
when border-collapse is set to separate.

Closes angular#4902
Closes angular#5030
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants