SvgDocumentCompatibilityLoader Class

Definition

Browser-compatibility focused loader for Svg.Custom.

The upstream loader is good enough for basic SVG parsing, but the Chrome-backed W3C rows showed two loader-specific gaps that matter before CSS can be applied correctly:

  1. relative stylesheet references need a stable document base URI, even when the SVG is opened through the convenience API and CSS is applied after parsing;
  2. the XML/tree-loading path needs to preserve the raw stylesheet text so the stricter browser-compatibility CSS pass can run after the document model is built.

This class keeps the upstream XML tree construction shape and delegates the Chrome-aligned CSS policy to Svg.SvgCssCompatibilityProcessor once the raw style sources have been collected.

public static class SvgDocumentCompatibilityLoader
Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Methods (8)