{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m","workerThreads":false},"dependencies":{"@hint/utils-css":"^1.0.14","@hint/utils-debug":"^1.0.10","@hint/utils-fs":"^1.0.15","@hint/utils-i18n":"^1.0.14","@hint/utils-types":"^1.2.0","postcss":"^8.4.13"},"description":"Let the developers know of what operations will be triggered by changes on the css properties","devDependencies":{"@hint/parser-css":"^3.0.38","@hint/parser-sass":"^1.0.30","@hint/utils-create-server":"^3.4.24","@hint/utils-tests-helpers":"^6.5.4","@types/node":"^18.13.0","@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^4.33.0","ava":"^4.3.3","copyfiles":"^2.4.1","eslint":"^7.32.0","eslint-plugin-markdown":"^2.2.1","npm-run-all":"^4.1.5","nyc":"^15.1.0","postcss":"^8.4.13","rimraf":"^3.0.2","typescript":"^4.5.5"},"homepage":"https://webhint.io/","keywords":["hint","detect-css-reflows","detect-css-reflows-hint"],"license":"Apache-2.0","main":"dist/src/index.js","name":"@hint/hint-detect-css-reflows","nyc":{"extends":"../../.nycrc"},"peerDependencies":{"@hint/parser-css":"^3.0.0","hint":"^7.0.0"},"repository":{"directory":"packages/hint-detect-css-reflows","type":"git","url":"git+https://github.com/webhintio/hint.git"},"private":false,"scripts":{"build":"npm run i18n && npm-run-all build:*","build-release":"npm run clean && npm run i18n && npm run build:assets && tsc --inlineSourceMap false --removeComments true","build:assets":"copyfiles \"./{src,tests}/**/{!(*.ts),.!(ts)}\" dist","build:ts":"tsc -b","clean":"rimraf dist","i18n":"node ../../scripts/create-i18n.js","lint":"npm-run-all lint:*","lint:js":"eslint . --cache --ext .js,.md,.ts --ignore-path ../../.eslintignore","lint:dependencies":"node ../../scripts/lint-dependencies.js","lint:md":"node ../../scripts/lint-markdown.js","test":"npm run i18n && npm run lint && npm run build && npm run test-only","test-only":"nyc ava","test-release":"npm run i18n && npm run lint && npm run build-release && ava","init":"npm install && npm run build","watch":"npm run build && npm-run-all --parallel -c watch:*","watch:assets":"npm run build:assets -- -w --no-initial","watch:test":"ava --watch","watch:ts":"npm run build:ts -- --watch"},"version":"1.0.4","types":"./dist/src/index.d.ts","gitHead":"60a76eb56b6691efc428c392fdec4d5ac2cd43ba","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/hint-detect-css-reflows@1.0.4","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-/aybA/2fndz+MLalEqYWx+UOQuo8YOC9sUXTFPw0vam+j5Ha9fdeSEfBoVbcEFYUpiSU/ou3Y/phfcsn8l5Z/A==","shasum":"ab8fa7d3b26d0a62624c89142bf29e861e3ca714","tarball":"http://registry-npm.ywwl.com/@hint/hint-detect-css-reflows/download/@hint/hint-detect-css-reflows-1.0.4.tgz","fileCount":36,"unpackedSize":56018,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCo2FUzU6cbc27c7EEw2GSEl6WnaWoCRB7jOEfH+PZ/7QIgGKX1Dsfa0WNqTDpNJhn0v+jGQ5wSrcHmFqlQnn0h31s="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJaiDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKwRAAipYF5ymNU6DuH/FmlxJBgB7nvLg0OayhlsEWrcsxJWpnkBcz\r\nl4JLRjFd0X7HhqQXOagjsFZRifvpiRAICqrNArF88OMkeu2ax+8OjDQKKwwj\r\nIQEpmkPUSoo5ds7I0fKt/AobKxy2XhY8Kblw7DsAmiPdh7g2dTaJ3tf0rh2x\r\nwCe+lnQftYMeR9AlU7WOpG7dog5+BhDNJuf8M2I6Ehc0N9pceXAmoy5EyX/c\r\nQAU/LE3/wry97QUEe7JZN3/929gG/oKb8qVX8Zd54lewtHJ1lP4GJMJ9zc4O\r\nppmCHdVFFr0fxjzXoDMcWyHyo2gHd2dnVm4iSi4NcFWX7IxNCT7tiXYaZmMU\r\nLvU4/KaUVdAZyLk685tVl1AD5p91gcY1Qc5fwZLhpMzbuDOEGX1rY+1oE88I\r\nz0f6rfur37wcSvh6+/+3xQCGtvCaWiUaq3B15zsXB3metJWkg6Sa/Ssgq3Uc\r\nttbfRJpPJuqDrPe0nFV9qjTNxwwgfzYa7rVHCneDqVR1yAVBWculM1nmLINk\r\nLiyPqf2IehWeBW44FukUUgzE2V2UC74ID88+qmnRiBqt1um3YT3AZEnYNgTw\r\nh+uodkPDw2PtgZDVbv0RAkZGNT3X8pEoY5iopWqlTcFCpbVs0D1RxxWkNbW8\r\n8iJker1/U+KygdU/enlWGnnpkIjghP+eEnM=\r\n=1tUn\r\n-----END PGP SIGNATURE-----\r\n","size":10743,"noattachment":false,"key":"/@hint/hint-detect-css-reflows/-/@hint/hint-detect-css-reflows-1.0.4.tgz"},"_npmUser":{"name":"vidorteg","email":"vidorteg@microsoft.com"},"directories":{},"maintainers":[{"name":"leotlee","email":"leolee@microsoft.com"},{"name":"vidorteg","email":"vidorteg@microsoft.com"},{"name":"oaflynn","email":"flynnolivia@microsoft.com"},{"name":"molant","email":"amolleda@gmail.com"},{"name":"antross","email":"antross@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hint-detect-css-reflows_1.0.4_1680189571217_0.7036981478286919"},"_hasShrinkwrap":false,"readme":"# Detect CSS Reflows (`detect-css-reflows`)\n\nLet the developers know if changes to a specific CSS property inside @keyframes\nwill trigger changes on the Layout, Composite or Paint rendering pipeline.\n\n## Why is this important?\n\nUnderstanding what rendering pipeline operations will be triggered by changes\non specific CSS properties can prevent users from introducing unintentional\nperformance hits. `Paint` and `Layout` operations should be minimized or avoided\nwhen combined with animations.\n\n## What does the hint check?\n\nIt scans the css properties inside @keyframes property against a defined\nset of properties and associated rendering triggers.\n\n### Examples that **trigger** the hint\n\n`left` property triggers a `Layout` operation its use should be minimized inside\n`@keyframes` to avoid jankiness or slow animations.\n\n```css\n@keyframes performance-with-layout-trigger {\n    0% {\n        left: 0;\n\n    }\n    100% {\n        left: 400px;\n    }\n}\n```\n\n### Examples that **pass** the hint\n\nA better approach is to use `translate` which will trigger only once, at the\nend of the animation.\n\n```css\n@keyframes performance-without-layout-trigger {\n    0% {\n        transform: translateX(0);\n\n    }\n    100% {\n        transform: translateX(400px);\n    }\n}\n```\n\n## Can the hint be configured?\n\nYou can decide the granularity and severity of your reports up to the\nfollowing categories:\n\n- detect-css-reflows/composite\n- detect-css-reflows/layout\n- detect-css-reflows/paint\n\n## How to use this hint?\n\nTo use it you will have to install it via `npm`:\n\n```bash\nnpm install hint --save-dev\n```\n\nNote: You can make `npm` install it as a `devDependency` using the `--save-dev`\nparameter, or to install it globally, you can use the `-g` parameter. For\nother options see\n[`npm`'s documentation](https://docs.npmjs.com/cli/install).\n\nAnd then activate it via the [`.hintrc`][hintrc]\nconfiguration file:\n\n```json\n{\n    \"connector\": {...},\n    \"formatters\": [...],\n    \"parsers\": [...],\n    \"hints\": {\n        \"detect-css-reflows/composite\": \"off\",\n        \"detect-css-reflows/layout\": \"hint\",\n        \"detect-css-reflows/paint\": \"off\"\n    },\n    ...\n}\n```\n\n## Further Reading\n\n<!-- Link labels: -->\n\n[hintrc]: https://webhint.io/docs/user-guide/configuring-webhint/summary/\n[understanding-critical-path]: https://developer.mozilla.org/en-US/docs/Web/Performance/Critical_rendering_path\n","publish_time":1680189571365,"_cnpm_publish_time":1680189571365,"dist-tags":{"latest":"1.0.7"}}