Stablev1.5.0190M downloads
A full CSS parser and CSSOM provider to include support for stylesheets, inline styles, and style computations within AngleSharp.
$
dotnet add package AngleSharp.Css
AngleSharp.Css Documentation
We have more detailed information regarding the following subjects:
General
- Getting Started
- Value Model
- CSSOM
- Core Interfaces
- Extensibility
- Provided Services
- Supported At-Rules
- Supported Declarations
- Typed OM
- Painting API
Tutorials
Recommended Reading Order
If you are new to AngleSharp.Css, this order gives a practical ramp-up:
- Getting Started for setup and first working code.
- Examples for copy-paste recipes.
- API Documentation for deeper understanding of the CSSOM model.
- CSSOM and Core Interfaces once you need a deeper model understanding.
- Supported At-Rules and Supported Declarations when checking implementation coverage and constraints.
- Value Model and Render Tree Examples for style computation workflows.
- Extensibility and Provided Services for custom integrations, and the Painting API for drawing
paint()images with your own painters or scripting engine. - FAQ for common pitfalls and output customization.
What You Can Do With AngleSharp.Css
Typical use cases include:
- Parsing and validating CSS snippets from editors, CMS content, or user input.
- Inspecting and rewriting style declarations programmatically.
- Loading real HTML pages and accessing linked stylesheets through the DOM.
- Computing final values (e.g., color, width, display) for elements.
- Building tooling: linters, migration scripts, design token extractors, or static analyzers.
Edit this page on GitHub
View as Markdown
Synced from
b358610