Skip to content

HTML and CSS profile (generated reference)

Generated from nativehtmlkit-host 1.0.3 in headless mode. CSS profile ui4me-desktop-1.0 (host.hello capabilities css_profile: ui4me-desktop-1.0). Every value below is the host's own answer to a wire-v1 request; see the HTML and CSS support guide for explanations and caveats. Headless mode exercises parsing, style, layout and document state, not native painting, input or screen readers.

Regenerate: python3 scripts/docs/generate-html-css-reference.py --host PATH (--check verifies).

1. CSS profile features (css_profile op)

The profile lists the features that differ from "everything Stylo parses" or that need a decision. States: on (enabled), off (disabled by the profile; declarations are dropped), unavailable (the pinned engine cannot parse it), filtered (removed or reported by the profile filter). A property or selector that does not appear here is governed by section 2/4.

Group on off unavailable filtered
at-rule container, font-face, import, keyframes, layer, media, namespace, property, scope, starting-style, supports custom-media, font-palette-values, page, page-vertical, page-width-change, scope-implicit, view-transition counter-style font-feature-values
display -webkit-box, -webkit-inline-box, block, contents, flex, flow-root, grid, inline, inline-block, inline-flex, inline-grid, inline-table, list-item, none, table grid-lanes, inline-grid-lanes ruby, ruby-base, ruby-base-container, ruby-text, ruby-text-container
function calc, color-mix, counter, fit-content, light-dark, light-dark-image, oklch, progress container-style-query, cross-fade, random, anchor-size
media prefers-reduced-motion
property -webkit-line-clamp, accent-color, anchor-name, animation, appearance, backdrop-filter, break-after, break-before, break-inside, column-count, column-fill, column-rule, column-span, column-width, columns, contain, contain-intrinsic-size, container, container-name, container-type, content-visibility, counter-increment, counter-reset, field-sizing, font-optical-sizing, font-synthesis, font-variation-settings, hyphenate-character, hyphens, mask, overscroll-behavior, position-anchor, resize, scroll-behavior, scroll-margin, scroll-padding, scroll-snap, scrollbar-color, scrollbar-gutter, scrollbar-width, text-combine-upright, text-orientation, text-overflow, text-underline-offset, text-underline-position, transition, writing-mode -webkit-text-fill-color, animation-timeline, corner-shape, font-size-adjust, font-variant-emoji, initial-letter, line-clamp, page, position-area, position-try, view-transition, zoom -webkit-text-stroke, counter-set, image-orientation, print-color-adjust, shape-outside, text-decoration-skip-ink baseline-source
pseudo backdrop, first-letter, first-line, marker details-content color-swatch, file-selector-button, part, slotted
selector dir, has, modal, nth-child-of, open host
syntax nesting
unit cq lh-normal
value -webkit-fill-available, background-clip-text, font-variant-caps-all, revert-rule, stretch, subgrid, system-ui, text-wrap-balance, flex-wrap-balance, text-wrap-style-stable, word-break-break-word background-clip-border-area, shape-function, text-indent-each-line, text-indent-hanging, text-wrap-pretty, white-space-collapse-preserve-spaces clip-path-url, filter-url

2. CSS properties (get_computed_style)

Each name was asked of get_computed_style on a <div>. supported: the host computes it (this does not prove every value renders natively); unsupported: excluded by the profile (feature id shown; declarations are parsed and ignored); invalid: not a property name the engine knows. inh marks inherited properties.

  • Box model and sizing — supported: display, box-sizing, width, height, min-width, min-height, max-width, max-height, margin, margin-top, margin-inline, margin-block, padding, padding-top, padding-inline, padding-block, aspect-ratio, inline-size, block-size, overflow, overflow-x, overflow-y, overflow-clip-margin, visibility inh, field-sizing, contain, contain-intrinsic-size, content-visibility, container-type, container-name.
  • Positioning — supported: position, top, right, bottom, left, inset, inset-inline, z-index, float, clear, isolation, anchor-name, position-anchor, position-area. Not supported: position-try (unsupported: css.property.position-try).
  • Flexbox and grid — supported: flex, flex-direction, flex-wrap, flex-flow, flex-grow, flex-shrink, flex-basis, order, justify-content, justify-items, justify-self, align-content, align-items, align-self, place-content, place-items, place-self, gap, row-gap, column-gap, grid-template-columns, grid-template-rows, grid-template-areas, grid-auto-flow, grid-auto-columns, grid-auto-rows, grid-column, grid-row, grid-area.
  • Multi-column and fragmentation — supported: columns, column-count, column-width, column-gap, column-rule, column-span, column-fill, break-before, break-after, break-inside, orphans inh, widows inh.
  • Tables and lists — supported: table-layout, border-collapse inh, border-spacing inh, caption-side inh, empty-cells inh, vertical-align, list-style, list-style-type inh, list-style-position inh, list-style-image inh, counter-reset, counter-increment. Not supported: counter-set (unsupported: css.property.counter-set).
  • Text and fonts — supported: color inh, font, font-family inh, font-size inh, font-weight inh, font-style inh, font-stretch inh, font-variant, font-variant-caps inh, font-variant-numeric inh, font-feature-settings inh, font-variation-settings inh, font-optical-sizing inh, font-kerning inh, font-synthesis, line-height inh, letter-spacing inh, word-spacing inh, text-align inh, text-align-last inh, text-indent inh, text-transform inh, text-decoration, text-decoration-line, text-decoration-style, text-decoration-color, text-decoration-thickness, text-underline-offset inh, text-underline-position inh, text-shadow inh, text-overflow, text-wrap, text-wrap-mode inh, text-wrap-style inh, white-space, white-space-collapse inh, word-break inh, overflow-wrap inh, hyphens inh, hyphenate-character inh, tab-size inh, line-clamp, -webkit-line-clamp, direction inh, unicode-bidi, writing-mode inh, text-orientation inh, text-combine-upright inh, quotes inh. Not supported: font-size-adjust (unsupported: css.property.font-size-adjust), text-decoration-skip-ink (unsupported: css.property.text-decoration-skip-ink), -webkit-text-stroke (unsupported: css.property.-webkit-text-stroke), -webkit-text-fill-color (unsupported: css.property.-webkit-text-fill-color), initial-letter (unsupported: css.property.initial-letter).
  • Backgrounds, borders and effects — supported: background, background-color, background-image, background-position, background-size, background-repeat, background-clip, background-origin, background-attachment, background-blend-mode, border, border-width, border-style, border-color, border-radius, border-image, border-top-left-radius, outline, outline-offset, box-shadow, opacity, filter, backdrop-filter, mix-blend-mode, clip-path, mask, mask-image, object-fit, object-position, image-rendering inh, accent-color inh, caret-color inh, color-scheme inh, appearance. Not supported: shape-outside (unsupported: css.property.shape-outside), image-orientation (unsupported: css.property.image-orientation), corner-shape (unsupported: css.property.corner-shape).
  • Transforms, transitions and animations — supported: transform, transform-origin, translate, rotate, scale, perspective, transform-style, backface-visibility, transition, transition-property, transition-duration, transition-timing-function, transition-delay, transition-behavior, animation, animation-name, animation-duration, animation-timing-function, animation-iteration-count, animation-direction, animation-fill-mode, animation-play-state, animation-delay. Not supported: animation-timeline (unsupported: css.property.animation-timeline), view-transition-name (unsupported: css.property.view-transition).
  • Interaction and scrolling — supported: cursor inh, pointer-events inh, user-select, touch-action, resize, scroll-behavior, scroll-snap-type, scroll-snap-align, scroll-margin, scroll-padding, overscroll-behavior, scrollbar-width, scrollbar-color inh, scrollbar-gutter, will-change. Not supported: zoom (unsupported: css.property.zoom), print-color-adjust (unsupported: css.property.print-color-adjust).

3. Length units

width: 10<unit> on an element with line-height: 20px (root line-height: 20px, font-size 16px) inside a 400x300px size container, in an 800x600 viewport; the computed width (auto means the declaration was dropped).

Unit Computed width
% 10%
Q 9.44882px
cap 114.24px
ch 89.44px
cm 377.953px
cqb 30px
cqh 30px
cqi 40px
cqmax 40px
cqmin 30px
cqw 40px
dvh 60px
em 160px
ex 85.76px
ic 160px
in 960px
lh 200px
lvh 60px
mm 37.7953px
pc 160px
pt 13.3333px
px 10px
rem 160px
rlh 200px
svh 60px
vh 60px
vmax 80px
vmin 60px
vw 80px

4. Selectors

A rule selector { color: rgb(1, 2, 3) } and a matching element; matched means the computed colour changed.

Selector feature Probe Matched
:checked input:checked yes
:defined p.def:defined yes
:dir(rtl) p:dir(rtl) yes
:disabled button:disabled yes
:empty span.e:empty yes
:first-child / :last-of-type ol > li:first-child yes
:has() section:has(> .marker) .h yes
:indeterminate (progress without value) progress:indeterminate no
:invalid input.v:invalid yes
:is() / :where() :is(.a, .b):where(p) yes
:lang(de) p:lang(de) yes
:link / :any-link a:any-link yes
:not() p:not(.zzz).n yes
:nth-child(An+B of S) li:nth-child(2 of .o) yes
:placeholder-shown input:placeholder-shown yes
:read-only (textarea readonly) textarea:read-only no
:read-write (input) input.rw:read-write no
:required input:required yes
:root :root yes
:visited (privacy: never matches) a:visited no
@scope with explicit root @scope (.scope-root) { p { color: rgb(1, 2, 3); } } yes
attribute [a=b] [data-x='1'] yes
attribute [a^=b] [data-y^='ab'] yes
descendant / child main > section p.d yes
nesting (&) div.nest { & > p { color: rgb(1, 2, 3); } } yes
sibling + and ~ h2 + p.sib ~ p yes
type, class, id p.k#s1 yes

5. Media queries

Default: a fresh headless document (800x600 CSS px, scale 1, no native preferences). Override: after set_environment {color_scheme: "dark", reduced_motion: "reduce"}.

Query Default Override
(aspect-ratio > 1) yes yes
(forced-colors: active) no no
(hover: hover) yes yes
(max-width: 100px) no no
(min-width: 100px) yes yes
(orientation: landscape) yes yes
(pointer: fine) yes yes
(prefers-color-scheme: dark) no yes
(prefers-color-scheme: light) yes no
(prefers-contrast: more) no no
(prefers-reduced-motion: reduce) no yes
(resolution: 1dppx) yes yes
print no no
screen yes yes

6. Markup accepted by document.load

Each snippet was loaded as a whole document. A rejected document fails the load with the error shown and the previous document stays in place.

Markup Loads Error Notes
<audio controls> yes 300x54 px box
<canvas> yes 300x150 px box
<embed> no -32602: INVALID_ARGUMENT: Unsupported active element: embed
<iframe> no -32602: INVALID_ARGUMENT: Unsupported active element: iframe
<img src=https://...> yes
<img> with data: URL yes
<link rel=stylesheet> (missing file) yes
<math> yes
<noscript> yes
<object> no -32602: INVALID_ARGUMENT: Unsupported active element: object
<script> no -32602: INVALID_ARGUMENT: Unsupported active element: script
<svg> inline yes
<template> yes
<video> yes 300x150 px box
contenteditable="false" yes
contenteditable="true" no -32602: UNSUPPORTED_FEATURE: contenteditable is outside the hosted desktop profile; use input or textarea
custom element yes
duplicate id no -32602: INVALID_ARGUMENT: Duplicate element ID: a
id with a space no -32602: INVALID_ARGUMENT: Invalid public element ID
on* attribute no -32602: INVALID_ARGUMENT: Script-bearing attributes are unsupported
plain document yes
srcdoc attribute no -32602: INVALID_ARGUMENT: Script-bearing attributes are unsupported

7. <input type> values

type Loads Accessibility role / error
button yes Button
checkbox yes CheckBox
color no -32602: INVALID_ARGUMENT: Input type 'color' requires a native picker and is unavailable in NativeHTMLKit Core
date no -32602: INVALID_ARGUMENT: Input type 'date' requires a native picker and is unavailable in NativeHTMLKit Core
datetime-local no -32602: INVALID_ARGUMENT: Input type 'datetime-local' requires a native picker and is unavailable in NativeHTMLKit Core
email yes EmailInput
file yes Button
hidden yes None
image yes Button
month no -32602: INVALID_ARGUMENT: Input type 'month' requires a native picker and is unavailable in NativeHTMLKit Core
number yes SpinButton
password yes PasswordInput
radio yes RadioButton
range yes Slider
reset yes Button
search yes SearchInput
submit yes Button
tel yes PhoneNumberInput
text yes TextInput
time no -32602: INVALID_ARGUMENT: Input type 'time' requires a native picker and is unavailable in NativeHTMLKit Core
url yes UrlInput
week no -32602: INVALID_ARGUMENT: Input type 'week' requires a native picker and is unavailable in NativeHTMLKit Core

8. Accessibility roles

Role of the element with id=x in get_accessibility_tree (AccessKit role names; excluded means the element has no node of its own).

HTML elements

Element Role
a (no href) excluded
a href Link
article Article
aside Complementary
blockquote Blockquote
button Button
details Details
dialog (open) Dialog
div excluded
dl DescriptionList
fieldset Group
figure Figure
footer (top level) ContentInfo
form excluded
h2 Heading
header (top level) Banner
hr Splitter
img alt Image
input checkbox CheckBox
input file Button
input number SpinButton
input password PasswordInput
input radio RadioButton
input range Slider
input search SearchInput
input text TextInput
label excluded
main Main
meter Meter
nav Navigation
ol > li ListItem
output excluded
p Paragraph
progress ProgressIndicator
section excluded
select ComboBox
select size=3 ListBox
summary DisclosureTriangle
table Table
textarea MultilineTextInput
th ColumnHeader
ul List

ARIA role attribute on a <div>

role Mapped role
alert Alert
alertdialog AlertDialog
article Article
banner Banner
button Button
cell Cell
checkbox CheckBox
columnheader ColumnHeader
combobox ComboBox
complementary Complementary
contentinfo ContentInfo
definition excluded
dialog Dialog
document Document
feed excluded
figure Figure
form Form
grid Grid
gridcell GridCell
group Group
heading Heading
img Image
link Link
list List
listbox ListBox
listitem ListItem
log Log
main Main
marquee excluded
math excluded
menu Menu
menubar MenuBar
menuitem MenuItem
menuitemcheckbox MenuItemCheckBox
menuitemradio MenuItemRadio
meter Meter
navigation Navigation
note Note
option ListBoxOption
paragraph Paragraph
progressbar ProgressIndicator
radio RadioButton
radiogroup RadioGroup
region Region
row Row
rowheader RowHeader
search Search
searchbox SearchInput
separator Splitter
slider Slider
spinbutton SpinButton
status Status
switch Switch
tab Tab
table Table
tablist TabList
tabpanel TabPanel
term excluded
timer excluded
toolbar Toolbar
tooltip Tooltip
tree Tree
treegrid TreeGrid
treeitem TreeItem

Source: nativehtmlkit-core/docs/reference/html-css-profile.md · edit the page there.