amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Disallowing changing margins to negative values

Open tlong2 opened this issue 9 years ago • 5 comments

attemptChangeSize allows new margins to be specified: https://github.com/ampproject/amphtml/blob/master/src/service/resources-impl.js#L765.

We should disallow margins being changed to negative values as this can cause element overlap and may also disrupt the logic that tries to ensure there is no reflow on the screen.

tlong2 avatar Mar 22 '17 23:03 tlong2

A follow-up to #8250.

/to @tlong2 /cc @zhouyx

dreamofabear avatar Mar 23 '17 19:03 dreamofabear

This issue hasn't been updated in awhile. @tlong2 Do you have any updates?

ampprojectbot avatar Oct 19 '17 23:10 ampprojectbot

This issue hasn't been updated in awhile. @tlong2 Do you have any updates?

ampprojectbot avatar Jan 22 '18 23:01 ampprojectbot

This issue hasn't been updated in awhile. @tlong2 Do you have any updates?

ampprojectbot avatar Jun 05 '18 16:06 ampprojectbot

This issue hasn't been updated in awhile. @tlong2 Do you have any updates?

ampprojectbot avatar Sep 11 '18 15:09 ampprojectbot