DescriptionDon't allow minus width for positioned objects
If left and right is not auto and left+right is bigger than the containing block width, the width of positioned element can be calculated as negative value.
But, negative values for width are illegal (by CSS2.1 10.2)
If the width is negative, the ClientRect and the boundingClientRect also have incorrect values.
TEST=fast/css/absolute-position-with-negative-width.html
BUG=383936
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182292
Patch Set 1 #Patch Set 2 : Add a test #
Total comments: 12
Patch Set 3 : Simplify the test & Move the code to few lines up #
Total comments: 2
Patch Set 4 : fix nit #
Messages
Total messages: 13 (3 generated)
|