GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing lightningcss.dev — Minification – Lightning CSS MinificationLightning CSS can optimize your CSS to make it smaller, which can help improve the loading performance of your website. When using the Lightning CSS API, enable the OptimizationsThe Lightning CSS minifier includes many optimizations to generate the smallest possible output for all rules, properties, and values in your stylesheet. Lightning CSS does not perform any optimizations that change the behavior of your CSS unless it can prove that it is safe to do so. For example, only adjacent style rules are merged to avoid changing the order and potentially breaking the styles. ShorthandsLightning CSS will combine longhand properties into shorthands when all of the constituent longhand properties are defined. For example: minifies to: This is supported across most shorthand properties defined in the CSS spec. Merge adjacent rulesLightning CSS will merge adjacent style rules with the same selectors or declarations. becomes: In addition to style rules, Lightning CSS will also merge adjacent Lightning CSS will not merge rules that are not adjacent, e.g. if another rule is between rules with the same declarations or selectors. This is because changing the order of the rules could cause the behavior of the compiled CSS to differ from the input CSS. Remove prefixesLightning CSS will remove vendor prefixed properties that are not needed according to your configured browser targets. This is more likely to affect precompiled libraries that include unused prefixes rather than your own code. For example, when compiling for modern browsers, prefixed versions of the becomes: See Transpilation for more on how to configure browser targets. Reduce calcLightning CSS will reduce minifies to: Note that Minify colorsLightning CSS will minify colors to the smallest format possible without changing the color gamut. For example, named colors as well as minifies to: Note that only colors in the RGB gamut (including HSL and HWB) are converted to hex. Colors in other color spaces such as LAB or P3 are preserved. In addition to static colors, Lightning CSS also supports many color functions such as minifies to: Note that these conversions cannot be performed when any of the components include CSS variables. Normalizing valuesLightning CSS parses all properties and values according to the CSS specification, filling in defaults where appropriate. When minifying, it omits default values where possible since the browser will fill those in when parsing. minifies to: In addition to removing defaults, Lightning CSS also omits quotes, whitespace, and optional delimiters where possible. It also converts values to shorter equivalents where possible. minifies to: CSS grid templatesLightning CSS will minify the minifies to: Reduce transformsLightning CSS will reduce CSS transform functions to shorter equivalents where possible. minifies to: In addition, the minifies to: When a matrix would be shorter, individual transform functions are converted to a single matrix instead: minifies to: Unused symbolsIf you know that certain class names, ids, With this configuration, the following CSS: minifies to: |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |