summaryrefslogtreecommitdiffstats
path: root/php-cssjanus-data.json
diff options
context:
space:
mode:
Diffstat (limited to 'php-cssjanus-data.json')
-rw-r--r--php-cssjanus-data.json85
1 files changed, 77 insertions, 8 deletions
diff --git a/php-cssjanus-data.json b/php-cssjanus-data.json
index bede15f..21f7086 100644
--- a/php-cssjanus-data.json
+++ b/php-cssjanus-data.json
@@ -395,6 +395,51 @@
]
]
},
+ "flip transform translate x-axis": {
+ "cases": [
+ [
+ ".foo { transform: translate( 30px ); }",
+ ".foo { transform: translate( -30px ); }"
+ ],
+ [
+ ".foo { transform: translate( 30% ); }",
+ ".foo { transform: translate( -30% ); }"
+ ],
+ [
+ ".foo { transform: translate( 30%, 20% ); }",
+ ".foo { transform: translate( -30%, 20% ); }"
+ ],
+ [
+ ".foo { transform: translate( 30%, 20%, 10% ); }",
+ ".foo { transform: translate( -30%, 20%, 10% ); }"
+ ],
+ [
+ ".foo { transform: translate( 30%, 20%, 10%, 0% ); }"
+ ],
+ [
+ ".foo { transform: translateY( 30px ) rotate( 20deg ) translateX( 10px ); }",
+ ".foo { transform: translateY( 30px ) rotate( 20deg ) translateX( -10px ); }"
+ ],
+ [
+ ".foo { transform: translateX( 30px ) rotate( 20deg ) translateY( 10px ); }",
+ ".foo { transform: translateX( -30px ) rotate( 20deg ) translateY( 10px ); }"
+ ],
+ [
+ ".foo { transform: translateX( 30px ); }",
+ ".foo { transform: translateX( -30px ); }"
+ ],
+ [
+ ".foo { other-property: translateX( 30px ); }"
+ ],
+ [
+ ".foo { -webkit-transform: translateX( 30px ); }",
+ ".foo { -webkit-transform: translateX( -30px ); }"
+ ],
+ [
+ ".foo { transform: translateY( 30px ); }"
+ ]
+ ]
+ },
"flip background-position keywords": {
"cases": [
[
@@ -538,10 +583,10 @@
]
]
},
- "do not flip URLs when flags are off": {
- "settings": {
- "swapLtrRtlInUrl": false,
- "swapLeftRightInUrl": false
+ "do not flip URLs when url transforms are off": {
+ "options": {
+ "transformDirInUrl": false,
+ "transformEdgeInUrl": false
},
"cases": [
[
@@ -579,10 +624,10 @@
]
]
},
- "flip URLs when flags are on": {
- "settings": {
- "swapLtrRtlInUrl": true,
- "swapLeftRightInUrl": true
+ "flip URLs when url transforms are on": {
+ "options": {
+ "transformDirInUrl": true,
+ "transformEdgeInUrl": true
},
"cases": [
[
@@ -630,6 +675,30 @@
]
]
},
+ "do not flip URLs (back-compat boolean argument)": {
+ "args": [
+ false,
+ false
+ ],
+ "cases": [
+ [
+ "background: url(/foo/bar-ltr_left.png);right:10px; direction: ltr",
+ "background: url(/foo/bar-ltr_left.png);left:10px; direction: rtl"
+ ]
+ ]
+ },
+ "flip URLs (back-compat boolean argument)": {
+ "args": [
+ true,
+ true
+ ],
+ "cases": [
+ [
+ "background: url(/foo/bar-ltr_left.png);right:10px; direction: ltr",
+ "background: url(/foo/bar-rtl_right.png);left:10px; direction: rtl"
+ ]
+ ]
+ },
"leave class names alone": {
"cases": [
[