D Donkeh docs
GitHub

CSS support

Donkeh parses real stylesheets with a CSS engine rather than translating a subset at build time. This page tracks the 168 property names the resolver recognises, the selector features that participate in matching, and the fastest way to get a CSS bug fixed.

Revision column Each property currently points at the previous framework commit, a68256d. That is a deliberate placeholder until per-property history is backfilled: it identifies the support snapshot, not the exact commit that first added each property.

Selectors and at-rules

The engine supports type, class, id, universal and attribute selectors, plus descendant, child, adjacent-sibling and general-sibling combinators. Specificity, source order and cascade layers decide the winner.

FeatureStatus
Interaction and state pseudo-classes:hover, :focus, :active, :focus-visible, :checked, :disabled, :enabled, :required, :read-only and structural selectors.
Logical pseudo-classes:not(), :is(), :where() and :has() are recognised but flagged as unsupported by the matcher. The native host expands simple :is(a, b) selector lists before parsing, which keeps icon-font stylesheets working.
Pseudo-elements::before and ::after generate a box when their resolved content is a string. CSS hexadecimal string escapes such as \f0c9 are decoded. ::selection is matched and its background-color (or the colour part of background) styles the text highlight; color is stored on the computed style for hosts that paint selected glyphs themselves. Other pseudo-elements are ignored.
Conditional at-rules@media, @supports and @container gate matching. @layer participates in the cascade.
Animations@keyframes and @-webkit-keyframes are parsed; transitions and animations run through the style resolver.
ImportsThe data engine only records @import. The native host fetches HTTP, file and data URLs, inlines them and resolves relative URLs against the declaring stylesheet. The browser host lets the browser load them.

Registered properties

The table lists every property name currently mapped to a CssProperty. A registered name can still have partial value support, so include the exact value in a bug report.

Support is Supported when the resolver writes a computed value that a running stage consumes, Partial support when only part of the syntax changes output, and Not supported when the name or value is parsed but nothing downstream reads it yet. Used by names the stage that consumes the computed value: LayoutLab for layout, text and paint instructions, GLRenderer for GPU drawing, Windowing for input, scrolling, native window behaviour and media, DataEngine for cascade processing, and Inspector for animation inspection.

PropertySupportUsed bySupport revisionReport
allSupportedDataEngine (cascade), LayoutLaba68256dReport
displaySupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
positionSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
floatSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
clearSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
box-sizingSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
visibilityPartial support collapse behaves like hidden and still occupies layout space.LayoutLab (paint), GLRenderera68256dReport
opacitySupportedLayoutLab (paint), GLRenderera68256dReport
z-indexSupportedLayoutLab (stacking), GLRenderer (paint order)a68256dReport
widthSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
heightSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
min-widthSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
min-heightSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
max-widthSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
max-heightSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
aspect-ratioSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
topSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
rightSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
bottomSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
leftSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
insetSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
marginSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
margin-topSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
margin-rightSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
margin-bottomSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
margin-leftSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
paddingSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
padding-topSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
padding-rightSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
padding-bottomSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
padding-leftSupportedLayoutLab (box geometry), GLRenderer (paint)a68256dReport
borderSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-widthSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-styleSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-colorSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-topSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-rightSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-bottomSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-leftSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-top-widthSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-right-widthSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-bottom-widthSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-left-widthSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-top-styleSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-right-styleSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-bottom-styleSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-left-styleSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-top-colorSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-right-colorSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-bottom-colorSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-left-colorSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-radiusSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-top-left-radiusSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-top-right-radiusSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-bottom-right-radiusSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
border-bottom-left-radiusSupportedLayoutLab (box model), GLRenderer (paint)a68256dReport
backgroundPartial support first-layer shorthand; per-layer colours and sizes are not modelled.LayoutLab (paint), GLRenderera68256dReport
background-colorSupportedLayoutLab (paint), GLRenderera68256dReport
background-imageSupportedLayoutLab (paint), GLRenderera68256dReport
background-sizeSupportedLayoutLab (paint), GLRenderera68256dReport
background-positionSupportedLayoutLab (paint), GLRenderera68256dReport
background-repeatSupportedLayoutLab (paint), GLRenderera68256dReport
background-clipSupportedLayoutLab (paint), GLRenderera68256dReport
background-originSupportedLayoutLab (paint), GLRenderera68256dReport
background-attachmentPartial support the fixed flag is stored; fixed-background scrolling is limited.LayoutLab (paint), GLRenderera68256dReport
colorSupportedLayoutLab (paint), GLRenderera68256dReport
caret-colorSupported auto, a colour, or transparent to hide the caret.Windowing (caret overlay)-Report
fontPartial support family, size, weight, style and line-height only.LayoutLab (text), GLRenderer (glyphs)a68256dReport
font-familySupportedLayoutLab (text), GLRenderer (glyphs)a68256dReport
font-sizeSupportedLayoutLab (text), GLRenderer (glyphs)a68256dReport
font-weightSupportedLayoutLab (text), GLRenderer (glyphs)a68256dReport
font-styleSupportedLayoutLab (text), GLRenderer (glyphs)a68256dReport
line-heightSupportedLayoutLab (text), GLRenderer (glyphs)a68256dReport
letter-spacingSupportedLayoutLab (text), GLRenderer (glyphs)a68256dReport
text-alignSupportedLayoutLab (text), GLRenderer (glyphs)a68256dReport
text-indentSupportedLayoutLab (text), GLRenderer (glyphs)a68256dReport
vertical-alignPartial support length values only; keyword alignment falls back to auto.LayoutLab (text), GLRenderer (glyphs)a68256dReport
text-decorationPartial support line flags only; style, colour and thickness are ignored.LayoutLab (text), GLRenderer (glyphs)a68256dReport
text-decoration-lineSupportedLayoutLab (text), GLRenderer (glyphs)a68256dReport
text-transformSupportedLayoutLab (text), GLRenderer (glyphs)a68256dReport
white-spaceSupportedLayoutLab (text), GLRenderer (glyphs)a68256dReport
word-breakPartial support only break-all maps to overflow-wrap:anywhere.LayoutLab (text), GLRenderer (glyphs)a68256dReport
overflow-wrapSupportedLayoutLab (text), GLRenderer (glyphs)a68256dReport
text-overflowSupportedLayoutLab (text), GLRenderer (glyphs)a68256dReport
directionSupportedLayoutLab (text), GLRenderer (glyphs)a68256dReport
writing-modeSupportedLayoutLab (text), GLRenderer (glyphs)a68256dReport
-webkit-line-clampSupportedLayoutLab (text), GLRenderer (glyphs)a68256dReport
flexSupportedLayoutLab (flex/grid)a68256dReport
flex-directionSupportedLayoutLab (flex/grid)a68256dReport
flex-wrapSupportedLayoutLab (flex/grid)a68256dReport
flex-flowSupportedLayoutLab (flex/grid)a68256dReport
justify-contentSupportedLayoutLab (flex/grid)a68256dReport
align-itemsSupportedLayoutLab (flex/grid)a68256dReport
align-contentSupportedLayoutLab (flex/grid)a68256dReport
align-selfSupportedLayoutLab (flex/grid)a68256dReport
flex-growSupportedLayoutLab (flex/grid)a68256dReport
flex-shrinkSupportedLayoutLab (flex/grid)a68256dReport
flex-basisSupportedLayoutLab (flex/grid)a68256dReport
gapSupportedLayoutLab (flex/grid)a68256dReport
row-gapSupportedLayoutLab (flex/grid)a68256dReport
column-gapSupportedLayoutLab (flex/grid)a68256dReport
orderSupportedLayoutLab (flex/grid)a68256dReport
gridPartial support track templates and auto-flow; area syntax is limited.LayoutLab (flex/grid)a68256dReport
grid-templatePartial support track templates; area declarations are ignored.LayoutLab (flex/grid)a68256dReport
grid-template-columnsSupportedLayoutLab (flex/grid)a68256dReport
grid-template-rowsSupportedLayoutLab (flex/grid)a68256dReport
grid-template-areasSupportedLayoutLab (flex/grid)a68256dReport
grid-auto-columnsSupportedLayoutLab (flex/grid)a68256dReport
grid-auto-rowsSupportedLayoutLab (flex/grid)a68256dReport
grid-auto-flowSupportedLayoutLab (flex/grid)a68256dReport
grid-columnSupportedLayoutLab (flex/grid)a68256dReport
grid-column-startSupportedLayoutLab (flex/grid)a68256dReport
grid-column-endSupportedLayoutLab (flex/grid)a68256dReport
grid-rowSupportedLayoutLab (flex/grid)a68256dReport
grid-row-startSupportedLayoutLab (flex/grid)a68256dReport
grid-row-endSupportedLayoutLab (flex/grid)a68256dReport
grid-areaSupportedLayoutLab (flex/grid)a68256dReport
justify-itemsSupportedLayoutLab (flex/grid)a68256dReport
justify-selfSupportedLayoutLab (flex/grid)a68256dReport
place-itemsSupportedLayoutLab (flex/grid)a68256dReport
place-contentPartial support only the align-content half is applied.LayoutLab (flex/grid)a68256dReport
overflowSupportedLayoutLab (scroll), Windowing (input)a68256dReport
overflow-xSupportedLayoutLab (scroll), Windowing (input)a68256dReport
overflow-ySupportedLayoutLab (scroll), Windowing (input)a68256dReport
transformPartial support 2D translate, scale, rotate, skew and matrix functions only.LayoutLab (paint), GLRenderera68256dReport
transform-originPartial support horizontal and vertical origins only.LayoutLab (paint), GLRenderera68256dReport
box-shadowSupportedLayoutLab (paint), GLRenderera68256dReport
outlineSupportedLayoutLab (paint), GLRenderera68256dReport
outline-widthSupportedLayoutLab (paint), GLRenderera68256dReport
outline-styleSupportedLayoutLab (paint), GLRenderera68256dReport
outline-colorSupportedLayoutLab (paint), GLRenderera68256dReport
outline-offsetSupportedLayoutLab (paint), GLRenderera68256dReport
filterSupportedLayoutLab (paint), GLRenderera68256dReport
backdrop-filterSupportedLayoutLab (paint), GLRenderera68256dReport
object-fitSupportedWindowing (img/video), GLRenderera68256dReport
object-positionNot supported images and video are centred.—a68256dReport
table-layoutNot supported tables always use automatic layout.—a68256dReport
border-collapseSupportedLayoutLab (table)a68256dReport
border-spacingSupportedLayoutLab (table)a68256dReport
column-countNot supported no multi-column layout consumes it.—a68256dReport
scrollbar-colorSupportedLayoutLab (scrollbars), GLRenderera68256dReport
scrollbar-widthSupportedLayoutLab (scrollbars)a68256dReport
scroll-behaviorSupportedWindowing (scrolling)a68256dReport
contentSupportedLayoutLab (generated content), GLRenderera68256dReport
clip-pathSupportedLayoutLab (paint), GLRenderera68256dReport
maskSupportedLayoutLab (paint), GLRenderera68256dReport
mix-blend-modeSupportedLayoutLab (paint), GLRenderera68256dReport
isolationSupportedLayoutLab (paint), GLRenderera68256dReport
pointer-eventsSupportedWindowing (hit testing)a68256dReport
cursorSupportedWindowing (pointer)a68256dReport
user-selectNot supported there is no text-selection model.—a68256dReport
app-regionSupportedWindowing (native drag)a68256dReport
-webkit-app-regionSupportedWindowing (native drag)a68256dReport
will-changeNot supported the performance hint is ignored.—a68256dReport
containNot supported containment hints are ignored.—a68256dReport
animationSupportedLayoutLab, Windowing (clock), Inspectora68256dReport
animation-nameSupportedLayoutLab, Windowing (clock), Inspectora68256dReport
animation-durationSupportedLayoutLab, Windowing (clock), Inspectora68256dReport
animation-timing-functionSupportedLayoutLab, Windowing (clock), Inspectora68256dReport
animation-delaySupportedLayoutLab, Windowing (clock), Inspectora68256dReport
animation-iteration-countSupportedLayoutLab, Windowing (clock), Inspectora68256dReport
animation-directionSupportedLayoutLab, Windowing (clock), Inspectora68256dReport
animation-fill-modeSupportedLayoutLab, Windowing (clock), Inspectora68256dReport
animation-play-stateSupportedLayoutLab, Windowing (clock), Inspectora68256dReport
transitionSupportedLayoutLab, Windowing (clock), Inspectora68256dReport
transition-propertySupportedLayoutLab, Windowing (clock), Inspectora68256dReport
transition-durationSupportedLayoutLab, Windowing (clock), Inspectora68256dReport
transition-timing-functionSupportedLayoutLab, Windowing (clock), Inspectora68256dReport
transition-delaySupportedLayoutLab, Windowing (clock), Inspectora68256dReport

Reporting a CSS bug

Use the CSS bug report form. It asks for the property and revision, host, pipeline stage, minimal UI tree, minimal CSS, expected and actual rendering, and reproduction steps. That context is usually enough to turn a visual complaint into a failing layout or paint test.

Make the reproduction small One component, one stylesheet, no unrelated framework code. If the bug only appears with other rules present, include the smallest set that still triggers it. A screenshot plus a computed-style or layout dump is worth more than a long description.

Reproduction skeleton

using Donkeh.Hosting;
using Donkeh.UILab;
using static Donkeh.UILab.HtmlHelper;
using static Donkeh.UILab._;

[AppRoot(Width = 800, Height = 600, Title = "CSS repro")]
public sealed class App : Component
{
    public override Node Render() =>
        Div(new() { ClassName = "box" },
            Span(new() { ClassName = "label" }, Text("Hello")));
}
.box {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.label {
    color: rebeccapurple;
}

Replace the smallest relevant rule and attach the actual result. If the problem needs a specific font, image, viewport or platform, say so in the environment and notes fields.

Issue template fields

FieldWhat to include
Property or featureThe exact CSS name, selector, at-rule or function involved.
Support revisionThe short revision from this page, for example a68256d.
Host and stageDesktop, Android or browser, and whether the problem is parsing, matching, computed values, layout, paint or animation.
Minimal UI tree and CSSThe smallest component and stylesheet that still show the difference.
Expected and actualDescribe browser-equivalent behaviour and what Donkeh produced. Include measurements for layout bugs.
Screenshots or dumpsFrame capture, inspector style dump, or the layout tree. Drag images straight into the form.