MCPcopy
hub / github.com/postcss/autoprefixer / insideGrid

Function insideGrid

lib/processor.js:38–47  ·  view source on GitHub ↗
(decl)

Source from the content-addressed store, hash-verified

36}
37
38function insideGrid(decl) {
39 return decl.parent.nodes.some(node => {
40 if (node.type !== 'decl') return false
41 let displayGrid =
42 node.prop === 'display' && /(inline-)?grid/.test(node.value)
43 let gridTemplate = node.prop.startsWith('grid-template')
44 let gridGap = /^grid-([A-z]+-)?gap/.test(node.prop)
45 return displayGrid || gridTemplate || gridGap
46 })
47}
48
49class Processor {
50 constructor(prefixes) {

Callers 1

addMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…