| Summary: | Prevent counter values from over/underflowing | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | ntim, vitor.roriz, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://github.com/web-platform-tests/wpt/pull/40884 | ||
|
Description
Ahmad Saleem
2023-06-30 07:23:13 PDT
I'll have a look. Thanks for reporting it. We need to clarify if it should be clamped to the max/min value of the range or if increment should be ignored in this cases. FF and Chrome do the latter, but the spec seems to suggest the former. As Elika suggested, I think we can aim for compatibility here. I.E: making WebKit also ignore the counter-increment if it would overflow, but making counter-reset clamp to the valid range if it would overflow. Pull request: https://github.com/WebKit/WebKit/pull/15549 Committed 266817@main (a3717f099f77): <https://commits.webkit.org/266817@main> Reviewed commits have been landed. Closing PR #15549 and removing active labels. |