atKeywords.js 960 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. 'use strict';
  2. const uniteSets = require('../utils/uniteSets.js');
  3. // https://www.w3.org/TR/css-page-3/#syntax-page-selector
  4. const pageMarginAtKeywords = new Set([
  5. 'top-left-corner',
  6. 'top-left',
  7. 'top-center',
  8. 'top-right',
  9. 'top-right-corner',
  10. 'bottom-left-corner',
  11. 'bottom-left',
  12. 'bottom-center',
  13. 'bottom-right',
  14. 'bottom-right-corner',
  15. 'left-top',
  16. 'left-middle',
  17. 'left-bottom',
  18. 'right-top',
  19. 'right-middle',
  20. 'right-bottom',
  21. ]);
  22. // https://developer.mozilla.org/en/docs/Web/CSS/At-rule
  23. const atKeywords = uniteSets(pageMarginAtKeywords, [
  24. 'annotation',
  25. 'apply',
  26. 'character-variant',
  27. 'charset',
  28. 'container',
  29. 'counter-style',
  30. 'custom-media',
  31. 'custom-selector',
  32. 'document',
  33. 'font-face',
  34. 'font-feature-values',
  35. 'import',
  36. 'keyframes',
  37. 'layer',
  38. 'media',
  39. 'namespace',
  40. 'nest',
  41. 'ornaments',
  42. 'page',
  43. 'property',
  44. 'scroll-timeline',
  45. 'styleset',
  46. 'stylistic',
  47. 'supports',
  48. 'swash',
  49. 'viewport',
  50. ]);
  51. module.exports = {
  52. atKeywords,
  53. };