Repository navigation
Conversation
*Total -- 3,701.49kb -> 3,502.66kb (5.37%) /architecture.png -- 190.10kb -> 132.12kb (30.5%) /test/img/couleur-pineapple-10255724.jpg -- 3,511.39kb -> 3,370.54kb (4.01%) Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
[ImgBot] Optimize images
Closed
30 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bugs
.foo *+.xbecame.foo +.x,.a * .bbecame.a .b,*|*became|*:is()lost the descendant combinator:.foo .a,.foo .bbecame.foo:is(.a,.b)instead of.foo :is(.a,.b)@applyrule, an empty contents block was removed:@apply --mixin {}initial-valueof@propertywas removed:initial-value: 0degbecameinitial-value: 0, which is not a valid<angle>@function: theresultthat precedes the conditional rules is moved after them.result: 16px; @media (...) { result: 20px }->@media (...) { result: 20px } result: 16px@functionwere removed when they were placed before the lastresult: they are never removedresultdescriptors of a@functionwere only deduplicated with{validation: true}:@function --mypi() { result: 3; result: 3.14; }->@function --mypi(){result:3.14}@functionor@mixinwas removed withremoveEmpty, and a@functionwith an empty result (result: ;) was dropped: they are valid definitions!importantno longer overrides a previous!importantdeclaration of the same property:.a{color:red !important;color:blue}->.a{color:red!important}html{margin:0}body,div,...{margin:0;font:inherit}becamehtml,body,div,...{margin:0}body,div,...{font:inherit}. the minified outputtext-emphasisdeclarations threwCannot read properties of undefined (reading 'includes')(text-emphasis-colorhas no keyword)parse(),parseSync(),transform(),transformSync()andrender()no longer modify the options object of the caller: a reused options object kept the source and the code units of the first input, and its validation (sync api) traversed them at every call. the sync api options check only traverses the plain objects and the arrays ofblueprint.csswas larger than the output of the fast mode (minify: false)Feature
{evaluateMixins: true}: the@applyrules are replaced by the mixin body, the private variables (@private, mixin arguments, custom properties of the rule) are substituted https://drafts.csswg.org/css-mixins-1/#mixin-rule@apply --mixin()is minified to@apply --mixin{keepMixins: true}@media,@supports,@container,@when,@else) are not evaluated@contentsis replaced with a copy of the contents block of the@applyrule, or with its default contents.@resultis supported@property) when a descendant references it{evaluateMixins: true}: the custom function calls (--fn(1px)) are replaced by the result of the function@functionrule whose parameters contain the same name more than once is invalid, it is dropped when{evaluateMixins: true}. the custom functions see the custom properties of the call site. the css-wide keywords of the local variables:initialis the value of the parameter,inheritandunsetthe value of the calling context. the invalid declarations are not evaluatedpadding-inline,padding-block,margin-inlineandmargin-block:.a{margin-inline-start:auto;margin-inline-end:auto}->.a{margin-inline:auto}RenderResultandTransformResultare classes. the generated css is accumulated as UTF-8 bytes inresult.write(Uint8Array),result.codeis a getter that decodes the bytes once, when it is first read.Performance
Validation