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

Method disabledValue

lib/processor.js:463–479  ·  view source on GitHub ↗

* Check for grid/flexbox options.

(node, result)

Source from the content-addressed store, hash-verified

461 * Check for grid/flexbox options.
462 */
463 disabledValue(node, result) {
464 if (this.gridStatus(node, result) === false && node.type === 'decl') {
465 if (node.prop === 'display' && node.value.includes('grid')) {
466 return true
467 }
468 }
469 if (this.prefixes.options.flexbox === false && node.type === 'decl') {
470 if (node.prop === 'display' && node.value.includes('flex')) {
471 return true
472 }
473 }
474 if (node.type === 'decl' && node.prop === 'content') {
475 return true
476 }
477
478 return this.disabled(node, result)
479 }
480
481 /**
482 * Is it flebox or grid rule

Callers 1

addMethod · 0.95

Calls 2

gridStatusMethod · 0.95
disabledMethod · 0.95

Tested by

no test coverage detected