Repository navigation
Releases
Releases · AngleSharp/AngleSharp.Renderer
0.13.0
Released on Tuesday, November 24 2026.
What's Changed
- Fixed variable web fonts always being drawn with their default instance, bolder weights synthesized
- Fixed
@font-facematching ignoring weight ranges - Fixed
background-clip: texton inline boxes painting the whole box instead of only its glyphs - Fixed images picked from a
srcsetbeing as large as their pixels; they are divided by their density - Fixed the caret of a focused text input or textarea always being painted at the end of its text instead of at its cursor (
selectionStart/selectionEnd), and the selected text of one not being highlighted - Fixed adjoining vertical margins collapsing pairwise instead of all together, e.g. those of an empty block with a negative margin inside (75px and -72px with 48px before them are 3px, not 48px)
- Fixed the bottom margin of a block being left out before inline content following it, and before a float or an absolutely positioned box placed after it
- Fixed
min-heightnot winning overmax-height - Fixed
position: relativewith onlybottomorrightnot moving the box - Fixed
background-attachment: fixedbeing ignored: such a background is positioned in the viewport, where it stays while the page scrolls - Fixed atomic inlines (e.g. an image overflowing a block of no height) being painted below the floats they overlap, as all inline content paints above the floats
- Fixed the background showing through where two border sides of different colors meet on a diagonal
- Fixed
data:images whose base64 is percent-encoded (e.g.%2Ffor/) not being shown - Fixed an
objectwith data that failed to load (e.g. a 404) showing it instead of its fallback content - Fixed an
objectshowing a page (e.g.text/html) showing its fallback content; it is an empty box of the size of an iframe - Fixed the document of an empty iframe (e.g. 0 by 0) keeping the viewport of 300 by 150
- Fixed generated content being hit as the pseudo-element (in the hit-test map,
elementFromPointand for:hover) instead of its element, e.g. a link's::afterstretched over a whole card did not act as the link - Fixed grid items with a percentage
height(e.g.height: 100%cards) in an auto row being as tall as the grid is wide; such a height contributes asautoto the row and then fills it - Fixed text right in a grid container (e.g. the label of an icon with
display: grid; place-items: center) not being an anonymous grid item: it stayed at the top left instead of being placed in a cell and aligned - Fixed
row-reverseandcolumn-reversepacking the items at the end without reversing their order - Fixed
grid-auto-columnsbeing ignored for implicit columns - Fixed the edges of a gradient
border-imageof a box with a fractional size being drawn with seams and a washed out side - Fixed
::markerand::first-linecolors being ignored - Fixed an absolutely positioned box with
height: fit-content(e.g. a popover) being stretched betweentopandbottom, and centering one of an automatic height withmargin: auto - Fixed
scrollWidthandscrollHeightleaving out text extending beyond its box (e.g. cut off by an ellipsis) - Fixed text before and after a relatively positioned inline box (e.g. a
strongwithposition: relative) being painted as one, where the box was - Fixed a
paint()image not being drawn anew when only the custom properties it uses changed, and not at all when its box was only painted again - Fixed opaque shadow colors (e.g.
box-shadow: 0 2px 3px #fff) being painted black while AngleSharp.Css serializes colors as the spec says (rgb(255, 255, 255)) - Fixed an absolutely positioned
::beforeof a positioned box painting above the positioned content after it in frames of the interactive harness - Fixed absolutely positioned boxes with a negative
z-indexsized by their containing block - Fixed percentage heights of the items of a flex container that got its height from its own flex container being treated as
auto - Fixed a positioned pseudo-element covering its element being hit instead of the positioned boxes in that element
- Fixed the bounding box of SVG
imageelements being unknown - Improved repainting an animated inline SVG
- Updated minimum version of AngleSharp to 1.11.0
- Updated to use a minimum of AngleSharp.Css 1.6.0
- Updated the document of an iframe to keep the render device of its browsing context, if it has one of its own
- Updated
Element.animateto take typed arguments instead of a plain object - Updated loading the image of an
img: the renderer loads the source its render node picked (srcset,sizes,picture) once it lays the image out - Added color hints and color interpolation methods (e.g.
in oklch,in hsl longer hue) of gradients - Added
loading=lazyfor images: a frame loads one once it is within 1250px of the viewport and of every scroll container around it - Added
subgridforgrid-template-columnsandgrid-template-rows(tracks, gaps and line names of the parent grid, row sizes from the subgrid's items) - Added
background-clip: text - Added
objectelements showing an image instead of their fallback content - Added
align-items: baseline(andalign-self) for flex items in a row: an item without text sits on the baseline with the bottom of its border box (e.g. a rule after a heading's text), where it was at the top of the line - Added
getImageData(),putImageData()andcreateImageData()of the canvas (ImageData) - Added
paint()background images of the CSS Painting API - Added pickers of
color,date,datetime-local,month,timeandweekinputs (OpenInputPicker): a color picker, a calendar of days, weeks or months, and columns of hours and minutes, which a host shows on top of a frame like the list of a dropdown, setting the value withinputandchangeevents;min,maxandstepdisable the days, weeks, months and times they don't allow (InputValueConstraints) - Added
IInputControlfor showing inputs in other ways: a control sizes an input whosewidthorheightisauto, paints its content and creates its picker, and is registered per input type withWithInputControl(the built-in ones areColorInputControlandDateTimeInputControl) - Added the
disclosure-openanddisclosure-closedlist markers (e.g. ofsummary) - Added
drawFocusIfNeeded()of the canvas - Added animations and transitions of registered custom properties (
@property,CSS.registerProperty), which are part of the cascade, so what uses them follows, e.g. avar()in a gradient or the input properties of a paint worklet - Added
RendererDom.Register, the DOM of this library declared for a scripting engine - Released 0.13.0 by @FlorianRappl in #67
Full Changelog: v0.12.0...v0.13.0
0.12.0
Released on Wednesday, November 18 2026.
What's Changed
- Improved frames of pages animating an inline SVG: a change inside the SVG paints the SVG again in the last frame instead of laying out the boxes around it, as its size only depends on its root; such an SVG is drawn from its recording instead of a raster made for one frame, and the
:has()selectors around it are matched once per update, not for every change - Improved rasterizing pages with
filter,opacityor blend mode layers: a layer is as large as what is drawn into it, and not drawn at all when that is outside of the canvas (a blurred box far below the viewport was blurred across the whole canvas in every frame) - Improved drawing large images smaller (also rotated, e.g. a spinning background): they are scaled down once for the size they are drawn at, as Skia built the mipmaps of an image decoded on demand anew for every draw (about 60 ms for an image of 2000 pixels); an image drawn at its size is sampled bilinearly
- Improved frames of pages with CSS animations of pseudo-elements (e.g. ten spinning glows): the rules of the page's
styleelements are read once per layout, not for each animated element in every frame - Improved drawing text by keeping the paints of the fonts drawn with, instead of creating one (with its typeface looked up) for every run of text
- Improved images drawn smaller than they are (e.g. a logo of 200 pixels in a box of 36): they are sampled from mipmaps, as in Chromium, as the bicubic filter alone skipped source pixels and thin lines broke up into steps
- Improved
getComputedStylereading inherited text properties (font-size,color,visibility, ...) or the insets of a box in the flow: they are no longer found by laying out the page when no layout is at hand, as the cascade knows them - Improved selecting text on large pages (e.g. the Wikipedia article on CSS, from about 480 ms to 8 ms per frame while dragging):
user-selectis taken from the layout for each run of text instead of being computed from the cascade for every run of the page in every frame, and only for what is selected - Improved dragging a selection over a page that changes as it is hovered (e.g. Wikipedia's link previews changing the
titleof links): the pointer is located in the text as the last frame shows it, instead of the page being laid out again for every move; only when that text is no longer in the document it is laid out anew - Improved pages changing attributes that render nothing as they are hovered (e.g. Wikipedia's link previews taking the
titleof a link away, and setting a style to the one it has): an attribute set to the value it had for the layout, or one no element renders by (title,data-*,aria-*,role, event handlers, ...) keeps the frame, unless a rule selects the element by it or shows it byattr(); hovering the links of the Wikipedia article on CSS no longer lays out the page (about 320 ms) on every link entered and left - Improved pressing a link whose text is in a box of its own (e.g. Wikipedia's table of contents): text with the lines of an ancestor is painted in its new color (and the lines in that of the box declaring them) instead of the page being laid out
- Fixed an inline SVG with only a
viewBox(nowidthorheight) being as large as its viewBox (a logo of 1943 pixels in a box of 180 made the header of as tall as the page): it fills the width of its containing block, keeping its ratio, and adds nothing to a shrink-to-fit width, as in browsers - Fixed a transition of
transformnot starting when the element had no transition before (e.g. Swiper settingtransition-duration: 0msand later the duration with a new transform), sotransitionendnever came and the slider stopped after its first slide - Fixed transitions of pseudo-elements (e.g. a
::beforeoverlay changing on:hoverof its host) jumping to the new values: they are followed by their host and name, as their animations, and their events go to the host - Fixed transitions of lengths given as percentages (e.g.
width: 100%to90%) jumping to the new value: they are interpolated as percentages, or in acalc()with a length - Fixed an absolutely positioned or fixed flex or grid container taking room in the flow
- Fixed a face added to
document.fontschanging its status, settling its promise and firing the events of the set on the thread that loaded it: this happens in a task of the document's event loop, if it has one (and a face loaded quickly was alreadyloadedonceadd()returned) - Fixed
@font-facerules fetching all of their sources (e.g. both the WOFF2 and the WOFF file of every face): the sources after the first one that loads are not fetched, as they are not used - Fixed dotted and dashed sides of a rounded border being straight rows clipped by the curve (a dotted circle came out as two lines of dots, and the solid sides of a spinner with dotted ones vanished): the dots and dashes follow the middle of the border along the curve, and the other sides are painted as for any rounded border
- Fixed rendering moving the
transformof an element'sstyleattribute into adata-render-transformattribute (a workaround for a crash of AngleSharp.Css that has long been fixed), which scripts saw as a missing transform and as changes of the page - Fixed
scrollHeight(andscrollWidth) of the root element leaving out the margins in the root's box, e.g. the body's bottom margin, so the end of a page could not be scrolled to - Fixed percentages of flex and grid items (
padding,marginand the offsets ofposition: relative) referring to the item's own width instead of its container's (or its grid area's), e.g. a full-bleed banner (left: 50%; margin-left: -50vw) in a column flex container kept a margin on its left - Fixed a pseudo-class of state in an argument of
:not()with combinators (e.g. Codex's.cdx-radio__input:not(.cdx-radio--status-error .cdx-radio__input:active) + .cdx-radio__icon) laying out the page whenever any element got into that state, e.g. on every press - Updated
document.fonts.add()to take a face that is not loaded yet, as the CSS Font Loading API does, and to load it (soreadysettles once it is there); a face of an@font-facerule is refused with anInvalidModificationError - Updated to use SkiaSharp 4.156.1
- Added
RenderOptionsforRenderToImage(documents and elements) andRenderToPixels: the full page (FullPage), a part of it (Clip, in page coordinates) or an element's border box, at aDeviceScaleFactor(text, borders and SVG painted sharp at the higher resolution), without the white page background (OmitBackground), and as PNG, JPEG or WebP (Format,Quality); a capture beyond the viewport is laid out in the viewport and painted below it, as the screenshots of browser automation tools are, and creates no interactive harness - Added a fallback viewport of 800×600 (
HtmlRenderer.FallbackViewportWidth/FallbackViewportHeight) for rendering a document whose browsing context has no render device, instead of anArgumentNullException; the harness still needs a registered one - Added loading the images of
imageelements of an inline SVG referring to an address (e.g. an illustration wrapping a PNG), like background images - Added the
imageelement of SVG for images ofdata:URLs (fitted perpreserveAspectRatio; the bitmaps of a Lottie animation, for example),display: nonein SVG (hiding the element with its children; Lottie hides the layers that are not in), andmask-type: alpha - Released 0.12.0 by @FlorianRappl in #65
Full Changelog: v0.11.4...v0.12.0
0.11.4
Released on Monday, November 16 2026.
What's Changed
- Improved frames of pages animating the
transform,opacityorfilterof boxes: the last frame is painted with the box under its new values, without a layout, as long as the box keeps the scopes it was painted in; a box animating its transform or opacity is painted under them all along (at the identity, too), as browsers make it a stacking context; this also holds for CSS transitions and for changes of the style attribute - Improved scrolling pages with sticky boxes (e.g. a sticky header): the frame is moved to the scroll position with the sticky boxes stuck anew, also for hit testing, instead of laying out the page again
- Improved changes of what is never rendered (e.g. WP Rocket changing the type and src of scripts to load them, or scripts added to the head or the body): the frame stays, unless a selector of an attribute or of the siblings may match otherwise
- Improved reading the geometry of a page shown in frames after a change that cannot be patched: the page is laid out as its next frame, which the next frame then is, instead of being laid out for the read and once more for the frame
- Fixed
@keyframeswithout afromortokeyframe for a property (e.g.@keyframes spin { to { transform: rotate(360deg) } }) staying at the value of the other keyframe instead of animating from or to the element's own value - Fixed
audioelements withoutcontrolsbeing rendered (e.g. their fallback text); they are not, as in browsers - Fixed
offsetParentof the body and the root being the body, so a script summingoffsetTopup the chain of offset parents (e.g. Elementor finding where a section is) never ended and froze the page; they have none, a table cell or table is the offset parent of a static element in it, and the positions come from the last layout instead of the style of every ancestor computed anew - Fixed a rounded border with sides of different colors (e.g. a spinner of two green sides of a circle) losing the curve between the sides: the sides met on the straight corners of the padding box, which cut off the rounded inner edge, so a circle's sides showed as separate crescents and inner corners came out square; adjacent sides painted alike are now painted as one, without a seam on the diagonal of their corner
- Fixed animations of
::beforeand::after(e.g. a spinner made of both) never moving: a pseudo-element is a new object for every layout, so its animations started anew with every frame - Fixed transforms between angles (
deg,rad,grad,turn), absolute lengths or times of different units not interpolating, e.g.rotate(0deg)torotate(1turn)staying where it was - Added animated images: a GIF or WebP of several frames shows the frame its time has come to when a frame is rasterized (also as a background, a border image, or drawn into a canvas), from the moment it is first painted and as often as it loops;
RenderedFrame.GetTimeToNextImageFrame()tells a host when one in view changes, which needs no layout - Added
RenderedFrame.HasTextAt(x, y), telling a host where to show the cursor of text without touching the DOM - Added the controls of
audioelements with thecontrolsattribute (as in Chrome, 300x54 by default: play/pause, the time, a timeline and mute);GetMediaControlAtandGetMediaTimelinePositiontell a host which part a press is on. While the media plays, its time and timeline are painted for the moment a frame is rasterized, so they go on without a layout, andRenderedFrame.GetTimeToNextImageFrame()tells when they change next (also for animated images in iframes now) - Released 0.11.4 by @FlorianRappl in #60
Full Changelog: v0.11.3...v0.11.4
0.11.3
Released on Friday, November 13 2026.
What's Changed
- Improved frames of pages changing the styles of positioned boxes by script, e.g. a game moving its sprites (Mario 5: about 10 ms instead of 150 ms per frame): changes of the same attribute between two frames are taken as one (more than 256 changes dropped the update of the frame, so every frame was laid out as a whole); a box moved by its inset (
left,top,rightorbottomin pixels, with the opposite oneauto) is moved in the frame instead of laid out again with its content; a style attribute change that only paints differently (e.g. thebackground-positionof a sprite) is painted again without a layout, also when the box moved at the same time; a box moved again is moved without computing its style when only its insets changed in its style attribute; the map of what can be hit is updated for the moved boxes only (a box that transitions or animates is laid out as before) - Improved drawing images into a canvas at a fractional position, scaled or rotated (e.g. a game following its ship: about 1.5 ms instead of 12 ms for 512x512 pixels, which let Spaceshoot fall behind until the page froze): edges are anti-aliased only if the image is rotated or skewed, and images are smoothed bilinearly (the default
imageSmoothingQualityoflow), as in Chromium - Improved frames after a script removes an absolutely positioned box (e.g. a coin of Mario 5 disappearing, one of hundreds of sprites in the same parent: about 30 ms instead of 150 to 230 ms): its commands are taken out of the frame instead of its parent being laid out again, unless a selector matching by siblings or children (e.g.
:nth-child,:last-child,+,~or:empty) may match the parent or one of its children - Improved painting a canvas into the page by sampling its snapshot bilinearly, without mipmaps built again for each frame (Spaceshoot: about 33 ms instead of 60 ms per frame)
- Fixed a box removed after a change of its style attribute (e.g. a coin of Mario 5 disappearing) making the next frame a full layout
- Fixed a box shown in a box moved by its inset in the same frame (e.g. a figure appearing while the world of a game scrolls) being painted at its former position, as the moved box did not include it in its translation
- Fixed a box removed while its parent is laid out again (e.g. a coin of Mario 5 disappearing right after another one appeared) leaving the frame with the wrong commands
- Fixed a positioned box in a box that is no stacking context (e.g. a tooltip in a floated button, or in an inline-block or a block) being painted below the blocks after that box: it paints with the positioned boxes of the flow around it (CSS 2.2 Appendix E), unless a box around it clips it or applies an effect (e.g. opacity or a transform); its boxes without a stacking context are laid out with their enclosing box in frames since
- Fixed a canvas flickering while a script draws into it (e.g. a game clearing and painting its canvas in every step): a frame showed the bitmap as it was when the frame was rasterized, possibly half drawn, instead of as it was when the frame was prepared, between the tasks of the event loop
- Fixed
arc()andellipse()drawing nothing for a full turn against their direction (e.g.arc(x, y, r, 0, 2 * Math.PI, true)), which is the whole circle - Fixed a float being painted and hit below a later in-flow block overlapping it (e.g. floated buttons followed by a block starting at the same height could not be clicked): floats paint above the in-flow blocks of their flow and below its positioned boxes (CSS 2.2 Appendix E)
- Fixed an absolutely positioned box placed at its static position (
top/leftandbottom/rightauto) ignoring its margins - Fixed a replaced element with a percentage width (e.g. a logo with
width: 100%) in a shrink-to-fit box (e.g. a flex item) taking the width of the containing block instead of its natural width - Fixed a replaced element with a percentage height (e.g. an image with
height: 100%in a box withaspect-ratio) being painted larger than its box, as the percentage referred to the width of the containing block - Fixed an SVG (inline or as an image) painted into a box of another aspect ratio being stretched, instead of its
viewBoxbeing fitted as itspreserveAspectRatiotells (e.g. a narrow caret icon in a square box) - Fixed a box painted again with more or fewer commands than before (e.g. getting a
box-shadowon hover) leaving the boxes around it with the wrong commands in the frame, so that a later change of them patched the frame wrongly - Improved deeply nested pages: about 70% more levels are laid out before the stack runs low, e.g. 72 instead of 42 nested blocks on a 1.5 MB stack (#58) @michaelthyregod
- Fixed
getContext("2d")giving a new context with an empty bitmap on every call, andfill()only drawing the outline of a path - Fixed a canvas not showing what was drawn into it: with scripting it is a replaced element painting its bitmap (as it is when the frame is rasterized, so drawing needs no layout), instead of its fallback content (e.g. "Your browser does not support the canvas element")
- Fixed a CSS transition started by a change confined to an out-of-flow box (e.g. a fixed side menu sliding in with
transform) staying at its start value, as the patched frame did not ask for the frames to come; it also starts with the next frame, not at the time of the last full one - Fixed a float following text on a line (e.g. a close button with
float: rightat the end of a title) being placed below the line instead of on it when it fits there - Fixed an absolutely positioned box with
topandbottom,margin: autoand amax-height(e.g. a dialog withinset: 0) not being centered vertically, as the free space was taken before the height was limited - Fixed
repeat(auto-fit, ...)keeping one track per grid item, which wrapped items spanning several columns (e.g., a dashboard of tiles withgrid-column: span 2); it keeps the columns the items span - Fixed implicit grid rows growing for items spanning several rows in document order, which made a tall item push later ones down; items spanning fewer rows come first, as in CSS Grid
- Fixed a font family declared as several
@font-facerules split byunicode-range(as Google Fonts does) drawing with the first rule's face, which lacked the letters of the text, so the text fell back to the next family; the face whose range covers a character draws it - Fixed a grid container grown by its flex container (e.g.
flex: 1in a column) keeping the height of its content, so its auto rows did not take the rest of the height - Fixed the intrinsic widths of a multi-column container ignoring its columns, so a shrink-to-fit box with
column-width(e.g. a menu in a row flexbox) was only as wide as its content; it is at leastcolumn-widthper column, with the gaps between columns - Fixed relatively positioned boxes painting below earlier absolutely positioned siblings: all positioned boxes with
z-index: autopaint above the in-flow content in tree order (CSS 2.2 Appendix E) - Fixed an image with a percentage
widthormax-width(e.g.,width: 100%) widening a1frgrid track or other intrinsic size to its natural width: its min-content contribution is zero (compressible replaced elements, CSS Sizing 3) - Fixed
justify-content(e.g.,place-content: center) not placing the column of a grid withoutgrid-template-columns, which always filled the container - Fixed a frame painted while an image's response was still being processed taking its stream, which left the image without its natural size (it then was laid out as a broken image)
- Added the drawing API of
CanvasRenderingContext2Dfor script (paths with arcs and curves,fill/stroke/clip, transformations,globalAlpha, composite operations, shadows, gradients, patterns,fillText/strokeText/measureTextwith the document's web fonts,drawImageof images and canvases, line styles), which before only exposedsave/restoreand the size - Released 0.11.3 by @FlorianRappl in #59
Full Changelog: v0.11.2...v0.11.3
0.11.2
Released on Thursday, November 12 2026.
What's Changed
- Improved deeply nested pages: what is nested too deep for the stack is left out instead of ending the process with a stack overflow (#55) @michaelthyregod
- Improved the performance of nested tables and inline-blocks, which were laid out twice as often with every level (#54) @michaelthyregod
- Improved performance with partial layouting due to an off-screen lookahead which avoids full style-map creation
- Improved the first frame of pages with long flex containers: the lines of a wrapping row and the items of a column that start below the viewport are not laid out
- Improved the performance of flex rows: an item with a definite width only measures its content when its line has to shrink
- Improved the garbage collection while building style maps (about 20% less allocated per frame)
- Fixed adjacent text nodes (e.g. inserted by a script or a framework like Blazor) each starting a line of their own in a block, table cell or flex item: they are laid out as one text, like the single node the parser makes of the same text
- Fixed the intrinsic width of a row flex container counting each of adjacent text nodes as an item of its own (with a gap between them)
- Released 0.11.2 by @FlorianRappl in #56
New Contributors
- @michaelthyregod made their first contribution in #54
Full Changelog: v0.11.1...v0.11.2
0.11.1
Released on Sunday, November 8 2026.
What's Changed
- Updated to use a minimum of AngleSharp.Css 1.4.1
- Improved the performance of layouts, e.g., text fields with a placeholder computed the styles of all their ancestors whenever they were painted
- Improved the performance of nested flex and grid containers, whose items were laid out (with everything in them) also when only the height of a box around them was measured
- Improved the garbage collection during layouts: the selectors of the style sheets are only looked at once, equal values of style maps are shared, and transitions and animations are only looked up while any run
- Improved the performance of large documents by reading the computed styles of their elements on all cores (turned off by the AppContext switch
AngleSharp.Renderer.DisableParallelism) - Improved hovering and focusing: only what a selector of the state refers to is styled again, a change of its colors, backgrounds, borders, outlines, shadows or text decoration is painted again without a layout, and the frame keeps its hit-test map unless the cursor changed
- Improved updating a frame after a change of the page: flex and grid items, the content of floats and sticky boxes, and blocks after floats that ended above them are laid out on their own as long as they look the same to what is around them, with the rules of the last layout instead of gathering them again; typing into a text field only lays out more if a selector depends on what it changes
- Improved rendering an image of a page (e.g.
RenderToPng): only the elements laid out in the viewport are styled, unless CSS counters or quotes are used, and the rules of the style sheets are gathered and indexed once per layout instead of twice - Fixed updating a frame after a change in a box whose size depends on its content (e.g. a tab in a shrink-to-fit bar), which kept the size from before the change instead of what a layout of the page gives
- Fixed the line of text reaching into the bottom of the viewport not being painted in an image of a page (e.g.
RenderToPng) - Fixed an inline box going over several lines (e.g. a wrapped link) being hit in the whole rectangle around its lines, covering the links next to it, and
getClientRectsgiving that rectangle instead of one per line - Fixed the
::placeholderof text fields in a shadow tree ignoring the rules of the shadow root - Fixed a CSS animation that an element gets after its document's first frame (e.g. by a class a script adds) being over already instead of starting then, and one named again after it was removed not starting again
- Fixed the text nodes next to each other in a flex container being one flex item each, losing the spaces between them (e.g.
Sign in with {provider}from a template) - Fixed the
min-widthandmax-widthof a flex item in a column being ignored with awidth(e.g.width: 100%; max-width: 28rem), which made the column too short for its content - Fixed a button of an automatic height and a
min-heightnot centering its label in it - Fixed an absolutely positioned box placed by its
bottomin a block of an automatic height and amin-heightbeing placed against themin-heightinstead of the block's height, and one of an automatic height and amin-heightbeing placed with itsmin-heightas height - Fixed selecting the text of a flex item made of several text nodes, which only reached the first one
- Fixed SVGs being blurred or jagged when scaled (e.g. an 800px icon in a 16px box), in an
<img>, inline, as a background, mask orborder-image: they are painted at the resolution they end up at, as in browsers - Fixed the slices of an SVG
border-imagecounting in the pixels of its oversampled raster instead of its natural size - Improved the performance and memory use of SVGs: their PNG (
RenderedImage.Data) is only rendered when it is read, and repainting reuses what was rendered for the same size - Added
NotifyStateChangedto the DOM harness, for telling the renderer about a change of an element's state it does not see (e.g., the focus) - Added
PrepareViewportFrameto the DOM harness, for a frame of a page that was just loaded early on: only what is in the viewport is styled and laid out, and the frame tells byRenderedFrame.IsPartial(it is animating) that the next frame lays out the whole page - Added
RenderedFrame.Metricstelling what the layout of a frame took (RenderMetrics: the time of each phase and how much work they did) - Added the events of CSS animations (
animationstart,animationiteration,animationendandanimationcancel, asAnimationEvent), dispatched once the frame that found them is painted - Added CSS transitions started by any change of an element's style between two frames (e.g. a class a script adds), not only by hovering, and their events (
transitionrun,transitionstart,transitionendandtransitioncancel, asTransitionEvent); a property that is not interpolated still has the events, and shorthands likepaddingtransition their longhands - Release 0.11.1 by @FlorianRappl in #53
Full Changelog: v0.11.0...v0.11.1
0.11.0
Released on Friday, November 6 2026.
What's Changed
- Updated resolution of used pixel values for margins and positioned insets in
getComputedStyle. - Fixed
width, margins and other lengths mixing percentages and lengths, e.g.calc(50% + 10px)ormin(240px, 55%), being ignored, and math of more than two terms being taken as 0 in grid tracks - Fixed
scrollHeightandscrollWidthnot counting a positioned box escaping a clip for the page, and counting a positioned box for a box that isn't its containing block - Fixed
ContentHeightof frames counting what a box clips (e.g. the content of a scroll container), making pages scroll though all of them fits the viewport - Added
elementFromPointandelementsFromPointto documents, andpageX,pageY,offsetXandoffsetYto mouse events - Added the used values of
width,height, paddings, border widths and inherited text properties to whatgetComputedStylegives script - Added text selection to interactive documents: selecting with the pointer through the harness (
BeginTextSelection,ExtendTextSelection,EndTextSelection, also by word and paragraph),SelectAllText,SelectedText, the settingIsTextSelectionEnabled, the DOM'sgetSelection()withselectstartandselectionchange,user-select, and::selectionas soon as AngleSharp and AngleSharp.Css know it - Added
ResizeObserver - Added
IntersectionObserver, by default comparing with the viewport of the top-level page, also from the frames in it - Added
Range.getClientRects()andRange.getBoundingClientRect(). - Added
element.animate()and related script-facing Web Animations APIs on the renderer's virtual clock. - Added
document.fontsand script-createdFontFaceobjects to font matching and layout. - Released 0.11.0 by @FlorianRappl in #52
Full Changelog: v0.10.0...v0.11.0
0.10.0
Released on Wednesday, November 4 2026.
What's Changed
- Updated to AngleSharp.Css 1.3.2, whose default style gives form controls the font, padding, margins and
box-sizingof browsers - Fixed the label of a native select touching its border now that its default padding is 0
- Fixed synthesized small caps: digits, punctuation and spaces keep the full size with
small-capsand are reduced withall-small-caps,unicasereduces everything but lowercase letters instead of acting assmall-caps,ßand Latin ligatures become their capitals, letter spacing applies where the size changes, and a decoration crosses spaces in one size - Fixed spaces between words of a fallback font being as wide as that font's space instead of the first font's
- Fixed the background and border of inline boxes around right-to-left text starting at the left of the page, and the left and right padding, border and margin of such boxes changing places
- Fixed
letter-spacingafter the last character missing from the width of text, making boxes sized by their text too narrow and aligned text off by that much - Fixed kerning and letter spacing across spaces missing from line breaking, intrinsic widths and inline positions, so a line could wrap though it fit, or overflow, and what followed a text run could be off by a fraction of a pixel
- Fixed
min-content,max-contentandfit-contentbeing ignored as thewidthof flex and grid items, and asflex-basis,min-widthandmax-widthof flex items in a row - Fixed
white-space: pre-wrapandbreak-spacescollapsing repeated spaces and indentation of bare text, and dropping lines of only spaces - Added
text-decoration-line: overlineandtext-decoration-thickness - Fixed text decorations taking the color of nested elements (or the style of the box around them) instead of the box declaring the lines
- Fixed collapsed table borders of equal width using the color of the cell further down or right instead of further up or left, and vertical lines being painted over horizontal ones
- Fixed square borders with differently colored edges not meeting on the corner diagonals (e.g. triangles from
border-color: red transparent transparent) - Fixed absolutely positioned boxes being placed against their parent instead of the nearest positioned ancestor (positioned or transformed blocks, flex and grid containers, tables and inline boxes) or the viewport, waiting for the height of that one if it is auto
- Fixed percentages of absolutely positioned and fixed boxes referring to their parent instead of their containing block, and auto margins not centering them between their offsets
- Fixed the root element collapsing its margins with its first child
- Fixed the margins of an empty block adding up instead of collapsing through it, with those of the blocks around it and of its parent
- Fixed the margins of flex items on the cross axis: they count for the size of the line, stretching and alignment, auto ones take the free space (in rows, too), and percentages refer to the container; lines of a multi-line container share the free space of
align-content: stretch - Fixed absolutely positioned boxes without offsets after text: an inline-level one is where it would be on the line, a block-level one below the line
- Fixed boxes that are not the containing block of an absolutely positioned or fixed box clipping it, when painting and hit testing
- Fixed
getBoundingClientRectandoffsetHeightof the root element reporting the viewport instead of its own box - Fixed boxes in columns after the first being measured and hit tested where they would be in one column, and boxes across columns having no fragments in
getClientRects - Fixed the list
getClientRectsreturns not being indexable from scripts - Fixed boxes of no width dropping what is in them, instead of wrapping its text and laying out what is out of the flow
- Fixed absolutely positioned boxes with an explicit
top: autoorleft: auto(e.g.inset: auto 0 0) ignoring theirbottomorrightoffset - Fixed the bottom margin of the last child missing from the auto height of a box that doesn't collapse with it (formatting contexts, bottom padding or border), negative margins included
- Fixed out-of-flow boxes (e.g.
sr-onlyheadings) separating the margins of the blocks around them, and taking the top margin suppression from the first in-flow child - Fixed auto margins of column flex items with padding moving them out of the container, and made them keep the item from stretching
- Fixed
align-selfbeing ignored for stretching flex items whenalign-itemsisstretch - Fixed form controls of auto height (or auto width in a column) not being stretched as flex items
- Added
progressandmeter, list boxes (selectwithmultipleorsize, option groups included, scrolling to their selected option) withListBoxExtensionsfor hosts to make them interactive, and the name of the chosen file next to the button of a file input - Added
SelectPopupandRenderedFrame.WithOverlayfor hosts to show the list of a dropdown on top of a frame, using the color scheme of the select (itscolor-scheme, or thecolor-schememeta element, and the preference) and the colors of the select and its options - Added color emoji: characters presented as emoji use the color font of the host (or a declared web font) before fonts having a monochrome glyph, and stay together with their selectors, skin tones and joined characters
- Fixed
line-height: normalbeing 1.35 for every font instead of the line spacing the font states, and inheriting an explicit line height of the parent - Fixed
caretPositionFromPointguessing character widths, ignoring wrapped lines and collapsed white space, and being as tall as the line (a length made it taller than that by the font size): it now measures the text and spans the font - Fixed buttons having a minimum width of 20px, and empty ones a line
- Fixed selects being as wide as the selected option instead of the widest, not showing options in groups, and
appearance: nonestill reserving and painting the arrow; a native one ignoresline-height - Fixed the sizes of checkboxes, radio buttons, color, range, file and date/time inputs to the ones of browsers, whatever the font
- Fixed the baselines of controls without text
- Fixed lengths and percentages of
vertical-alignbeing ignored for atomic inlines - Fixed text fields to be sized by their font and
size, and text areas bycols,rowsand room for their scrollbar, instead of a fixed width - Fixed
width: 100%text fields contributing no width to a box sized by its content - Fixed
vertical-align: text-topandtext-bottomof atomic inlines, which were aligned with the baseline and grew the line - Fixed auto grid rows not filling the
min-heightof the grid container - Fixed grid tracks in
em,rem, viewport units orcalc()being sized as zero, andcalc()mixing percentages and lengths in tracks and gaps - Fixed
column-gaporrow-gapalone also applying to the other axis - Fixed
minmax(<length>, 1fr)adding its floor to its share of the space, andfrvalues summing to less than 1 taking all of it - Fixed floated tables and floated flex or grid containers not being floats: they stayed in the flow, and text did not wrap around them
- Fixed floats resetting the margins around them, which collapse with each other as if the float was not there
- Fixed
clearignoring the margin that already takes a box below the floats, adding the margin of the box below them, and moving what follows a float withclear - Fixed
vertical-alignof inline boxes:superandsubwere far off and not inherited by the content of the box, lengths moved in the wrong direction, percentages,topandbottomwere ignored, and lines did not grow for what is shifted out of them - Fixed
position: relativebeing ignored on inline boxes - Fixed lines using the metrics of the bundled font for every font, and a line height smaller than the font moving the text down instead of letting it overflow
- Fixed the size of inline boxes, which is the ascent and descent of their font
- Fixed the baseline of
inline-flexandinline-gridto be the one of the first item - Fixed background and mask images in data URLs containing quotes (
<svg xmlns="...">) not loading - Fixed
TimesandTimes New Romannot resolving to the metric-compatible fonts on Linux - Fixed table rows and row groups having no box for
getBoundingClientRect() - Fixed
text-align: -webkit-centerand its kin not moving the block-level boxes inside (<center>,<div align>,<td align>), which tables don't inherit - Added the quirks mode of documents without a doctype: lines only get their height from text, percentage heights look past auto heights, and the height of a table cell includes its padding
- Fixed a
widthon a table cell growing a table with a width of its own, and left over table width going to columns that ask for a width - Fixed cells with a height not honoring
vertical-align(middle, the default, andbottom) - Fixed the bottom margin of a block in an inline (
<a><div>) getting lost - Fixed
getBoundingClientRect(),getClientRects()and the hit test map ignoring transforms - Fixed
position: absoluteandfixedtables staying in the flow - Fixed plain
frtracks getting narrower than their content (the automatic minimum size), and grids reporting overflowing tracks as their width - Fixed
min(),max()andclamp()with percentages in grid tracks - Fixed
width: min-content,max-contentandfit-contentbeing ignored - Fixed shrink-to-fit widths not counting a float next to inline content
- Fixed a relatively positioned inline box painting below the rest of its line
- Fixed the box of a table for scripts not holding its captions
- Fixed broken images showing nothing: inline ones sh...
0.9.2
Released on Sunday, November 1 2026.
What's Changed
- Improved geometry reads after a change confined to an out-of-flow box (e.g. a script showing a hidden dropdown with
position: absolute, measuring it, and hiding it again): only that box is laid out again, not the whole document (dev.to's scroll handler measuring its 60 dropdowns went from 64 s to under 3 s) - Improved geometry reads to keep the layout when the page scrolls or the pointer moves without changing the hovered element, and
scrollTop/scrollLeft/scrollYto not lay out the document - Improved
IDomHarness.UpdateFrameto show hidden absolutely positioned children of flex and grid containers without a full layout, too - Improved geometry reads after a frame of an interactive document, which are answered from the frame's layout instead of laying out the document again
- Improved geometry reads and
IDomHarness.UpdateFrameafter changes of in-flow blocks (e.g. the text of a title, the color of an article): the block is laid out again on its own when it stays the same from outside (its box, its intrinsic widths where a flex or grid item is sized by them, its margins, no floats beside the boxes after it), else the next blocks around it are tried before a full layout (dev.to: 34ms instead of 1.2s for a changed title) - Improved laying out a box on its own to reuse what the layout resolved from the page (e.g. the page styles of inline SVG icons, which built a style collection of their own every time)
- Improved changes of the content of an element on pages with
:has()selectors, which needed a full layout; only a change flipping the match of a:has()on the element or around it does now - Fixed
getBoundingClientRect,getClientRects, andcaretPositionFromPointignoring the scroll position of the page; boxes in fixed boxes stay, and sticky boxes stick for it - Fixed the content of a stuck sticky box (e.g. the links of a sticky header) being hit tested and measured where it would be without sticking
- Fixed geometry reads measuring text with another measurer than painting (e.g. images in a line off by a tenth of a pixel)
- Fixed
rightandbottomof fixed boxes being ignored (e.g. a button fixed at the bottom right was placed at the top left) - Fixed absolutely positioned and fixed boxes of an auto height placed by
bottomstaying at the top; they are measured first - Fixed scroll containers other than the page (
overflow: auto,scroll,hidden) not moving their content when scrolled, in painting, hit testing, and geometry (getBoundingClientRect,scrollIntoView) - Fixed a box laid out on its own inside a scrolled container (other than the page) being measured where it would be unscrolled
- Fixed changes of style sheets (the text of a
styleelement, adding or removingstyleandlinkelements) inside a box out of the flow being taken for changes of that box only - Fixed content with a negative
z-indexinside a scroll container (or any box clipping its overflow) being neither clipped nor scrolled by it - Fixed absolutely positioned children of grid containers being laid out as grid items (taking a cell and sizing the tracks); they are placed against the grid's padding box, or the grid area of their
grid-column/grid-row/grid-arealines (CSS Grid 1 §9.1) - Fixed grid items with a
z-indexpainting in document order - Fixed
scrollHeightandscrollWidthcounting the content clipped by scroll containers inside, and boxes in fixed boxes - Fixed the text of an absolutely positioned box moving the baseline of its inline-block (e.g. a dropdown inside an inline-block pushing the following lines down)
- Fixed checkboxes, radios and other form controls as flex items in a row (e.g. a checkbox beside its label in a
display: flexlabel) getting no width, so they were not painted - Added
IDomHarness.UpdateFrame, bringing the last frame up to date without a layout of the whole document when the changes since were confined to boxes out of the flow: their commands are replaced, removed, or inserted where a box shown since paints (e.g. on dev.to showing a profile dropdown or changing the fixed header takes about 50 ms instead of 1.1 s, with the same pixels), and a frame stays as it is when they were not rendered then and are not now (e.g. a dropdown shown, measured and hidden again) - Released 0.9.2 by @FlorianRappl in #50
Full Changelog: v0.9.1...v0.9.2
0.9.1
Released on Friday, October 30 2026.
What's Changed
- Improved performance by caching fonts and using direct pixel manipulation
- Improved layout of a single-line column without a definite height (e.g.
body { display: flex; flex-direction: column }): its items of an automatic height are measured by their actual layout instead of a trial layout of their whole subtree beforehand (dev.to's frames took 26% less time) - Improved preparing a render, which resolved the body's text style through a new style collection for every explicit property, and let inline SVGs share the render's style collection
- Improved geometry reads (e.g.
getBoundingClientRect,offsetTop,scrollHeight) to reuse the layout until the document, scroll, hover, viewport, or a frame changes it, instead of laying out the whole document on every read - Improved grid layout to measure an item once per render, which nested grids measured again for every pass of the outer grid
- Fixed the items of a column without a definite height ignoring its
min-heightandmax-height: they now grow into the space amin-heightleaves (e.g. amin-height: 100vhpage whose main column hasflex-grow: 1), are justified within it, and shrink to amax-height - Fixed form controls (e.g. text fields) losing their padding and border to their content under
box-sizing: border-box - Fixed the content of a button taller than its content (e.g. an icon button stretched by
inset) sticking to its top instead of being centered vertically - Fixed grid items ignoring their margins:
automargins now center an item (e.g.margin: 0 auto; width: 640px), other margins shrink a stretched item and take space in its row - Fixed
grid-gap,grid-row-gap, andgrid-column-gap(the legacy names of the gaps) being ignored - Fixed a grid collapsing its bottom margin with the margin of the box before it, and a box with a formatting context of its own collapsing its bottom margin with its last child
- Fixed absolutely positioned children of a block of an automatic height (e.g.
top: 50%orbottom: 0) being placed against its width instead of its final height - Fixed the white space at the start and end of a line counting toward shrink-to-fit widths (e.g. a link as a flex item ending a few pixels short of its container's edge)
- Fixed checkboxes and radio buttons with
appearance: nonestill getting the native check painted over their own background - Fixed SVG background images of an automatic size being drawn three times their size (at the size they were rasterized at)
- Fixed border and outline widths not being snapped to device pixels (e.g. a
1.5pxborder is 1px wide in browsers, which made dev.to's text fields a pixel taller) - Fixed
vertical-align: middleassuming an x-height of half the font size instead of the font's own (ITextMeasurer.MeasureXHeight, which defaults to half the font size) - Added the CSSOM View members of elements and documents to scripts (they lacked
DomExposed), with properties likeoffsetTopexposed as properties - Added
scrollX,scrollY,pageXOffset,pageYOffset,scrollTo,scroll, andscrollByto the window - Released 0.9.1 by @FlorianRappl in #49
Full Changelog: v0.9.0...v0.9.1