Skip to main content Link Search Menu Expand Document Toggle dark mode Copy Code (external link)
paperwork.help

Core Library Change Log


On this page

Version 9

9.12.0 - 30 November 2026

Table rows that split across pages, after the 9.12.0-beta.1 of 26 November. Templates with tall table rows, and tightly fitted text, can look different: read the changes below before moving a template to it.

Breaking changes

  • Table rows split across pages - a row taller than the space left on its page is no longer cut off at the bottom of the page. A row is still kept together by default (break-inside: avoid): if it fits on the next page it moves there whole, as before. If it is taller than a whole page it moves once and then splits, each cell carrying on down the following pages below the repeated header rows, and the next row starts after the tallest cell. A row with break-inside: auto (or page-break-inside: auto) splits where it is. A document whose rows were cut off will now have more pages, with all of its content.
  • Text runs at their full width (with Scryber.Core.OpenType 9.12.0) - each run of text was measured short by the left side bearing of its first glyph, so the space before a bound value, a <span> or a change of font all but disappeared (“Period up to30 September”). Runs now take their full width, as in a browser. Lines are about 0.5 to 2 points wider, so a line can now break one word earlier than before.

Changes

  • Split rows everywhere - rows split the same way in a <table>, a display: table made of divs, and a grid. A grid row splits where it is only when every item in it has break-inside: auto; one item left to avoid keeps the row together. A rowspan group moves to the next page whole, then splits, with the spanning cell running alongside its rows. Tables inside cells split inside the rows that hold them.
  • Cells that end early - in a split row, a cell that ends before the others carries its borders and background on down the row’s later pages, as in a browser.
  • Lost content is always reported - anything cut off or not laid out is now written to the trace log, once, as a warning under the category Layout Lost Content, naming the element - and for a table row its number and table. Before, most of it was dropped without a word.
  • break-inside: initial - is now auto, as in css. It was read as avoid.

New

  • Images taller than the page - an image taller than the page it starts at the top of is made smaller to fit the page, keeping its proportions, when it has no height set. One whose height is set keeps it and is clipped at the bottom of the page, with a warning - as is one that would be made smaller than the minimum scale reduction (Scryber:Imaging:MinimumScaleReduction, 0.249 by default). An image is never split across pages.
  • <caption> - a table’s caption is now laid out, as a block above the table, as wide as the table and centred by default. It can hold any content. A table with no set width is made at least as wide as the content of its caption. caption-side is not supported yet, and a caption stays behind if the table’s first row moves to the next page.
  • Tables in an inline-block - an inline-block that holds a table and is alone on its line is laid out as a block, so its table can split across pages.
  • Scryber.Core.OpenType 9.12.0 - the font library moves with Scryber.Core, with the full-width fix above.

Fixes

  • Avoid blocks taller than a page - a block with break-inside: avoid that is taller than a page was moved on again at every page, leaving blank pages. It now moves once, then splits.
  • Avoid tables taller than a page - a table with break-inside: avoid that is taller than a page stopped at the bottom of the page and lost its remaining rows. It now moves once, then splits between its rows.
  • Tables in an avoid block - a table inside a block with break-inside: avoid lost a row, with a “no open region” error, when the block moved to the next page. It now moves with the block.
  • The bottom of a moved block - a block moved to a new page used its own bottom padding as room for content, so a line could run into the page’s bottom margin.

9.11.0 - 24 November 2026

Breaking changes

  • List indent - lists are now indented as in a browser. The indent is the padding-left of the <ul> or <ol> (30pt, the browser’s 40px, by default), and the marker sits in that padding just before the text. Items were indented 40pt on top of any padding of the list, so lists move 10pt to the left. padding-left: 0 now hangs the markers outside the list, and padding-left: 15pt is a 15pt indent (it was 55pt). -pdf-li-inset is now how far the marker box reaches back from the text, not an extra indent - use padding-left to make room for wide markers. A <dd> is indented 30pt (40px) rather than 40pt.
  • SVG images with a percentage size - an svg used as an image (<img src="image.svg" />) with a percentage width or height on its <svg> root, such as width="100%" viewBox="0 0 24 24", is now sized as a browser sizes it. A percentage is not a size of its own, so the image fills the width available with the ratio of the viewBox, or uses the other (absolute) dimension with that ratio. It was sized as the percentage of the viewBox, so a 24 x 24 icon with width="100%" height="100%" drew at 24 x 24 and now fills the width. Give the img a width or height in css to size it.

Changes

  • Shrink to fit - an absolute, fixed, floating or inline-block element without a width is now the width of its content when that content is blocks, such as a div or p, as in a browser. It filled the space to the right of the page. The blocks inside fill the width of the widest one. Content wider than the space available (text that wraps) fills the space, limited by any max-width - this includes text on its own, which was the width of its widest line. So an inline-block whose text wraps now fills the line and moves to a line of its own, as in a browser. Give the element a width to set it.
  • A whole html document in data-content - a complete document (with <html> and <body>) can only be bound into an <iframe>. Bound into any other element, such as a <div>, it now gives a clear error that names the element and says to use an iframe. In strict conformance this is an exception; in lax it is an error in the trace log, and the content is left out. Before, it failed later with “No Current group on the stack to unregister”.

New

  • Font subsetting - embedded TrueType fonts can now include only the glyphs used in the document, so a short document with a large font is much smaller - Segoe UI regular and bold go from about 2MB to under 100KB. It is off by default. Set Scryber:Fonts:SubsetEmbeddedFonts to true in the configuration, or doc.RenderOptions.SubsetEmbeddedFonts = true for a document, or add <meta name="font-subset" content="true" /> to the head of a template. The text is unchanged, so it can still be selected and searched. A font with CFF outlines, or whose licence does not allow subsetting, is embedded in full with a warning in the trace log. Requires Scryber.Core.OpenType 9.11.0 (#202).
  • List markers - list-style-type: disc, circle and square are now drawn as a browser draws them: a filled circle, a hollow circle and a filled square, in the colour of the text and sized from the font. Without a list-style-type, a bulleted list uses a disc, a list nested in another list uses a circle, and deeper lists use a square, as in a browser. Before, the bullet was a small character that was the same at every depth, and circle and square were drawn as that character.
  • paint-order on svg shapes - paint-order: stroke (as a css property or an attribute) draws the stroke before the fill, so the fill covers the inner half of a wide stroke, as in a browser. It was only used by html blocks.
  • Scryber.Core.OpenType 9.11.0 - the font library moves to 9.11.0 with Scryber.Core. It has the font subsetter, and a readme on NuGet.

Fixes

  • A complete document in an iframe - a document bound into an <iframe> with data-content or src was only unwrapped when nothing else was parsed with it. A doctype on its own line, or any text outside <html>, left the document whole inside the page, and generation failed with “No Current group on the stack to unregister”. The iframe now takes the document wherever it is, and drops anything around it (#179).
  • A space at the end of a line - a space that did not fit at the end of a line, such as the one after an inline-block that fills the line, was carried to the start of the next line and indented its text. It is now dropped, as in a browser.
  • Patterns on transformed shapes - a <pattern> fill on an svg shape with a transform stayed where the shape was before it was transformed. The tiles now move, turn and scale with the shape, as gradients do.
  • SVG presentation attributes - a style attribute on a gradient <stop> (e.g. style="stop-color: red") stopped the whole document from parsing. The stroke-dashoffset and opacity attributes were only read from css, and a <rect> did not read its stroke-opacity or stroke-linejoin attributes. They are now read as attributes on svg shapes, as well as in css (opacity is the opacity of the fill, as the css property).
  • mode() of text - mode() only took numbers, so the mode of text values (e.g. mode(model.choices) of ‘A’, ‘B’, ‘A’) raised an error. Text is now compared as text, and numbers (or text that is a number) as numbers.
  • Empty strings in conditions - an empty string with &&, ||, ! or the if() function raised an error (e.g. '' && true). These now use the same rules as the ? : operator: null, false, 0, '' and 'false' are false, and other values are true.
  • string() of a collection - gave the name of its type (System.Object[]). It is now its items in square brackets, e.g. [1, 2, 3].
  • integer() and long() of text with a fraction - integer('10.6'), as json values often are, raised an error. The text is now read as a number and rounded as a number is, so it is 11.
  • Gradients on transformed shapes - a linear or radial gradient on an svg shape with a transform, or on a block with a css transform such as rotate(20deg), stayed where the shape was before it was transformed. It did not rotate or move with the shape, and clipped it, so a moved svg shape could disappear. The gradient now follows the transformation of its shape.
  • Large SVG images - an svg image larger than the space available was drawn at 300 x 150, as its size was read before the svg was laid out. It is now reduced to fit, keeping its ratio, as other images are.
  • SVG images near the end of a page - an svg image with only a viewBox, reduced to fit the height left on a page, kept the full width and lost its ratio. It now keeps the ratio of the viewBox.

9.10.0 - 17 November 2026

New

  • The conditional (? :) operator - expressions can now use condition ? whenTrue : whenFalse, e.g. {{model.count == 1 ? 'item' : 'items'}}, as well as the if() function. It has the lowest precedence of all the operators, a chain reads from the right (score >= 90 ? 'A' : score >= 70 ? 'B' : 'C'), and only the chosen value is evaluated. A condition is false when it is null, false, zero, an empty string or the text 'false'; anything else is true.
  • === and !== - the strict equality forms from javascript are read as == and !=.

Fixes

  • @page rules in a large style block - when a <style> block (or stylesheet) had more than 30 rules, its @page rules were ignored, including :first, named pages and @page inside @media, so the page size and margins were not set. In the same blocks, the later of two rules with the same specificity did not always win (e.g. .a and .b on class="b a"), and a document with more than 30 <style> or <link> elements failed with an error. A large block now gives the same result as a small one. Thanks to Matthias Voigt for finding and reporting this (#200).
  • Newtonsoft and System.Text.Json models bind the same way - a model read with Newtonsoft (JObject) or System.Text.Json now gives the same values in expressions, as all JSON values are read in one place. An item from a Newtonsoft array (e.g. {{model.tags[1]}}) is now its value rather than a JSON token, a JObject can be indexed by key ({{model.nested['p1']}}), and a missing key on a System.Text.Json object is null, as with property access, rather than an error.
  • Text before a tall inline image - text that carried on from the line before onto a line with a taller image (or inline block) on the baseline was drawn too high, above the bottom of the image and the text after it. It is now on the same baseline, as in a browser.
  • Fonts that were not embedded - a font whose licence flags combine restricted with preview and print (or editable) embedding, as many system fonts do (e.g. Gill Sans on macOS), was not embedded, so the PDF viewer drew another font in its place. The least restrictive flag is now used, as the OpenType specification says. Together with Scryber.Core.OpenType 9.7.5, a font from a font collection (.ttc) is now embedded as a valid font of its own.
  • <num value> was drawn as zero - the num element only read data-value, so <num value="{{model.price}}" data-format="C2" /> showed 0. value is now the same as data-value, as with the html data, meter and progress elements.

9.9.1 - 11 November 2026

Fixes

  • Mixed vertical alignment on a line - an image or inline block with vertical-align: baseline after one with another alignment on the same line (e.g. a tall image with vertical-align: top, then a small one on the baseline) moved the text of the whole line down to the bottom of the space made by the taller image. The text now stays where it would be without the taller image, as in a browser, and the top aligned image hangs below it. A baseline image taller than the text still moves the baseline down.

Changes

  • date() reads English month names and AM/PM on any machine - text given to date(), with or without a format, is read in the current culture first, then in the invariant culture. So date('January 15, 2024', 'MMMM dd, yyyy') and date('01/15/2024 02:30:00 PM', 'MM/dd/yyyy hh:mm:ss tt') now work on a German (or any other) machine or browser, as well as date('15. Januar 2024', 'dd. MMMM yyyy'). Text that already reads in the current culture gives the same date as before. Thanks to Matthias Voigt for raising this while making the tests pass on German Windows.

9.9.0 - 9 November 2026

Breaking Changes

  • A css transform no longer changes the layout - a transformed element was taken out of the flow as position: absolute, and the space it used was resized to its transformed bounds, so the content after it moved up or across. The transform was also drawn around a centre worked out from the wrong place, so a rotated element (e.g. a rotate(-90deg) label in a table header) was drawn away from where it should be, or off the page. As in a browser, a transformed element now keeps its place and its space, and is drawn transformed around the centre of its own border box. Documents that allowed for the old position, or for the space being taken away, will need those adjustments removed.
  • Relative, absolute and fixed elements with a transform - a position: relative element is moved by its left and top, then transformed around its moved centre. An absolute or fixed element stays absolute or fixed, and is transformed around its own centre.
  • translate() percentages are of the element’s own box - as css, so translate(-50%, -50%) moves an element back by half its own width and height, and centres it on its position (e.g. a watermark at top: 50%; left: 50%). They were a percentage of the containing block, so a centred element was moved a long way off, often off the page.
  • A translate() after another operation moves along the transformed axes - as css, each operation in a transform is within the ones before it. So rotate(90deg) translate(50pt, 0) moves 50pt down the page, and scale(2) translate(10pt, 0) moves 20pt. A translate was always along the page axes before, whatever came first. A translate at the start of the list is not changed. This is the same for the svg transform attribute (e.g. transform="rotate(30) translate(50, 0)"), as in the svg specification.

Fixes

  • Transforms in a shared style - a transform with more than one operation (e.g. rotate(10deg) translate(50%, 0)) in a class changed the class’s own values when it was used, so the next element with the class could be transformed with the values of the one before.

New

  • transform-origin - sets the point an element is transformed around, with the keywords left, center, right, top and bottom, lengths (10pt 20pt) and percentages (25% 75%). Percentages are of the element’s own border box, as css. The default is center (50% 50%).

9.8.0-beta.12 - 29 October 2026

Fixes

  • Secured documents in the browser - a document with restrictions or a password failed in Blazor WebAssembly with Could not create the encrypter information, as the browser has no MD5, and the PDF security handler needs it to make the encryption keys. The handler now uses its own MD5 on every platform, so the same documents are made in the browser, on a server and on the desktop.

9.8.0-beta.11 - 29 October 2026

Fixes

  • Allowing modifications no longer also allows high quality printing - with 128bit encryption, modifications (document assembly) in print-restrictions, or AllowDocumentAssembly in code, also turned on high quality printing, and cleared one of the permission bits that must always be set.
  • Allowing forms no longer also allows annotations - forms (AllowFormFilling) also let the reader add comments and annotations. Each allowed permission now sets only its own permission.
  • Passwords longer than 32 characters - a document password longer than 32 characters failed the document. Only the first 32 characters are used, as in the PDF specification, and a password with characters outside Latin-1 (e.g. Cyrillic or Chinese) is a clear error rather than a password nobody could type.

9.8.0-beta.10 - 28 October 2026

Fixes

  • Flex items with block content are the width of their content - an item without a width that held a block (a div), a flex column or a flex row was measured as the full width of the row. So justify-content had no space to share, and items overlapped, wrapped or ran off the page (e.g. a footer’s contact details past the page edge, or a FIG 1.1 tag broken onto 2 lines next to another flex item). Blocks inside an item are now the width of their content when it is measured, and an empty item has no width.
  • justify-content with a margin or a gap - the margins of the flex container itself were not taken from the space, and the gaps between the items were counted as free space, so the last item was not on the right edge, or went past it.
  • position: absolute with a left and a right but no width - is now stretched between them (as css), rather than being the width of its content. A max-width still limits it.
  • counter-increment on a display: grid or display: table element - was not counted, so every counter() after it showed the reset value (e.g. FIG 1.0 for every item).

New

  • box-decoration-break - a block split across pages has the full border on each part, as before (clone, the default). box-decoration-break: slice (or -webkit-box-decoration-break) cuts the border at the break instead, with no bottom border where the block continues and no top border on the continuation, as in a browser.
  • A warning for a counter that is not found - a counter-increment for a counter that has no counter-reset on the element or a containing element is not counted, and now adds a warning to the trace log naming the counter and the element.
  • The background shorthand - now sets all the background values, so any that are not given go back to their defaults (as css). background: none removes a background color or image from another rule, and a color is drawn under an image. Position and size (center / cover, 10pt 20pt / 100pt auto) are read, and scroll, fixed, border-box, padding-box and content-box are accepted and ignored. If any part cannot be read, the whole declaration is ignored, as in a browser, rather than half applied.

9.8.0-beta.9 - 28 October 2026

Fixes

  • A gradient that cannot be drawn no longer stops the document - a gradient that could not be read, such as a stop with 2 positions (transparent 0 10.5pt), had no colors, and the whole document failed with No boundaries were provided. The gradient is now not drawn, the background-color is shown, and a warning is added to the trace log.
  • transparent in a gradient - failed the document with Cannot convert colorspace None to RGB. A PDF gradient cannot be transparent, so the color is now drawn as black, with a warning in the trace log.
  • Line height in the font shorthand and the language of the machine - in font: 10.5pt/1.65 sans-serif the line height was read in the language of the machine or browser. Where . separates thousands (e.g. Dutch or German) 1.65 became 165, and the document could fail with Cannot fit all repeating rows. It is now always read as a css number.
  • Numbers in text values used in expressions - a number held as text, such as a json or field value of "1.5", was read in the language of the machine or browser when used in a calculation ({{model.v * 2}}), a function (round(), sqrt(), double(), addDays() and the rest) or a comparison (model.v == 1.5). In Dutch or German "1.5" became 15. It is now always read the same way as a number written in the expression. Numbers and dates written out as text, e.g. {{string(1.5, 'N2')}}, still use the language of the machine or browser.
  • Decimal values in transform, svg transform and orient, and <picture> sizes - were also read in the language of the machine or browser, so rotate(12.5deg) was 125 degrees in Dutch. They are now always read as css numbers.

9.8.0-beta.8 - 27 October 2026

Fixes

  • Gradient color stops as lengths - a stop such as var(--accent) 112pt was ignored, so linear-gradient(90deg, var(--accent) 112pt, var(--navy) 112pt) was a smooth fade across the whole width. Lengths are now a position along the gradient line, so two colors at the same position are a hard stop. A stop of rgb(...) with a position also lost its color, and is fixed.
  • box-shadow with a variable - a shadow with a var() in it, such as box-shadow: 9pt 9pt 0 var(--accent), was not drawn. Any part of the value can now be a variable.
  • Images in a flex header - an image with only a height (e.g. a logo), in a flex header or continuation-header, was missing on the first page the header was used, as its size was not known until it had been drawn once.
  • letter-spacing and word-spacing in em - were a size of the inherited font, rather than the font of the element, so font-size: 172pt; letter-spacing: -.04em was almost no change.
  • display: inline-flex (and inline-grid and inline-table) - was not recognised, so the whole display was ignored. The element now sits on the line as an inline block, with its contents laid out as a flex container, so align-items and justify-content centre its content. As a flex item it is a flex container.

Changes

  • A word that is longer than the line is not broken - as in a browser, a single word that is too long for a line (e.g. a large number in a narrow column) is kept whole, and overflows the line (to the left when it is right aligned). Before this it was broken at a character, onto 2 or more lines. Use overflow-wrap: break-word (or word-wrap: break-word) to break long words, for example long codes or urls in a narrow table cell. With hyphens: auto long words are still hyphenated.

9.8.0-beta.7 - 27 October 2026

Fixes

  • Flex items that are the width of their content - an item without a width, flex-basis or flex-grow had no width, so next to a growing item (such as flex: 1) it disappeared, or only kept its margin. These items are now measured by laying them out before the row, and the row uses the width of their content, as in a browser. Counters, ::before and ::after content, names and outlines are not changed by the measuring, and it never adds a page.
  • A row of only content width items is now packed at the start of the row, as in a browser, rather than split into equal columns. Use justify-content (e.g. space-between) to spread them, or flex: 1 on each item for equal columns.

9.8.0-beta.6 - 27 October 2026

New css properties

  • margin-block and padding-block (with -start and -end) - the top and bottom of an element, as one or two values.
  • inset, inset-block and inset-inline (with -start and -end) - shorthands for top, right, bottom and left, with the same one to four values as margin. auto leaves a side unset.
  • Accepted and ignored - cursor, pointer-events, will-change, scroll-behavior, user-select, transition and animation are read without a warning and have no effect, so a stylesheet shared with a web page can be used as it is.

Fixes

  • Flex row items stretch - with the default align-items: stretch, the items in a flex row are now the height of the row, so a fixed column, or a flex: 1 column, with a background or border fills the row. The height is the height of the container, or the tallest item. The container height is applied before the items are laid out, so anything inside an item that is positioned from the bottom is placed correctly. An item with its own height, or an align-self (or align-items) other than stretch, is not stretched. Before this, every item was only the height of its content.
  • Inline flex items (span) - the children of a flex container are blocks, so a span (or other inline element) now has its width and margins, fills its column when it grows, stacks in a column, and is centred by align-items. They stayed inline, so a width was ignored, and a column of spans ran together on one line. Absolutely positioned children are not flex items and are not changed.
  • Percentage border-radius - a percentage was a percentage of the container, so border-radius: 50% on a small circle drew a star shape. It is now a percentage of the width of the element (or the container, if it has no width), and, as in css, the radii are reduced so they are never larger than a side. A 50% radius on a square is a circle.
  • counter-increment on table rows - counters on a tr were not updated, so a counter used in the cells of the row stayed at 0. A row is counted once, and repeated header rows are not counted again. Counters on cells already worked.

Changes

  • overflow: hidden on text that does not wrap - text with white-space: nowrap in a block with overflow: hidden is cut back to the last whole word that fits, the same as lines that overflow vertically are removed. If the first word is wider than the box, it is cut at the last character that fits. Before this the text ran past the edge of the box. overflow: clip is still a clipping rectangle at the edge, and text-overflow: ellipsis still cuts at the character.

9.8.0-beta.5 - 26 October 2026

New css properties

  • word-break - break-all fills each line, breaking a word at any character with no hyphen. normal, keep-all and break-word are accepted (a word longer than a line is already broken). Inherited.
  • overflow-wrap and word-wrap - accepted for compatibility with existing stylesheets. They do not change the layout, as long words are always broken.
  • text-overflow - ellipsis, clip or a quoted string. The end of text that does not wrap (white-space: nowrap) in a block with overflow: hidden (or clip) is replaced so it fits. Inherited.

Fixes

  • Negative text-indent - a negative indent now hangs the first line only. The next line was staying out at the negative position, and so was any text after a <br />. Following lines now start at the edge of the content.

9.8.0-beta.4 - 26 October 2026

Fixes

  • visibility: collapse on table rows - a collapsed row, or a group of rows (thead, tbody, tfoot), is removed from the table with its space, as with display: none. It was treated as hidden, which kept the space. Collapse on any other element is still the same as hidden, and on a column it is hidden.
  • border-collapse and border-spacing are inherited - as in css, they can be set on a container (or the body) and apply to the tables inside, including nested tables. They were only read from the table itself.
  • box-shadow and outline on images - they were only drawn for blocks and tables. Images (inline or block) now have shadows and outlines.
  • cellspacing attribute on a table - supported, a number is in pixels. A css border-spacing overrides it.

9.8.0-beta.3 - 26 October 2026

New Features

  • text-decoration-color, text-decoration-style and text-decoration-thickness - the color, style (solid, double, dotted, dashed or wavy) and thickness of underline, overline and line-through, also accepted in the text-decoration shorthand (text-decoration: underline wavy red 2pt). See text-decoration-style.
  • outline, outline-color, outline-style, outline-width and outline-offset - a line around an element, outside its border, that takes up no space. See outline.
  • box-shadow - offset, blur, spread and color, with more than one shadow and rounded corners. inset shadows are not drawn. See box-shadow.
  • text-shadow - offset, blur and color, with more than one shadow. Inherited. See text-shadow.

Fixes

  • Inline images with a margin - an inline <img> (or other drawn component) with a margin was drawn at its width and height plus the margins, starting at the edge of the margin. It is now drawn at its own size, inside the margin, as a display: block image is. The border was already in the right place.
  • sortBy of plain values - sortBy(values) and sortBy(values, 'desc') sort the values themselves (such as the result of keys()), without a property name.
  • sortBy with duplicate values - items with the same sort value caused an error. They are now all kept, in their original order.

9.8.0-beta.2 - 26 October 2026

New Features

  • keys() function - the keys of a dictionary, or the names of the properties of an object or JSON object, as an array that can be counted, sorted and enumerated. See keys.
  • text-indent - indents the first line of a block of text. Inherited. See text-indent.
  • object-fit and object-position - fit a raster image into its box with contain, cover, none or scale-down, and place it with keywords, percentages or lengths. See object-fit and object-position.
  • border-collapse and border-spacing - collapsed table borders are drawn once between cells and with the table (the wider wins), and separate borders can have space between the cells. See border-collapse and border-spacing.
  • visibility - hidden content keeps its space in the layout but is not drawn. Inherited. See visibility.
  • box-sizing - content-box makes width and height the content only, adding the padding and border. The default (as border-box) includes the padding in the width, and is unchanged. See box-sizing.

Fixes

  • Quoted property names in collection functions - sortBy, sumOf, averageOf, minOf, maxOf, countOf, eachOf, selectWhere and firstWhere accept a quoted name ('price', 'owner.city') as well as .price. A quoted name was previously treated as a constant.
  • Properties named e, pi, true, false and null - a name directly after . or ../ is always a property, so model.e and model.pi work. A bare e or pi is still the constant.
  • join() accepts join(collection, separator) as well as join(separator, item, item...). The collection first order is the one documented.

Scryber.Core.Mvc 9.8.0-beta.1 (and 9.8.0-beta.2)

  • Package dependency fixed - Scryber.Core.Mvc 9.6.0.14-beta to 9.8.0-beta listed a dependency on Scryber.Common, which is not a package (it is included in Scryber.Core), so the package could not be restored from nuget.org. Version 9.8.0-beta.1 depends only on Scryber.Core. Use this version or later.

9.8.0-beta - 25 October 2026

New loop variables and dictionary iteration, the text-transform property, and a number of binding, parsing and font fixes.

Behaviour Changes

  • {{#each}} over a dictionary or JSON object now iterates the entries - for a Dictionary<,> (or any IDictionary), a Newtonsoft JObject or a System.Text.Json object, the loop runs once per entry, with this as the value and @key as the key. It used to run once with the whole object as this, so a template that used {{#each model.someObject}} to bind a single object should use {{#with model.someObject}} instead. The <template data-bind> element and the ForEach component still bind an object once.
  • ../ inside {{#each}} gives the outer item - it used to return the collection being enumerated, so {{../name}} in a nested loop was always empty. It is a single level only; ../../ is not supported.

New Features

  • text-transform - none, uppercase, lowercase and capitalize. Inherited by child elements, can be set from an expression, and a capitalized word continues across inline elements. See text-transform.
  • @first and @last - alongside @index, in output, {{#if}}, if() and css expressions inside a loop. @last is correct for arrays, lists, dictionaries and Linq iterators. They are restored after a nested loop.
  • @key - the key or property name of the current entry when iterating a dictionary or object, or the index for a collection. It is set for each loop and restored when the loop ends, so nested loops see the right value before and after. See @key.
  • var() and calc() inside gradients - linear-gradient() and radial-gradient() colors and positions can use css variables and bound values.
  • background shorthand accepts gradients - background: linear-gradient(...) and radial-gradient(...) were previously not applied.
  • Document.ParseDocument() and ParseHtmlDocument() (and the async versions) have overloads that take ParserSettings - for a TextReader or a Stream, so the conformance mode no longer needs the longer Document.Parse() call.

Fixes

  • Strict mode with {{#each}} over a Linq iterator - a non-resettable enumerable (for example list.Select(...)) failed with Specified method is not supported. Arrays and lists were not affected.
  • Fonts:Register weight and style - the Weight and Style of a registered font are now used, rather than the weight and style declared in the font file. A light font file can be registered as weight 400.
  • <?paperwork ?> processing instruction in HTML5 templates - it was only recognised in XHTML templates.
  • Image factories registered in configuration - a handler for a custom path or type can now decode the stream supplied by a RemoteFileRegistered requestor (request.Callback(owner, request, stream)). The handler receives an empty mime type and should work out the format from the data. Set shouldCache to avoid the request being raised twice for one image.
  • Custom components derived from Panel - child content in the template was silently dropped; it is now kept. A parsed ComponentList declared with [PDFArray(typeof(Panel))] no longer fails with No 'Add' method ... accepting Panel.

Deprecated

  • HtmlFragment - the component is marked obsolete. HTML content is parsed directly into the component tree, or can be included with the object, embed and iframe elements, or data-content binding.

9.7.5 - 7 October 2026

Consistent error handling in strict and lax mode. Invalid syntax is now invalid completely, and missing data is not a syntax error. The full behaviour is in the processing instructions truth table.

Behaviour Changes

  • Invalid expression syntax always throws — in strict and lax mode. This now includes an expression that compiles but is incomplete when evaluated ({{model.items[0}}, {{model.missing.[}}), a function with the wrong number of parameters, and an invalid expression inside a repeating or conditional template ({{#each}}, {{#if}}). Lax mode previously logged these and carried on, or skipped the template.
  • A root variable that is not set (or is null) logs a single error in both modes — e.g. {{model.missing.value}} with no model. Strict mode previously threw, and lax mode logged two warnings. The value is left unset and the document continues.
  • A null part way along, or at the end of, a path is silent — model.missing.value where missing or value does not exist is just null, rather than an error. {{concat(index(), '. ', .object.value)}} with no object now outputs 1. .
  • CSS var() and calc() follow the same rules — var(model.missing.value, red) uses the default if there is no model, missing or value; without a default the property is left unset, with an error logged only if there is no model. Invalid css expressions are validated and raised when the css is parsed.
  • Document.CreateParserSettings() and CreateParserSettingsAsync() now default to Lax — matching Document.ParseDocument() and the render options. A parser-mode processing instruction still overrides the default.
  • Expressions supplied as data to eval() are still treated as any other evaluation failure (strict throws, lax logs a warning), as they are not part of the template.

New Features

  • int() function — a short name for integer(), alongside long(), double() and bool().

Fixes

  • Function documentation corrected — the reference now uses the names the engine registers: monthOf (not monthOfYear), deg, rad, isMatch, matches and swap (not degrees, radians, regexIsMatch, regexMatches and regexSwap). The examples in the expressions crib sheet that used monthofyear never evaluated, and have been corrected.

9.7.4.4 - 1 October 2026

Fixes

  • colspan cell content squeezed into one column — the content of a cell spanning several columns (paragraphs, text) was being laid out at the width of its starting column rather than the full spanned width. The cell’s outer box was already the correct size, but the content inside was not.
  • <figure> no longer forces its content to be unsplittable — a <figure> was set so it could never split across a page, which was meant to keep an image and its caption together but also applied to a long table wrapped in a figure. A table too tall to fit on one page now splits normally instead of failing with an InvalidOperationException.

9.7.4.3 - 1 October 2026

Fixes

  • colspan cells losing a colgroup column’s width — where a <col> column is never occupied by a single-column cell in any row (for example a three-column percentage colgroup where every row spans the middle column), its width was dropped and every colspan cell crossing it lost that width. The width is now resolved through the normal style pipeline, so percentage, em, rem, viewport units, calc() and var() all work on <col> widths.

9.7.4.2 - 10 September 2026

Fixes

  • Image aspect-ratio with a resolved width and height — max-width, max-height, min-width and min-height are now honoured, and the other dimension re-derived from aspect-ratio, when both dimensions were already resolved (for example an <img> sized only by its width/height attributes inside a percentage-width <figure>). Previously that combination skipped clamping and the aspect ratio entirely.
  • <hr> is a real box-model element — it is now a block with border-*, background-color, height, width and margin, instead of a stroked diagonal-line path. Resets such as border: none; height: 4pt; background-color: #369; render a coloured bar instead of a diagonal line, and a bare <hr> keeps its default 1pt solid black bottom border.
  • JSON values from a dictionary — a JsonElement or JToken stored as a value in a Dictionary<string, object> parameter is now normalized in the same way as nested JSON property access, so double() and string() work on a top-level property too.

9.7.4.1 - 8 September 2026

New Features

  • CSS Display Module 3 two-value display — e.g. block flex, inline flow-root, alongside the single-keyword values.
  • hsl() and hsla() colours — supported anywhere a colour is accepted (the CKEditor colour pickers produce them).

Fixes

  • display: table and grid with {{#each}}/{{#with}}/{{#if}} — content generated by a helper is now wrapped correctly rather than dropped or leaving an empty cell, including a table row nested inside the repeated content keeping the table’s shared column grid.
  • Loose display: inline-block inside a table or grid cell is treated leniently as a block, rather than rendering blank.

9.7.4 - 4 September 2026

Fixes

  • Multi-threaded rendering — fixed a data race in font glyph registration (PDFFontWidths) that could corrupt the text of documents rendered concurrently, sometimes writing the wrong glyphs without an exception. Contributed by twofatmonkeys (PR #186). The Scryber.Core.OpenType dependency is updated to 9.7.4, which fixes a companion race in the glyph metric cache. Both are required for concurrent rendering to be safe.

9.7.3 - 4 September 2026

New Features

  • Image EXIF metadata — images now capture EXIF data (including GPS coordinates as signed decimal degrees), available in templates with the new meta(path) and meta(path, key) functions.

Fixes

  • Loose content inside display: table — a child that was not a table row or cell (for example an image inside a designer-authored <figure> with display: table) was silently dropped from the layout, and never registered as a PDF image resource.

9.7.2 - 27 August 2026

New Features

  • CSS structural pseudo-classes — :nth-child(), :nth-last-child(), :first-child, :last-child, :only-child and the -of-type equivalents, with full An+B formulas (odd, even, 2n+1, -n+3). These match across the wrappers produced by {{#each}}.
  • CSS !important — the declaration flag is now detected and takes priority in the cascade.

Fixes

  • Flex row items no longer need to be a Panel — non-container children such as bare text are wrapped so they get a block layout box.
  • Element immediately after {{/each}} — an element with no whitespace after the end of a loop could be dropped when it shared its parent’s tag name.
  • Processing instruction parser-mode is now passed down to the generated document.
  • Expression that fails to evaluate is logged as a warning, rather than an error (an expression that fails to compile is still an error).
  • Font widths — removed a shared buffer in PDFFontWidths as the first part of the multi-threading fix completed in 9.7.4.

9.7.1 - 13 August 2026

Adds fine-grained content permissions for <iframe>, replacing the old all-or-nothing style passthrough.

New Features

  • allow attribute on <iframe> — a ten-type content permissions policy (data-passthrough, style-passthrough, inner-style, inner-link, inner-navigation, inner-images, outer-html, inline-styles, inner-frames, inner-forms) controlling what is kept from embedded content and what passes through from the parent. See the allow attribute reference.
  • data-content on <iframe> now enforces allow — dynamically bound content goes through the same permission-cleaning pipeline as content loaded via src, including outer-html wrapping behaviour.
  • outer-html permission controls whether a full embedded <html>/<body> document is preserved as its own container or reduced to just its body content, now also supporting header/footer content from the embedded document.

Fixes

  • data-passthrough restored as a legacy attribute — the boolean data-passthrough="true"/"false" attribute (superseded by allow during development of this release) is back as a working, [Obsolete]-marked convenience wrapper, so existing templates keep working. It sets both data-passthrough and style-passthrough together, matching its original pre-allow behaviour. New templates should use allow to control each independently.
  • Expression binding regression — deep JSON/JObject property access on a missing intermediate property (e.g. deeparray[1].object.value where object doesn’t exist) had started silently returning a non-empty value instead of an empty result, an incidental regression introduced while building the iframe permissions work. Fixed.

9.7 - 6 August 2026

Significant new version with more general support for CSS and HTML5 features including major improvements in CSS flex, CSS grid, CSS table-xxx. Along with support for z-index, colgroup, and column-fill.

Breaking Changes

  • Image width and height attributes now only accept integer values, as intrinsic size hints. Providing a unit (pt, px, %, etc.) throws an exception. Move unit-based image sizing to style: style="width: 400pt;".

New Features

  • CSS aspect-ratio property sets a fixed width-to-height ratio on images and block elements. When only one CSS dimension is specified, the other is derived from the ratio.
  • Added <colgroup> and <col> table column elements to wire column widths, background colours, and CSS styling directly on column definitions. Also supports the span attribute to apply styling across multiple consecutive columns.
  • Added grid-template-areas and grid-area — define named layout regions and place items into them by name.
  • Added named grid lines in grid-template-columns/grid-template-rows along with reference names in grid-column and grid-row.
  • Added grid auto-fill and auto-fit in repeat() to fill a row with as many fixed-width tracks as will fit without specifying a count.
  • Added grid grid-auto-columns and grid-auto-rows to control the size of implicitly created tracks when items overflow the declared grid.
  • Added grid justify-content and align-content to distribute the grid along the inline and block axes when tracks are smaller than the container.
  • Added full support for flex-basis, flex-direction, flex-flow, flex-grow, flex-shrink so flex containers now output as expected.
  • Added flex align-items in column direction so flex containers now correctly support cross-axis alignment.
  • CSS var() and calc() in flex/grid now work inside all CSS property values.
  • column-fill support for reflowing content in a multi-column layout to match heights in each. Default is still auto to match existing behaviour on templates.
  • z-index support for positioned content, so order of rendering can be controlled.
  • Added FindMatch() to component that can execute a JQuery’esque search for any Components that match that query, returning a collection of results, and queries can be chained.

Fixes

  • SVG image min/max sizing — min-width, max-width, min-height, max-height are now honoured for SVG images, with correct aspect-ratio preservation when only one axis is constrained.
  • SVG images clipping — unsized SVG images (no viewBox, no declared dimensions) no longer clipped to 300×150 regardless of the <img> box size.
  • Page breaks — a page-break-after: always followed immediately by page-break-before: always no longer inserts a redundant blank page between sections.
  • Grid page overflow — continuation row gaps are stripped and height corrections propagate correctly across page breaks.
  • Grid row-span cell height and row-gap border rendering fixed for multi-row spanning cells.
  • Flex wrap — various fixes for inter-row padding/margin/border.
  • List overflow — fixed infinite layout loop when an <ol>/<ul> overflows with zero visible contents.
  • Anonymous table wrapping — anonymous <tr>/<td> insertion no longer absorbs insignificant whitespace nodes, preventing empty cells.
  • Font glyph table — PDFFontDefinition now outputs the correct glyph offset count in the bfrange CMap table.
  • Infinite pagination — fixed a case where a header or footer that itself requested a page break caused the layout engine to loop indefinitely.

9.6-beta - 15 May 2026

  • NEW: Added support for display flex layout.
  • NEW: Added support for display grid layout
  • NEW: Added support for table-x layout
  • NEW: Added support for z-index rendering
  • NEW: Added support for column balancing
  • Fixed an issue with with multiple returns

9.5 - 6 May 2026

Breaking change - removed support for .NET Standard.

As an upgrade to SixLabors.Imaging library 3+ we have now dropped support for dotnet standard. This will hopefully not cause issues, but reach out if so.

  • Added support for webp image formats, both lossy and lossless including alpha

9.3 - 21 April 2026

  • CSS initial support on generic tags for
    • display: flex,
    • display: grid,
    • display: table-xxx.
  • CSS support for table cell rowspan across multiple rows with overflow and stepping calculation.
  • CSS support for border radius on individual columns ()
  • CSS support for setting individual variable values from the document.Params item collections
  • CSS Support for column rule styles on multi-column layouts.
  • CSS support for contain sizing on background images.

  • Code fix pre-pended whitespace on soft return lines with bindings.
  • Code fixes for labeled page sizes and falling back to previous sizes afterwards.
  • Code fixes for sizing and positioning of referenced (rather than inline) SVG images, via the img tag (including %age widths)
  • Code throws an exception when a font is not matched, when running in strict mode.

  • Configuration loading improved for console and forms applications.
  • Configuration section added for Expressions, that supports custom functions.
  • Configuration of custom image factories improved to support async remote loading.

9.2.0.3 - 22 Jan 2026

  • Fixed styling issue when components are hidden using css.

9.2.0.2 - 13 Nov 2025

  • Fixed repeating raster background images with cover size.
  • Added support for repeating SVG background images from Data urls

9.2.0.0 - 6 Nov 2025

  • Public release with all added features from the betas. Too many to list.
  • The documentation is here learning
  • And the refererence section here refererence

Version 9 pre-release

9.1.2-rc.5/6 - 4 Nov 2025

  • Couple of fixes for overflowing tables in a kept together parent
  • SVG font-weight bold and light are now supported
  • Fixed an issue with the reverse function.

9.1.2-rc.4 - 3 Nov 2025

  • Working modification of PDFs and templates using framesets and frames
  • Support for SVG background images with opacity.

9.1.0.7-beta - 22 Sept 2025

  • First release of framesets for trimming and merging documents.
  • Hiding variables that do not have any content.

9.0.0.1-rc.3 - 26 May 2025

  • Added extra html entity (&…;) values to match available sources.

9.0.0.1-rc.2 - 22 May 2025

  • Fixes for template parsing
  • Added data-content to the template element
  • Minor fixes and unit test updates.
  • Second release candidate.

9.0.0.1-rc.1 - 13 May 2025

  • Minor fixes for layout.
  • First release candidate.

9.0.0.1-beta - 6 May 2025

  • Fixed a minor layout issue with multiple footer elements

9.0.0.0-beta - 6 May 2025

  • Completely updated version for .NET 9.0 with support for html, css, svg and binding.
  • WASM compatible package with remote asset and content requests.

NOTE: If upgrading, PLEASE CHECK THE OUTPUT of your documents before releasing.


Version 8

8.0.0.2-beta - 19 March 2025

Added a fix for the rounding of expression results on decimal and double values when the results are very small.

8.0.0.1-beta - 17 Feb 2025

Updated to net8.0 sdk and dependancies updated to the latest stable versions.


Legacy Versions

Version 6

6.0.5.0-beta

Updated to net8.0 sdk and dependencies updated to latest version.

6.0.4.0-beta

Big updates to whitespace handling, support for &nbsp; and hyphens in line breaks.

6.0.3.2-beta

Fix for prioritising parsing unit values in invariant culture on OS’s set to non-invariant culture.

6.0.3.1-beta

Minor fix for transforming svg components (that do not have explict position values).

6.0.3.0-beta

Added fixes for parsing (x)html content on systems not running the english culture. All numeric values are expected to be in english decimal notation - e.g. 1,0234.56 for values in CSS, styles, svg etc. Unit testing works for non-english. May be a couple of values / options missed but hoping not. Added the AddRange option to top level component wrapping lists - (Rows, Cells, Items, etc.) that accepts an IEnumerable<InnerType> instance.

6.0.2.1-beta

Added fix for large inline images. Tested SaveAsPDFAsync.

6.0.1.1-alfa

Support for SaveAsPDFTimer, to check for asyncronous execution in a single threaded application - blazor (or windows forms?), using asyncronous loading of http requests for css images, fonts etc).

6.0.1.0-beta

We now support html - in many of its flavours, through the HTMLAgilityPack

Added parsing non-formal html documents and components from local and remote files (using the ParseHtml and ParseHtmlDocument on the Document class) Added the data-content and data-content-type attributes to visual components so that html and xhtml content can be data bound into pages. Added support for the hyphens css property and it’s use in hypenating long text.

6.0.0.16-beta

Some Big additions and fixes

Added support for the css counters (reset, increment and the counter(s) functions) Added support for css content properties Added support for css ::before and ::after selectors Added support for relative units in styles e.g. 30% and 0.5em - not supported in calc() with multiple units e.g calc(50% - 5px) will not work.

A lot of layout tests to get everything working - precisely.

6.0.0.14-beta

Added support for transformations including css transform property.

6.0.0.12-beta

Changed the reference for ImageSharp to the 2.1.3 Nuget package, rather than the dll. Checks added for support on thread culture in dates and numbers.

6.0.0.10-beta

Added support for Netwtonsoft.Json and the System.Text.Json objects in binding expressions and templates too. Along with adding SoryBy, MaxOf, EachOf, SelectWhere collection functions.

6.0.0.5-beta

Updated to the .net 6.0 sdk, now with support for running as a web assembly with asyncronous loads of stylesheets, images and fonts. Some TTC and TTF font files do not render glyfs correctly, but working for many fonts.


Version 5

5.1.0.2-beta

A major update that now fully supports expressions in attributes, css var and clac along with text, using the handlebars notation - {{…}} This includes support for simple mathematical expressions from the document variables as welll as functions such as ‘concat’, ‘if(value, ‘true’, ‘false’)’ or ‘index() + model.property’

5.0.7

Adding support for the float left and right within blocks along with css linear and radial gradients

5.0.6.3

Fixes an issue with some TTF fonts on Windows (specifically azure) to look for the best character mapping table, and multi-span text not flowing well due to some changes to try and get float working.

5.0.6

The April release is a bit of a catch up and fix with updates for:

  • Supporting parsed JSON objects in binding - along with std types and dynamic objects.
  • margin:value is applied to all margins even if explicit left, right etc. has been previously applied.
  • Conformance is now carried through to templates, so errors are not indavertantly raised inside the template.
  • Missing background images will not raise an error.
  • Support for data images (src=’data:image/..’) within content - thanks Dan Rusu!
  • Images are not duplicated within the output for the same source.

5.0.5

Multiple enhancements including

  • Embed and iFrame support.
  • Binding speed improvements for longer documents.
  • Support for border-left, border-right, etc
  • Support for encryption and restrictions
  • Support for base href in template files.
  • Classes and styles on templates are supported.
  • Added em, strong, strike, del, ins elements
  • Html column width and break inside
  • CSS and HTML Logging
  • Fixed application of multiple styles with the same word inside
  • Allow missing images on the document is now supported.
  • Contain fill style for background images.