-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
View transitions: enable pseudo-elements with class and no wildcard
Bug: 331620773 Change-Id: I545dbad408e4eb65793b9a36d123f288910989a7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5401765 Reviewed-by: Vladimir Levin <[email protected]> Commit-Queue: Noam Rosenthal <[email protected]> Cr-Commit-Position: refs/heads/main@{#1281411}
- Loading branch information
1 parent
5608c88
commit e02118b
Showing
2 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
css/css-view-transitions/pseudo-with-classes-match-wildcard-no-star.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!DOCTYPE html> | ||
<html class=reftest-wait> | ||
<title>View transition classes: selector should match with wildcard</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-transitions-2/"> | ||
<link rel="author" href="mailto:[email protected]"> | ||
<link rel="match" href="pseudo-with-classes-ref.html"> | ||
<script src="/common/rendering-utils.js"></script> | ||
<script src="/common/reftest-wait.js"></script> | ||
|
||
<style> | ||
div { | ||
width: 100px; | ||
height: 100px; | ||
position: absolute; | ||
} | ||
|
||
#target { | ||
background: green; | ||
view-transition-name: target; | ||
view-transition-class: cls; | ||
} | ||
|
||
::view-transition-group(*) { | ||
animation-duration: 1s; | ||
} | ||
|
||
::view-transition-new(.cls), | ||
::view-transition-old(.cls) { | ||
left: 100px; | ||
} | ||
</style> | ||
<div id=target></div> | ||
|
||
<script> | ||
failIfNot(document.startViewTransition, "Missing document.startViewTransition"); | ||
|
||
window.addEventListener("load", () => { | ||
document.startViewTransition().ready.then(takeScreenshot); | ||
}); | ||
</script> |