You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.3 KiB

4 years ago
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. const block = 'block';
  6. const flex = 'flex';
  7. const flow = 'flow';
  8. const flowRoot = 'flow-root';
  9. const grid = 'grid';
  10. const inline = 'inline';
  11. const inlineBlock = 'inline-block';
  12. const inlineFlex = 'inline-flex';
  13. const inlineGrid = 'inline-grid';
  14. const inlineTable = 'inline-table';
  15. const listItem = 'list-item';
  16. const ruby = 'ruby';
  17. const rubyBase = 'ruby-base';
  18. const rubyText = 'ruby-text';
  19. const runIn = 'run-in';
  20. const table = 'table';
  21. const tableCell = 'table-cell';
  22. const tableCaption = 'table-caption';
  23. /**
  24. * Specification: https://drafts.csswg.org/css-display/#the-display-properties
  25. */
  26. exports.default = [[block, [block, flow]], [flowRoot, [block, flowRoot]], [inline, [inline, flow]], [inlineBlock, [inline, flowRoot]], [runIn, [runIn, flow]], [listItem, [listItem, block, flow]], [inline + ' ' + listItem, [inline, flow, listItem]], [flex, [block, flex]], [inlineFlex, [inline, flex]], [grid, [block, grid]], [inlineGrid, [inline, grid]], [ruby, [inline, ruby]],
  27. // `block ruby` is same
  28. [table, [block, table]], [inlineTable, [inline, table]], [tableCell, [tableCell, flow]], [tableCaption, [tableCaption, flow]], [rubyBase, [rubyBase, flow]], [rubyText, [rubyText, flow]]];
  29. module.exports = exports['default'];