This repository was archived by the owner on Feb 23, 2022. It is now read-only.
Tags: google/closure-stylesheets
Tags
Rework substitution maps to allow reusing them across compiles. I need to be able to compile multiple CSS bundles using a rename map, then recompile just a few based on hash checking. There are two problems with using CssCompiler.execute(renameFile, ...). 1. CssCompiler writes out the rename map using only the entries actually encountered by keeping a side table of mappings, not getting the entire mapping from the SubstitutionMap. 2. MinimalSubstitutionMap and others have no standard way to reconstitute a substitution map from a string->string relation. This addresses both problems. I added read() methods to OutputRenamingMapFormat. I added an Initializable interface to SubstitutionMap that allows reconstituting a renamer from a rename map, and reworked RecordingSubstitutionMap and friends to implement Initializable. Along the way, I cleared up an ambiguity in how SplittingSubstitutionMap & RecodingSubstitutionMap interpreted renamings that caused problems when a prefixing substitution map effectively prefixed only the first renaming in a chain. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=131714015
Adding "vector-effect" as recognized property. W3 Spec: https://www.w3.org/TR/SVGTiny12/painting.html#NonScalingStroke ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=116700921
Closure Stylesheets release 1.1.0 Improvements since 1.0: * 270e6f4 Preserve comments with `@license` or `@preserve` in `TemplatesCompactPrinter`. * 5e681fe Add extra color methods: * `saturateColor(color, amount)` * `desaturateColor(color, amount)` * `greyscale(color)` * `lighten(color, amount)` * `darken(color, amount)` * `spin(color, hue_angle)` Bugs fixed: * f2d1877 #70 Defining and calling mixins from separate files causes "Compiler internal error" Special thanks to Yves Brissaud (@eunomie) for the new color methods and @hochhaus for reporting bug #70.
Implement a string concatenation gss function: concat(...) This allows to dynamically construct urls, e.g. @def HOST static.example.com .img { background-image: url(concat('//', HOST, '/image.png'); } ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=105082418