Skip to content

Bump AngleSharp.Css from 1.4.0 to 1.4.2 - #688

Merged
mganss merged 1 commit into
masterfrom
dependabot/nuget/src/HtmlSanitizer/AngleSharp.Css-1.4.2
Nov 16, 2026
Merged

mganss merged 1 commit into
masterfrom
dependabot/nuget/src/HtmlSanitizer/AngleSharp.Css-1.4.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026

Copy link
Copy Markdown
Contributor

Updated AngleSharp.Css from 1.4.0 to 1.4.2.

Release notes

Sourced from AngleSharp.Css's releases.

1.4.2

Released on Friday, November 13 2026.

What's Changed

  • Improved serializing a style declaration, which happens with every change of an element's style by script (about 7 times faster): numbers are no longer formatted with a long custom format string, property names are only escaped when they need it, a url() is serialized once, and shorthands are only tried when all of their longhands are declared
  • Fixed grid-gap not setting row-gap and column-gap, whose legacy name it is, and its single value (grid-gap: 10px) leaving the column gap unset
  • Fixed a shorthand kept as written (e.g. overflow) whose value refers to a custom property (overflow: var(--overflow), as Elementor's containers do) leaving its longhands (overflow-x, overflow-y) at their initial value, as they were taken from the value before the substitution
  • Fixed a unitless zero with a sign or fraction (-0, +0, 0.0) not being a length, so that a style attribute written with one (e.g. background-position: -80px -0, as a style set to -0px is serialized) lost the declaration when it was parsed again
  • Fixed computing a background whose final layer only has a color (e.g., background: linear-gradient(...), var(--accent)), which threw a NullReferenceException for the element and all of its descendants
  • Fixed place-content, place-items and place-self with a single value only setting the align longhand (e.g., place-content: center left justify-content without a value)
  • Fixed declarations in an @​media or @​supports rule nested in a style rule (e.g., .a { @​media (min-width: 500px) { display: grid } }) being dropped: they apply to the elements of the style rule
  • Released 1.4.2 by @​FlorianRappl in Release 1.4.2 AngleSharp/AngleSharp.Css#273

Full Changelog: AngleSharp/AngleSharp.Css@v1.4.1...v1.4.2

1.4.1

Released on Sunday, November 8 2026.

What's Changed

  • Improved finding the rules of an element: :root rules and rules whose subject requires no id or class (e.g., .list > *, .menu a) are only tried on elements of that context, which made building GitHub's render tree about twice as fast
  • Improved the cascade of many declarations replacing each other (e.g., the custom properties of a design system on :root)
  • Improved reading values of computed styles, e.g., of properties that are not declared
  • Improved the memory use of styles: declarations of a few entries have no index of their names, the explicit style of an element gives back the room it did not use, and resolving custom properties allocates nothing for elements without any
  • Improved building the render tree of large documents by matching the selectors of their elements on all cores (turned off by the AppContext switch AngleSharp.Css.DisableParallelism)
  • Fixed an empty custom property (e.g. --tw-blur: ;) being dropped, which made every value using it invalid, e.g. the filter of Tailwind's utilities
  • Added GetStyleCollection to shadow roots, for the rules that style the elements of a shadow tree
  • Added RenderPartial to the window for rendering an element into a render tree whose children are only built when they are read, e.g., to style an element again after a change of its state, or the document, telling about the children of each node once they are built, e.g., to style just what is laid out
  • Added RenderDocument to the window for rendering the document with the given styles instead of gathering and indexing the rules of its style sheets anew
  • Added ComputeDeclarationsWithParent to compute the style of an element (or of a pseudo-element) from the computed style of its parent, e.g., of a render tree, instead of computing the styles of all its ancestors
  • Released 1.4.1 by @​FlorianRappl in Release 1.4.1 AngleSharp/AngleSharp.Css#272

Full Changelog: AngleSharp/AngleSharp.Css@v1.4.0...v1.4.1

Commits viewable in compare view.

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

---
updated-dependencies:
- dependency-name: AngleSharp.Css
  dependency-version: 1.4.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels Nov 16, 2026
@mganss
mganss merged commit 858217f into master Nov 16, 2026
8 checks passed
@dependabot
dependabot Bot deleted the dependabot/nuget/src/HtmlSanitizer/AngleSharp.Css-1.4.2 branch November 16, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant