Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<cubic-bezier-timing-function> abscissas must be in the [0, 1] range #123

Closed
apasov opened this issue Apr 7, 2020 · 1 comment
Closed

Comments

@apasov
Copy link

apasov commented Apr 7, 2020

According to the documentation the syntax is

cubic-bezier(x1, y1, x2, y2)

where:

x1, y1, x2, y2
Are values representing the abscissas, and ordinates of the P1 and P2 points defining the cubic Bézier curve. x1 and x2 must be in the range [0, 1] or the value is invalid.

These cubic Bézier curves definitions are invalid:

/* Abscissas must be in the [0, 1] range or 
   the curve is not a function of time. */
cubic-bezier(2.45, 0.6, 4, 0.1)    

/* Abscissas must be in the [0, 1] range or 
   the curve is not a function of time. */
cubic-bezier(-1.9, 0.3, -0.2, 2.1)

But css-tree treats them as valid:
image
image

Can anything be done about this or it is not in the scope of this package?

@apasov
Copy link
Author

apasov commented Apr 13, 2020

Now on mdn/data the syntax for cubic-bezier-timing-function is

ease | ease-in | ease-out | ease-in-out | cubic-bezier(<number [0,1]>, <number>, <number [0,1]>, <number>)

mdn/data#416

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant