import-reference.css 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. input[type="text"].class#id[attr=32]:not(1) {
  2. color: white;
  3. }
  4. div#id.class[a=1][b=2].class:not(1) {
  5. color: white;
  6. }
  7. @media print {
  8. .class {
  9. color: blue;
  10. }
  11. .class .sub {
  12. width: 42;
  13. }
  14. }
  15. .visible {
  16. color: red;
  17. }
  18. .visible .c {
  19. color: green;
  20. }
  21. .visible {
  22. color: green;
  23. }
  24. .visible:hover {
  25. color: green;
  26. }
  27. .only-with-visible + .visible,
  28. .visible + .only-with-visible,
  29. .visible + .visible {
  30. color: green;
  31. }
  32. .only-with-visible + .visible .sub,
  33. .visible + .only-with-visible .sub,
  34. .visible + .visible .sub {
  35. color: green;
  36. }
  37. @supports (something: else) {
  38. .class {
  39. something: else;
  40. }
  41. .nestedToo .class {
  42. something: else;
  43. }
  44. }
  45. .b {
  46. color: red;
  47. color: green;
  48. }
  49. .b .c {
  50. color: green;
  51. }
  52. .b:hover {
  53. color: green;
  54. }
  55. .b + .b {
  56. color: green;
  57. }
  58. .b + .b .sub {
  59. color: green;
  60. }
  61. .y {
  62. pulled-in: yes /* inline comment survives */;
  63. }
  64. /* comment pulled in */
  65. .visible {
  66. extend: test;
  67. }
  68. .test-mediaq-import {
  69. color: green;
  70. test: 340px;
  71. }
  72. @media (max-size: 450px) {
  73. .test-mediaq-import {
  74. color: red;
  75. }
  76. }
  77. .test {
  78. color: red;
  79. }
  80. .test:first-child {
  81. color: blue;
  82. }
  83. @keyframes some-name {
  84. property: value;
  85. }
  86. @supports (animation-name: test) {
  87. @keyframes some-name {
  88. property: value;
  89. }
  90. .selector {
  91. color: red;
  92. }
  93. }
  94. div {
  95. this isn't very valid CSS.
  96. }
  97. this isn't very valid CSS.