background-image.js 1.3 KB

123456789101112131415161718192021222324252627
  1. module.exports = [
  2. {
  3. 'should': 'Should process string map in url (processUrls:true)',
  4. 'expected': 'div { background-image: url(images/rtl.png), url(images/right.png);}',
  5. 'input': 'div { background-image: url(images/ltr.png), url(images/left.png);}',
  6. 'reversable': true,
  7. 'options': { 'processUrls': true }
  8. },
  9. {
  10. 'should': 'Should not negate color value for linear gradient',
  11. 'expected': 'div { background-image: linear-gradient(rgba(255, 255, 255, 0.3) 0%, #ff8 100%);}',
  12. 'input': 'div { background-image: linear-gradient(rgba(255, 255, 255, 0.3) 0%, #ff8 100%);}',
  13. 'reversable': true
  14. },
  15. {
  16. 'should': 'Should not negate color value for linear gradient with calc',
  17. 'expected': 'div { background-image: linear-gradient(rgba(255, 255, calc((125 * 2) + 5), 0.3) 0%, #ff8 100%);}',
  18. 'input': 'div { background-image: linear-gradient(rgba(255, 255, calc((125 * 2) + 5), 0.3) 0%, #ff8 100%);}',
  19. 'reversable': true
  20. },
  21. {
  22. 'should': 'Should negate angle value for linear gradient',
  23. 'expected': 'div { background-image: linear-gradient(13.25deg, rgba(255, 255, 255, .15) 25%, transparent 25%);}',
  24. 'input': 'div { background-image: linear-gradient(-13.25deg, rgba(255, 255, 255, .15) 25%, transparent 25%);}',
  25. 'reversable': true
  26. }
  27. ]