Aspose.CSS for .NET brings modern CSS layout to HTML rendering from C# and any .NET language: flexbox, grid and document flow, rendered to PDF documents and PNG images inside your own process. Page size, margins, orientation and breaks are set with CSS; fonts, images and stylesheets load from files, streams or your own resource handler. Screen-layout geometry is measured against Chromium on selected Web Platform Tests layout suites, and the compatibility report is published with each release. Aspose.CSS for .NET is in development; the .NET release ships first, with Python, Java, C++ and TypeScript following on the same engine design.
Aspose.CSS for .NET Features
Browser-designed documents: the CSS layouts your team designs in the browser, carried into application output
CSS flexbox layouts
CSS grid layouts
Document flow: block, inline and table layout
HTML to PDF
HTML to PNG
PDF page setup: size, margins and orientation with CSS @page
Page breaks: forced and avoided breaks, widows and orphans
Fonts and text: system and embedded fonts, fallback, shaping and bidirectional text
Resources from files, streams or your own handler
In-process rendering: no browser to install, automate, update or secure
Chromium compatibility report published with each release
Designed in the Browser, Delivered as a Document
Your team already designs in HTML and CSS and checks the result in a browser. Aspose.CSS for .NET carries that layout into the PDF documents and PNG previews your application generates, so the template you approved on screen is the template you ship, with no browser process in your deployment.
Measured Against Chromium
CSS fidelity is a measured property of this engine, not a feature list. Screen-layout geometry is compared with Chromium test by test on selected Web Platform Tests layout suites, and the compatibility report, with its test scope, tolerance, results and known differences, is published in the documentation with each release.