Skip to content

Conversation

@MUSKANNISHAD
Copy link
Contributor

@MUSKANNISHAD MUSKANNISHAD commented Jan 3, 2026

This PR removes an overly strong “if and only if” claim in the cubic-bezier documentation.

The CSS specification does not guarantee this condition, so the wording has been softened to avoid a mathematically incorrect statement.

#42526

Removes an overly strong “if and only if” claim that is not supported by the CSS specification.
@MUSKANNISHAD MUSKANNISHAD requested a review from a team as a code owner January 3, 2026 16:11
@MUSKANNISHAD MUSKANNISHAD requested review from estelle and removed request for a team January 3, 2026 16:11
@github-actions github-actions bot added Content:CSS Cascading Style Sheets docs size/xs [PR only] 0-5 LoC changed labels Jan 3, 2026
Not all cubic Bézier curves are suitable as easing functions because not all are [mathematical functions](https://en.wikipedia.org/wiki/Function_%28mathematics%29); i.e., curves that for a given x-axis coordinate have zero or one value. With P0 and P3 fixed as defined by CSS, a cubic Bézier curve is a function, and is therefore valid, if and only if the x-axis coordinates of P1 and P2 are both in the `[0, 1]` range.
Not all cubic Bézier curves are suitable as easing functions because not all are [mathematical functions](https://en.wikipedia.org/wiki/Function_%28mathematics%29); i.e., curves that for a given x-axis coordinate have zero or one value. With P0 and P3 fixed as defined by CSS, a cubic Bézier curve is a function, and is therefore generally valid when the x-axis coordinates of P1 and P2 are both in the [0, 1] range.


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[mdn-linter] reported by reviewdog 🐶

Suggested change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:CSS Cascading Style Sheets docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant