Repository navigation
Update dependency cssnano to v9.2.0 - #259
Merged
Merged
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
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.
This PR contains the following updates:
9.1.2→9.2.0Release Notes
cssnano/cssnano (cssnano)
v9.2.0: v9.2.0Compare Source
Features
place-content,place-itemsandplace-selfshorthands, such asalign-items:center;justify-items:startintoplace-items:center start. This only happens when every browser in your Browserslist targets supports the shorthands, because a browser that does not would ignore both alignments. Thedefaultsquery includes browsers with unknown support, such as Opera Mini and UC Browser, so it keeps the longhands. Values that usesafe,unsafeorlast baselinemerge only when both values use the same keywords.postcss-merge-longhandnow accepts the Browserslist optionsoverrideBrowserslist,stats,pathandenv.Fixes
Write numbers in scientific notation when it is shorter, such as
1e-6pxfor0.000001pxand1e6pxfor1000000px. This also applies whenlengthunit conversion is disabled. Numbers written without a decimal point, such asz-index:1000000, keep their form, because an<integer>cannot use scientific notation.Stop merging longhands across a nested rule or at-rule. The shorthand ended up after the nested rule and overrode it, so in
a{margin-top:1px;&{margin-top:2px}…}the nestedmargin-topwas lost. This applies tomargin,padding,border,border-radiusandcolumns. Declarations on each side of a nested rule are now merged separately. An at-rule without a block, such as@apply x;, also separates them, since it may add declarations. An empty rule such as&{}does not. Aborder-imageoralldeclaration before a nested rule no longer prevents merging theborderlonghands after it.Stop merging rules that have an invalid selector, such as
b: hover,[a b],:lang(en fr)ora||b. An invalid selector makes the whole selector list invalid, so the browser also dropped the valid rule it was merged with.Only treat a dimension as the font size in the
fontshorthand when it has a length unit. An invalid value such asfont:bold 1s "Arial Black"is now left unchanged.Leave the
fontshorthand unchanged when it containsattr(),if(),inherit()or a custom function such as--name(), as already done forvar()andenv(). Their result is only known when the browser computes the value.Remove a zero color stop position only when it has the right type for the gradient.
conic-gradient()now drops0degand keeps an invalid0px, while linear and radial gradients still drop0px.-webkit-linear-gradient()keepsto bottomand othertodirections as written, since the prefixed syntax measures angles differently.Stop turning a comment inside a selector into a descendant combinator. A comment is not whitespace, so
.a/**/.bselects elements with both classes, including inside:is(), and is no longer rewritten as.a .b. Invalid selectors such asdiv/**/spanare left as written instead of becoming valid.Leave rules with an invalid selector unchanged, including an ID selector that starts with a digit, such as
#​1a, and a combinator after a pseudo-element, such asa::before b.Shorten
top centerandbottom centertotopandbottom, instead of0and100%, which the browser reads as horizontal positions.center topandcenter bottomare now shortened the same way.Leave a position unchanged when it cannot be safely rewritten:
backgroundlayer where another value splits the position, as inleft no-repeat center, which is invalid;attr(),if()or a custom--function(), which may return a keyword, asvar()already did;left abs(1px) top, ascalc()already did.Keep strings unchanged when removing a line continuation (a backslash before a newline) right after an escape. In
"\31followed by a line continuation and2", joining the lines would turn\31into\312, so the result is now"\31 2".Leave
@charsetunchanged. Browsers only recognize it with double quotes, so rewriting single quotes would make an ignored@charsettake effect.Update
postcss-calcto 11.2.2. postcss-calc() now attempts to preserve fractions if the replacement would lose too much precisionConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.