-
Notifications
You must be signed in to change notification settings - Fork 505
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
8311895: CSS Transitions #870
Conversation
👋 Welcome back mstrauss! A progress list of the required criteria for merging this PR into |
@mstr2 this pull request can not be integrated into git checkout feature/css-transitions
git fetch https://git.openjdk.org/jfx master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
@mstr2 This pull request has been inactive for more than 8 weeks and will be automatically closed if another 8 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
Hi @shaoerkuai, thanks for making a comment in an OpenJDK project! All comments and discussions in the OpenJDK Community must be made available under the OpenJDK Terms of Use. If you already are an OpenJDK Author, Committer or Reviewer, please click here to open a new issue so that we can record that fact. Please Use "Add GitHub user shaoerkuai for the summary. If you are not an OpenJDK Author, Committer or Reviewer, simply check the box below to accept the OpenJDK Terms of Use for your comments.
Your comment will be automatically restored once you have accepted the OpenJDK Terms of Use. |
9197fe1
to
e34a549
Compare
Any of the following actions will cancel a running transition:
In effect, transitions are only active when "left alone", any programmatic interaction will cancel them. |
This is what I would expect, so looks good. Where is this mentioned to the user? |
Good question. Since we don't have any suitable API elements for javadocs, I've added some documentation to the CSS reference. |
modules/javafx.graphics/src/main/docs/javafx/scene/doc-files/cssref.html
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed only the API and some of the internal code. Didn't test it. Looks good.
I think the CSR needs updating. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good from my side as well, I didn't notice any further code issues.
It looks like this is getting close to being ready, and would be a good feature to get into JavaFX 23. I'll take a look at the specification changes in the PR, and review the CSR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docs look good. I left one comment on the doc images and one question on the cssref.html changes. In parallel, I'll look at the CSR.
modules/javafx.graphics/src/main/java/javafx/animation/Interpolator.java
Show resolved
Hide resolved
modules/javafx.graphics/src/main/docs/javafx/scene/doc-files/cssref.html
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've finished testing and reviewing the code. All looks good.
/integrate |
Going to push as commit 762f590.
Your commit was automatically rebased without conflicts. |
Implementation of CSS Transitions.
Future enhancements
CSS transition support for backgrounds and borders: #1471
Limitations
This implementation supports both shorthand and longhand notations for the
transition
property. However, due to limitations of JavaFX CSS, mixing both notations doesn't work:This issue should be addressed in a follow-up enhancement.
Progress
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/870/head:pull/870
$ git checkout pull/870
Update a local copy of the PR:
$ git checkout pull/870
$ git pull https://git.openjdk.org/jfx.git pull/870/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 870
View PR using the GUI difftool:
$ git pr show -t 870
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/870.diff
Webrev
Link to Webrev Comment