How to use the mdn-data/css/properties.json.visibility function in mdn-data

To help you get started, we’ve selected a few mdn-data examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github frenic / csstype / src / data / svg.ts View on Github external
'text-anchor': {
    syntax: 'start | middle | end',
    initial: 'start',
    inherited: true,
    media: 'visual',
  },
  'text-decoration': styleProperties['text-decoration'],
  'text-rendering': styleProperties['text-rendering'],
  'unicode-bidi': styleProperties['unicode-bidi'],
  'vector-effect': {
    syntax: 'non-scaling-stroke | none',
    initial: 'none',
    inherited: false,
    media: 'visual',
  },
  visibility: styleProperties.visibility,
  'word-spacing': styleProperties['word-spacing'],
  'white-space': styleProperties['white-space'],
  'writing-mode': styleProperties['writing-mode'],
};

export const syntaxes: MDN.Syntaxes = {
  paint: {
    syntax: 'none | child | child() |  |  [ none |  ]? | context-fill | context-stroke',
  },
  dasharray: {
    syntax: '[  |  |  ]#',
  },
};