1
0
mirror of https://github.com/svg/svgo.git synced 2026-01-27 07:02:06 +03:00
Files
svgo/docs/04-plugins/inlineStyles.mdx
2024-06-16 00:10:42 +01:00

20 lines
833 B
Plaintext

---
title: inlineStyles
svgo:
pluginId: inlineStyles
defaultPlugin: true
parameters:
onlyMatchedOnce:
description: If to only inline styles if the selector matches one element.
default: true
removeMatchedSelectors:
description: If to remove the selector and styles from the stylesheet while inlining the styles. This does not remove selectors that did not match any elements.
default: true
useMqs:
description: An array of media query conditions to use, such as `screen`. An empty string signifies all selectors outside of a media query.
usePseudos:
description: What pseudo-classes and pseudo-elements to use. An empty string signifies all non-pseudo-classes and non-pseudo-elements.
---
Merges styles from `<style>` elements to the `style` attribute of matching elements.