Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. /* Testing empty values */
  2.  
  3. .test:before { content: attr(class); }
  4.  
  5. .test {
  6. border: var(--bar) solid;
  7. }
  8.  
  9. .test_valid {
  10. --bar: ;
  11. }
  12.  
  13. .test_invalid {
  14. --bar:;
  15. }
  16.  
  17. .test_defined {
  18. --bar: 10px;
  19. }
  20.  
  21. .test_fallback_valid {
  22. --bar: var(--foo, )
  23. }
  24.  
  25. .test_fallback_invalid {
  26. --bar: var(--foo,)
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement