wishthis/node_modules/rtlcss/test/data/background-image.js
2022-05-29 11:24:36 +02:00

27 lines
1.3 KiB
JavaScript

module.exports = [
{
'should': 'Should process string map in url (processUrls:true)',
'expected': 'div { background-image: url(images/rtl.png), url(images/right.png);}',
'input': 'div { background-image: url(images/ltr.png), url(images/left.png);}',
'reversable': true,
'options': { 'processUrls': true }
},
{
'should': 'Should not negate color value for linear gradient',
'expected': 'div { background-image: linear-gradient(rgba(255, 255, 255, 0.3) 0%, #ff8 100%);}',
'input': 'div { background-image: linear-gradient(rgba(255, 255, 255, 0.3) 0%, #ff8 100%);}',
'reversable': true
},
{
'should': 'Should not negate color value for linear gradient with calc',
'expected': 'div { background-image: linear-gradient(rgba(255, 255, calc((125 * 2) + 5), 0.3) 0%, #ff8 100%);}',
'input': 'div { background-image: linear-gradient(rgba(255, 255, calc((125 * 2) + 5), 0.3) 0%, #ff8 100%);}',
'reversable': true
},
{
'should': 'Should negate angle value for linear gradient',
'expected': 'div { background-image: linear-gradient(13.25deg, rgba(255, 255, 255, .15) 25%, transparent 25%);}',
'input': 'div { background-image: linear-gradient(-13.25deg, rgba(255, 255, 255, .15) 25%, transparent 25%);}',
'reversable': true
}
]