Prevent counter values from over/underflowing.
Currently we over/underflow if a counter value goes beyond the limits of a 32 bit integer. The spec [1] says we can ignore the increment if it would cause an over/underflow. This patch implements this behaviour. Firefox follows the spec in this. [1] https://drafts.csswg.org/css-lists-3/#valdef-counter-reset-custom-ident-integer Bug: 655473 Change-Id: I6e10b6e4f5f672d723a0ccb69fd309d52d1d1204 Reviewed-on: https://chromium-review.googlesource.com/708105Reviewed-by:Justin Schuh <jschuh@chromium.org> Reviewed-by:
Eric Willigers <ericwilligers@chromium.org> Commit-Queue: Darren Shen <shend@chromium.org> Cr-Commit-Position: refs/heads/master@{#509351}
Showing
Please register or sign in to comment