source:
frontend/node_modules/postcss-merge-longhand/src/lib/hasAllProps.js
| Last change on this file was 9af201e, checked in by , 13 days ago | |
|---|---|
|
|
| File size: 249 bytes | |
| Line | |
|---|---|
| 1 | 'use strict'; |
| 2 | /** @type {(rule: import('postcss').Declaration[], ...props: string[]) => boolean} */ |
| 3 | module.exports = (rule, ...props) => { |
| 4 | return props.every((p) => |
| 5 | rule.some((node) => node.prop && node.prop.toLowerCase().includes(p)) |
| 6 | ); |
| 7 | }; |
Note:
See TracBrowser
for help on using the repository browser.
