Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/utils/propertyDescriptors.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ const parsers = require("../parsers");
const { AST_TYPES } = parsers;

/**
* Creates a generic property descriptor for a CSS property.
* Creates a generic property descriptor for a given property. Such descriptors are used whenever we don't have a
* specific handler in `./properties/*.js`. They perform some basic logic that works as a fallback, and is correct for
* simple properties, but properties with more complex grammars will need their own handlers.
*
* @param {string} property - The name of the CSS property.
* @param {string} property - The canonical CSS property name (e.g. "backdrop-filter", not "backdropFilter").
* @returns {object} The property descriptor object.
*/
function createGenericPropertyDescriptor(property) {
Expand Down