atKeywords.js 940 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. 'styleset',
  45. 'stylistic',
  46. 'supports',
  47. 'swash',
  48. 'viewport',
  49. ]);
  50. module.exports = {
  51. atKeywords,
  52. };