Vixen
02b45cc4
csharp
public sealed class StyleSheetDocument

A stylesheet, open for editing.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

The preview is genuinely live here, and that is the difference from VXML. A stylesheet needs no compilation: StyleEngine.Replace swaps a sheet's text and restyles, so the pane shows the real cascade over a real element tree. It is the cheapest thing in doc 11's table and the one that pays back most often, because most of what a .vcss is edited for is a number somebody wants to see move.

⚠ Nothing here reports a syntax error. StyleSheetLoader follows CSS's own recovery rules — a declaration it cannot parse is dropped and the rest of the rule stands — and reports nothing to a caller, which is right for a browser and unhelpful in an editor. The rule that vanished is visible in the preview and invisible in the gutter; a diagnostic-producing loader is the fix and it belongs in Vixen.Ui.Styling.

Fields and properties (2)

  • public const string Extension

    What a stylesheet is written as.

  • public override ICodeTokenizer Tokenizer

Methods (1)

Used by (4)

  • CodeAnalysisTestsVixen.Editor.AssetEditors.Tests
  • EditorViewTestsVixen.Editor.AssetEditors.Tests
  • MarkupEditorFactoryVixen.Editor.AssetEditors
  • PreviewCodeEditorViewVixen.Editor.AssetEditors