-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/vendor specific transition (#1260)
* Add tests * Check if transition prop is inside vendor spec rule * Filter prefixes for transition + update tests * Remove cache and make logic more clear * Remove process method, update ruleVendorPrefixes * Update logic for old flex prefixes
- Loading branch information
Showing
4 changed files
with
179 additions
and
1 deletion.
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
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
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,55 @@ | ||
input[type=range]::-moz-range-thumb { | ||
transition: color 200ms, transform 200ms; | ||
transform: rotate(10deg); | ||
} | ||
|
||
input[type=range]::-webkit-slider-thumb { | ||
transition: none; | ||
transition-property: all; | ||
} | ||
|
||
button::-moz-submit-invalid { | ||
opacity: 1; | ||
transform: translateX(45px); | ||
transition: opacity 0.5s 2s, transform 0.5s 0.5s; | ||
} | ||
|
||
@supports (transition: opacity 0.5s 2s, transform 0.5s 0.5s) { | ||
button::-moz-submit-invalid { | ||
opacity: 1; | ||
transform: translateX(45px); | ||
transition: opacity 0.5s 2s, transform 0.5s 0.5s; | ||
} | ||
|
||
button { | ||
opacity: 1; | ||
transform: translateX(45px); | ||
transition: opacity 0.5s 2s, transform 0.5s 0.5s; | ||
} | ||
} | ||
|
||
button::-webkit-search-cancel-button { | ||
display: flex; | ||
transition: color 200ms, transform 200ms; | ||
transform: rotate(10deg); | ||
} | ||
|
||
button::-webkit-search-cancel-button { | ||
display: -webkit-box; | ||
display: -webkit-flex; | ||
display: flex; | ||
-webkit-transition: color 200ms, -webkit-transform 200ms; | ||
transition: color 200ms, -webkit-transform 200ms; | ||
transition: color 200ms, transform 200ms; | ||
transition: color 200ms, transform 200ms, -webkit-transform 200ms; | ||
-webkit-transform: rotate(10deg); | ||
transform: rotate(10deg); | ||
} | ||
|
||
.a::-webkit-search-cancel-button { | ||
display: flex; | ||
flex-flow: row; | ||
order: 0; | ||
flex: 0 1 2; | ||
transition: flex 200ms; | ||
} |
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,92 @@ | ||
input[type=range]::-moz-range-thumb { | ||
-moz-transition: color 200ms, transform 200ms, -moz-transform 200ms; | ||
transition: color 200ms, transform 200ms; | ||
transition: color 200ms, transform 200ms, -moz-transform 200ms; | ||
-moz-transform: rotate(10deg); | ||
transform: rotate(10deg); | ||
} | ||
|
||
input[type=range]::-webkit-slider-thumb { | ||
-webkit-transition: none; | ||
transition: none; | ||
-webkit-transition-property: all; | ||
transition-property: all; | ||
} | ||
|
||
button::-moz-submit-invalid { | ||
opacity: 1; | ||
-moz-transform: translateX(45px); | ||
transform: translateX(45px); | ||
-moz-transition: opacity 0.5s 2s, transform 0.5s 0.5s, -moz-transform 0.5s 0.5s; | ||
transition: opacity 0.5s 2s, transform 0.5s 0.5s; | ||
transition: opacity 0.5s 2s, transform 0.5s 0.5s, -moz-transform 0.5s 0.5s; | ||
} | ||
|
||
@supports (transition: opacity 0.5s 2s, transform 0.5s 0.5s) { | ||
button::-moz-submit-invalid { | ||
opacity: 1; | ||
-moz-transform: translateX(45px); | ||
transform: translateX(45px); | ||
-moz-transition: opacity 0.5s 2s, transform 0.5s 0.5s, -moz-transform 0.5s 0.5s; | ||
transition: opacity 0.5s 2s, transform 0.5s 0.5s; | ||
transition: opacity 0.5s 2s, transform 0.5s 0.5s, -moz-transform 0.5s 0.5s; | ||
} | ||
|
||
button { | ||
opacity: 1; | ||
-webkit-transform: translateX(45px); | ||
-moz-transform: translateX(45px); | ||
-o-transform: translateX(45px); | ||
transform: translateX(45px); | ||
-webkit-transition: opacity 0.5s 2s, -webkit-transform 0.5s 0.5s; | ||
transition: opacity 0.5s 2s, -webkit-transform 0.5s 0.5s; | ||
-o-transition: opacity 0.5s 2s, -o-transform 0.5s 0.5s; | ||
-moz-transition: opacity 0.5s 2s, transform 0.5s 0.5s, -moz-transform 0.5s 0.5s; | ||
transition: opacity 0.5s 2s, transform 0.5s 0.5s; | ||
transition: opacity 0.5s 2s, transform 0.5s 0.5s, -webkit-transform 0.5s 0.5s, -moz-transform 0.5s 0.5s, -o-transform 0.5s 0.5s; | ||
} | ||
} | ||
|
||
button::-webkit-search-cancel-button { | ||
display: -webkit-box; | ||
display: -webkit-flex; | ||
display: flex; | ||
-webkit-transition: color 200ms, -webkit-transform 200ms; | ||
transition: color 200ms, -webkit-transform 200ms; | ||
transition: color 200ms, transform 200ms; | ||
transition: color 200ms, transform 200ms, -webkit-transform 200ms; | ||
-webkit-transform: rotate(10deg); | ||
transform: rotate(10deg); | ||
} | ||
|
||
button::-webkit-search-cancel-button { | ||
display: -webkit-box; | ||
display: -webkit-flex; | ||
display: flex; | ||
-webkit-transition: color 200ms, -webkit-transform 200ms; | ||
transition: color 200ms, -webkit-transform 200ms; | ||
transition: color 200ms, transform 200ms; | ||
transition: color 200ms, transform 200ms, -webkit-transform 200ms; | ||
-webkit-transform: rotate(10deg); | ||
transform: rotate(10deg); | ||
} | ||
|
||
.a::-webkit-search-cancel-button { | ||
display: -webkit-box; | ||
display: -webkit-flex; | ||
display: flex; | ||
-webkit-box-orient: horizontal; | ||
-webkit-box-direction: normal; | ||
-webkit-flex-flow: row; | ||
flex-flow: row; | ||
-webkit-box-ordinal-group: 1; | ||
-webkit-order: 0; | ||
order: 0; | ||
-webkit-box-flex: 0; | ||
-webkit-flex: 0 1 2; | ||
flex: 0 1 2; | ||
-webkit-transition: -webkit-box-flex 200ms, -webkit-flex 200ms; | ||
transition: -webkit-box-flex 200ms, -webkit-flex 200ms; | ||
transition: flex 200ms; | ||
transition: flex 200ms, -webkit-box-flex 200ms, -webkit-flex 200ms; | ||
} |