case.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. // Convention in this test file:
  2. // - The case should be preserved for things prefixed with "Keep".
  3. // - The case should always be preserved for element names and attribute names
  4. // in selectors, as well as function names and property keywords.
  5. // - Other things should mostly be lowercase.
  6. @IMPORT Keep;
  7. HTML#KeepId.KeepClass,
  8. a[HREF=KeepAttrValue]:HOVER::FIRST-letter,
  9. svg[viewBox] linearGradient,
  10. :Not(:NTH-child(2N+1)) {
  11. COLOR: #AAbbCC;
  12. BACKGROUND-image: URL("KeepString");
  13. Margin: 5PX .2E10Em;
  14. --Keep-custom-Prop: red;
  15. background: Var(--Keep-custom-Prop);
  16. animation-name: KeepAnimationName;
  17. important: something !IMPORTANT;
  18. font-family: INITIAL;
  19. padding: UNSET;
  20. border: INHERIT;
  21. all: REVERT;
  22. -WEBKIT-USER-SELECT: none;
  23. -MOZ-USER-SELECT: none;
  24. -MS-USER-SELECT: none;
  25. USER-SELECT: none;
  26. }
  27. @keyframes KeepAnimationName {
  28. FROM {
  29. prop: val;
  30. }
  31. #{$KeepInterpolationVar},
  32. #{$Keep + 15PX + Keep15PX + '15PX' + "15PX"},
  33. #{$Keep + $Keep15PX} {
  34. prop: val;
  35. }
  36. TO {
  37. prop: val;
  38. }
  39. }
  40. @custom-media --KeepCustomMedia screen and (width >= 768px);
  41. @media (--KeepCustomMedia) {}
  42. @function KeepFuncName() {
  43. @return 12;
  44. }
  45. %KeepPlaceholderSelector {
  46. prop: val;
  47. }
  48. $KeepTopLevelVar: val;
  49. @KeepLessVar: val;
  50. @mixin KeepMixinName($Keep: 15IN, $Keep: $Keep15IN, $Keep: Keep-1E-2Em) {
  51. $KeepVar: KeepFuncName();
  52. #{$KeepInterpolationVar}: val;
  53. #{$Keep + 15PX}: val;
  54. #{$Keep + $Keep15PX}: val;
  55. @KeepLessVar: val;
  56. @extend %KeepPlaceholderSelector;
  57. #{$Keep}[#{$Keep}][#{Keep}^=#{Keep-1A}]:#{$Keep} {
  58. prop: val;
  59. }
  60. &Keep & Element {
  61. prop: val;
  62. }
  63. BACKGROUND: {
  64. COLOR: RED;
  65. }
  66. BACKGROUND: Keep 15PX Keep15PX {
  67. COLOR: RED;
  68. }
  69. #{$Keep + 15PX + Keep15PX + '15PX' + "15PX"}: {
  70. COLOR: RED;
  71. }
  72. }
  73. @mixin Keep($Keep: $Keep15IN, $Keep: Keepå1E1) {}
  74. @MEDIA (MIN-WIDTH: 700PX) {
  75. @include Keep;
  76. @include Keep(.12e+01cH);
  77. @include Keep($Keep12E01cH);
  78. }
  79. @MEDIA (#{$Keep}: #{$Keep}) {}
  80. @KEYFRAMES identifier {
  81. FROM {
  82. margin-top: 50px;
  83. }
  84. 50% {
  85. margin-top: 150px;
  86. }
  87. TO {
  88. margin-top: 100px;
  89. }
  90. }
  91. @-WEBKIT-KEYFRAMES float-up {
  92. FROM {
  93. margin-top: 50px;
  94. }
  95. 50% {
  96. margin-top: 150px;
  97. }
  98. TO {
  99. margin-top: 100px;
  100. }
  101. }
  102. .foo {
  103. color: hsl(0.75TURN, 60%, 70%);
  104. }
  105. p:FIRST-CHILD {
  106. color: lime;
  107. background-color: black;
  108. padding: 5px;
  109. }
  110. a::AFTER {
  111. content: "→";
  112. }
  113. a:AFTER {
  114. content: "→";
  115. }
  116. ::-WEBKIT-PROGRESS-BAR {
  117. background-color: orange;
  118. }
  119. TABLE {}
  120. .foo { &-KeepSelector {} &-KeepSelector & .KeepClassSelector {} &-100\.200 {} }