Support list
Every CSS property and value, element, attribute, event handler and JavaScript global native targets support, per target. Generated from the build checks.
This page is generated from the allow lists bake build checks native bundles with (the build plugin's native-support.json and the Rust CSS lint), and pnpm check fails when it differs from them. Native targets fail closed: anything not listed as supported here is a build error that names the file, the line, why and what to use instead (React, Octane).
On the web the app runs in the browser: everything the browser supports works, and none of these checks run (bake build --target web). In the tables below, the Web column is the browser and the other columns are the native hosts.
Differences between targets
✓: supported. ✗: a build error on that target.
| What | Kind | Web | iOS | macOS | Android | Windows |
|---|---|---|---|---|---|---|
<bake-tabbar> (internal to Universal UI) | element | HTML | ✓ | ✓ | ✓ | ✗ |
<swiftui-*> (internal to the SwiftUI adapters) | element | HTML | ✓ | ✓ | ✗ | ✗ |
Intl | JS global | ✓ | ✓ | ✓ | ✗ | ✗ |
filter: blur() / drop-shadow() on Android below minSdk 31 (css-effects-host) | CSS | ✓ | ✓ | ✓ | ✗ | ✓ |
right-to-left text in an inline formatting context (text with inline boxes or atomic inlines) (css-inline-bidi) | CSS | ✓ | ✓ | ✓ | ✓ | ✗ |
direction: rtl on a target whose text backend does not shape right-to-left paragraphs yet (css-direction) | CSS | ✓ | ✓ | ✓ | ✓ | ✗ |
| Everything under "Not supported" below that is not in this table | all | ✓ | ✗ | ✗ | ✗ | ✗ |
Elements
Supported: <a>, <abbr>, <address>, <article>, <aside>, <b>, <blockquote>, <br>, <button>, <cite>, <code>, <dd>, <details>, <dfn>, <dialog>, <div>, <dl>, <dt>, <em>, <figcaption>, <figure>, <footer>, <form>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <header>, <hgroup>, <hr>, <i>, <input>, <kbd>, <label>, <li>, <main>, <mark>, <menu>, <meter>, <nav>, <ol>, <optgroup>, <option>, <p>, <pre>, <progress>, <samp>, <search>, <section>, <select>, <small>, <span>, <strong>, <summary>, <textarea>, <time>, <u>, <ul>, <var>, <img>, <video>.
Inside <svg>: <svg>, <g>, <path>, <rect>, <circle>, <ellipse>, <line>, <polyline>, <polygon>, <defs>, <symbol>, <use>, <linearGradient>, <radialGradient>, <stop>, <clipPath>, <mask>, <text>, <tspan>, <title>, <desc>.
| Element | Note |
|---|---|
<a> | A text container: links do not navigate on native targets (href is an error) |
<dialog> | An open dialog is a platform sheet |
<form> | A container only: there is no form submission (handle onClick / onChange) |
<img> | Bundle assets (relative paths, copied and hashed by bake build), data: URLs and http(s) URLs (loaded through the host's fetch transport into the shared memory + disk cache; on Android cleartext http:// follows the app's Network Security Config, HTTPS only by default); PNG, JPEG, WebP, GIF (first frame), SVG |
<video> | Played by the platform player (Media Foundation, MediaPlayer, AVPlayer: hardware decoding); size, poster, object-fit / object-position and border-radius clip are the core's, as Chromium lays them out. src: a bundle asset (relative path) or https:. The first screen shows the poster (or the empty box); playback starts after hydration. Ref: play(), pause(), currentTime. No system controls |
<title> | Not drawn, as in browsers |
<desc> | Not drawn, as in browsers |
<bake-tabbar> | only on iOS, macOS, Android |
<swiftui-*> | only on iOS, macOS; * is one of host, vstack, hstack, zstack, group, spacer, divider, scrollview, glasseffectcontainer, text, label, image, progressview, button, toggle, slider, picker, textfield, securefield, menu, form, list, section, navigationstack, toolbaritem, bakeview, bottomsheet, tabview, tab (any other is element-unknown) |
Not supported (a build error):
| Element | Why | Instead |
|---|---|---|
<picture> | images are not drawn on native targets yet | an inline <svg> |
<source> | <video> on native targets plays its src attribute only: there is no source selection by type or media query | <video src> with one MP4 (H.264 / AAC) every platform player decodes |
<track> | text tracks (captions, subtitles) are not rendered on native targets | draw captions yourself from timeupdate (event.target.currentTime) |
<bake-video> | the Video native view (@bake-native/octane/video) became the built-in <video> element | <video src poster autoplay muted loop> with onLoadedMetadata / onTimeUpdate / onEnded and ref.play() / pause() / currentTime |
<audio> | <audio> is not supported on native targets (only <video> is) | a native audio module |
<canvas> | there is no canvas context on native targets | an inline <svg> |
<iframe> | native targets cannot embed documents | a native module that opens a web view |
<embed> | native targets cannot embed documents | a native module |
<object> | native targets cannot embed documents | a native module |
<table> | table layout is not implemented (it would lay out as blocks) | display: grid rows |
<caption> | table layout is not implemented | display: grid |
<thead> | table layout is not implemented | display: grid |
<tbody> | table layout is not implemented | display: grid |
<tfoot> | table layout is not implemented | display: grid |
<tr> | table layout is not implemented | display: grid |
<td> | table layout is not implemented | display: grid |
<th> | table layout is not implemented | display: grid |
<col> | table layout is not implemented | display: grid |
<colgroup> | table layout is not implemented | display: grid |
<s> | line-through text decoration is not drawn on native targets | a <span> with your own style |
<strike> | line-through text decoration is not drawn on native targets | a <span> with your own style |
<del> | line-through text decoration is not drawn on native targets | a <span> with your own style |
<ins> | kept for symmetry with <del>; use <u> or a styled <span> | <u> |
<sub> | the native user-agent styles give it no vertical-align | a <span> with a smaller font-size and vertical-align: sub |
<sup> | the native user-agent styles give it no vertical-align | a <span> with a smaller font-size and vertical-align: super |
<q> | quotation marks come from ::before / ::after, which native does not draw | write the quotation marks in the text |
<fieldset> | the legend-in-border layout and groove border are not drawn | a <div> with a border and a heading |
<legend> | the legend-in-border layout is not drawn | a heading |
<datalist> | input suggestions are not shown on native targets | a <select> |
<output> | form association is not implemented | a <span> |
<slot> | there is no shadow DOM | children props |
<template> | there is no DOM to clone templates into | a component |
<pattern> | SVG patterns are not drawn | a gradient or plain shapes |
<filter> | SVG filters are not drawn | plain shapes, gradients or opacity |
<marker> | SVG markers are not drawn | draw the arrowheads as shapes |
<textPath> | SVG text on a path is not drawn | <text> with x / y positions |
<image> | SVG <image> waits for the image asset pipeline of <img> | vector shapes, or an <img> next to the <svg> |
<foreignObject> | SVG foreignObject is not drawn | an HTML element over the <svg> |
Any other tag is an error too (element-unknown).
Attributes
On every element: class, className, id, style, key, ref, hidden, role, tabindex, tabIndex, inert, autoFocus, autofocus, aria-label, ariaLabel, aria-hidden, aria-live, aria-expanded, aria-checked, aria-selected, aria-disabled, aria-pressed, aria-labelledby, aria-describedby, aria-description, aria-level, aria-valuenow, aria-valuemin, aria-valuemax, aria-valuetext, aria-modal, aria-current, aria-atomic, aria-required, aria-readonly, aria-haspopup, aria-controls, aria-busy, aria-orientation, aria-activedescendant, testID, testId, popover, dir, and data-*.
| Element | Also |
|---|---|
<button> | disabled, type, value, name, popovertarget, popoverTarget, popovertargetaction, popoverTargetAction (popovertargetaction: toggle, show, hide; popoverTargetAction: toggle, show, hide) |
<details> | open |
<dialog> | open |
<input> | type, value, defaultValue, checked, defaultChecked, disabled, placeholder, name, min, max, step, maxlength, maxLength, switch, inputmode, inputMode, enterkeyhint, enterKeyHint, autocomplete, autoComplete, autocorrect, autoCorrect, autocapitalize, autoCapitalize, spellcheck, spellCheck, suppressNativeChangeWarning (type: text, password, email, search, tel, url, number, checkbox, radio, range, date, time, datetime-local, color) |
<meter> | value, min, max |
<optgroup> | label, disabled |
<option> | value, selected, disabled, label |
<progress> | value, max |
<select> | value, defaultValue, disabled, name |
<textarea> | value, defaultValue, disabled, placeholder, name, rows, maxlength, maxLength, inputmode, inputMode, enterkeyhint, enterKeyHint, autocomplete, autoComplete, autocorrect, autoCorrect, autocapitalize, autoCapitalize, spellcheck, spellCheck, suppressNativeChangeWarning |
<img> | src, alt, width, height, loading, decoding (loading: eager, lazy; decoding: async, auto, sync) |
<video> | src, poster, width, height, autoplay, autoPlay, muted, loop, playsinline, playsInline, preload (preload: auto, metadata, none, ) |
<use> | href, xlinkHref, xlink:href |
<linearGradient> | href, xlinkHref, xlink:href |
<radialGradient> | href, xlinkHref, xlink:href |
<bake-image> | src, alt |
SVG elements also take viewBox, width, height, x, y, rx, ry, cx, cy, r, x1, y1, x2, y2, d, points, fill, stroke, stroke-width, strokeWidth, stroke-linecap, strokeLinecap, stroke-linejoin, strokeLinejoin, stroke-miterlimit, strokeMiterlimit, stroke-dasharray, strokeDasharray, stroke-dashoffset, strokeDashoffset, fill-rule, fillRule, fill-opacity, fillOpacity, stroke-opacity, strokeOpacity, opacity, transform, preserveAspectRatio, xmlns, visibility, display, color, overflow, offset, stop-color, stopColor, stop-opacity, stopOpacity, gradientUnits, gradientTransform, spreadMethod, fx, fy, clip-path, clipPath, clip-rule, clipRule, clipPathUnits, mask, maskUnits, maskContentUnits, mask-type, maskType, font-family, fontFamily, font-size, fontSize, font-weight, fontWeight, font-style, fontStyle, text-anchor, textAnchor, dominant-baseline, dominantBaseline, dx, dy.
role takes alert, alertdialog, article, banner, button, cell, checkbox, columnheader, combobox, complementary, contentinfo, dialog, figure, form, generic, grid, gridcell, group, heading, img, image, link, list, listbox, listitem, log, main, menu, menuitem, meter, navigation, none, note, option, paragraph, presentation, progressbar, radio, radiogroup, region, row, search, searchbox, separator, slider, spinbutton, status, switch, tab, table, tablist, tabpanel, text, textbox, toolbar, tooltip.
Not supported (a build error; any other attribute is attribute-unknown, an unread aria-* is attribute-aria):
| Attribute | Why | Instead |
|---|---|---|
controls | native targets draw no media controls yet: each platform player has its own (AVKit, Media Foundation, Android) and none matches Chromium's, so the same markup would look different on every target | your own buttons calling ref.play() / pause() and setting currentTime |
href | links do not navigate on native targets: no host opens URLs | onClick, opening the URL with a native module; or branch on import.meta.env.BAKE_TARGET === 'web' |
target | links do not navigate on native targets | onClick with a native module |
rel | links do not navigate on native targets | onClick with a native module |
lang | the document language does not change shaping or :lang() on native targets | remove it |
title | there are no tooltips on native targets | visible text or aria-label |
srcset | images are not loaded on native targets | an inline <svg> |
readonly | read-only text fields are not implemented | disabled, or render the value as text |
readOnly | read-only text fields are not implemented | disabled, or render the value as text |
required | there is no form validation on native targets | validate in JS |
pattern | there is no form validation on native targets | validate in JS |
minlength | there is no form validation on native targets | validate in JS |
minLength | there is no form validation on native targets | validate in JS |
for | clicking a label does not focus its control on native targets | wrap the control in the <label> |
htmlFor | clicking a label does not focus its control on native targets | wrap the control in the <label> |
multiple | multi-select lists are not implemented (the select would draw nothing) | checkboxes |
size | list-box selects are not implemented (the select would draw nothing) | radio buttons |
low | meter regions are not drawn | color the meter with your own CSS |
high | meter regions are not drawn | color the meter with your own CSS |
optimum | meter regions are not drawn | color the meter with your own CSS |
contenteditable | there is no rich text editing on native targets | <textarea> |
contentEditable | there is no rich text editing on native targets | <textarea> |
draggable | drag and drop is not implemented | nothing yet |
download | there are no downloads on native targets | a native module |
filter | SVG filters are not drawn | plain shapes, gradients or opacity |
marker-start | SVG markers are not drawn | draw the arrowheads as shapes |
markerStart | SVG markers are not drawn | draw the arrowheads as shapes |
marker-mid | SVG markers are not drawn | draw the arrowheads as shapes |
markerMid | SVG markers are not drawn | draw the arrowheads as shapes |
marker-end | SVG markers are not drawn | draw the arrowheads as shapes |
markerEnd | SVG markers are not drawn | draw the arrowheads as shapes |
fr | a radial gradient's focal radius is not drawn | a focal point (fx, fy) without fr |
textLength | SVG text is not stretched to a length | a font size that fits |
lengthAdjust | SVG text is not stretched to a length | a font size that fits |
rotate | per-glyph rotation of SVG text is not drawn | a transform on the <text> |
paint-order | paint-order is not drawn (the fill is always under the stroke) | two shapes |
paintOrder | paint-order is not drawn (the fill is always under the stroke) | two shapes |
vector-effect | non-scaling strokes are not drawn | a stroke width in the scaled units |
vectorEffect | non-scaling strokes are not drawn | a stroke width in the scaled units |
shape-rendering | SVG shapes are always anti-aliased | remove it |
shapeRendering | SVG shapes are always anti-aliased | remove it |
Event handlers
| Handler | Event | On | Capture |
|---|---|---|---|
onClick | click | any element | |
onPress | click (alias of onClick) | any element | |
onInput | input | <input>, <textarea>, <select> | |
onChange | change | <input>, <textarea>, <select> | |
onSubmit | submit (a text field's commit (Return) when it has no onChange) | <input>, <textarea> | |
onFocus | focus (propagates (React semantics, as the web build): an ancestor hears its descendants' focus. elements focus by Tab / press (the core's focus model)) | any element | onFocusCapture |
onBlur | blur (propagates, as onFocus) | any element | onBlurCapture |
onFocusIn | focusin | any element | onFocusInCapture |
onFocusOut | focusout | any element | onFocusOutCapture |
onKeyDown | keydown (capture and bubble from the focused element; preventDefault() on Tab stops focus navigation) | any element | onKeyDownCapture |
onKeyUp | keyup | any element | onKeyUpCapture |
onPointerDown | pointerdown (the core hit-tests (paint order, pointer-events, transforms); event.currentTarget.setPointerCapture(event.pointerId) works) | any element; only on Windows, macOS, iOS, Android | onPointerDownCapture |
onPointerMove | pointermove | any element; only on Windows, macOS, iOS, Android | onPointerMoveCapture |
onPointerUp | pointerup | any element; only on Windows, macOS, iOS, Android | onPointerUpCapture |
onPointerCancel | pointercancel | any element; only on Windows, macOS, iOS, Android | onPointerCancelCapture |
onPointerOver | pointerover | any element; only on Windows, macOS, iOS, Android | onPointerOverCapture |
onPointerOut | pointerout | any element; only on Windows, macOS, iOS, Android | onPointerOutCapture |
onPointerEnter | pointerenter (the element only (no bubbling)) | any element; only on Windows, macOS, iOS, Android | |
onPointerLeave | pointerleave (the element only (no bubbling)) | any element; only on Windows, macOS, iOS, Android | |
onGotPointerCapture | gotpointercapture | any element; only on Windows, macOS, iOS, Android | onGotPointerCaptureCapture |
onLostPointerCapture | lostpointercapture | any element; only on Windows, macOS, iOS, Android | onLostPointerCaptureCapture |
onContextMenu | contextmenu (a secondary click (on release on Windows), or a touch held 500 ms without moving, as Chromium on Android (its release is no click); native shows no menu of its own) | any element; only on Windows, macOS, iOS, Android | onContextMenuCapture |
onWheel | wheel (not cancelable: the host scrolls) | any element; only on Windows, macOS, Android | onWheelCapture |
onCompositionStart | compositionstart | <input>, <textarea> | |
onCompositionUpdate | compositionupdate | <input>, <textarea> | |
onCompositionEnd | compositionend | <input>, <textarea> | |
onToggle | toggle | any element | |
onClose | close | <dialog> | |
onParentLayout | parentlayout (BakeNative: the element's rect within its parent after layout) | <div>, <button>, <bake-container> | |
onLayout | layout (BakeNative: the element's rect after layout) | any element | |
onScroll | scroll (fired by an overflow: auto / scroll element; event.target.scrollTop / scrollLeft / clientWidth / clientHeight) | any element | |
onItemPress | itempress | <bake-header> | |
onTabSelect | tabselect | <bake-tabbar> | |
onLoad | load (The image loaded (its natural size is laid out)) | <img> | |
onError | error (The image failed to load or decode; the video failed to load or play (event.target.error: { code, message })) | <img>, <video> | |
onLoadedMetadata | loadedmetadata (duration and videoWidth / videoHeight are known (the natural size is laid out)) | <video> | |
onPlay | play (playback started (play(), autoplay)) | <video> | |
onPause | pause (playback paused (pause(), or the end without loop)) | <video> | |
onEnded | ended (playback reached the end (not while looping)) | <video> | |
onTimeUpdate | timeupdate (the position moved: at most every 250 ms, the last one always arrives (event.target.currentTime)) | <video> | |
onAnimationStart | animationstart (the element only (no bubbling); at the injected clock, for animations that start while the listener is attached) | any element | |
onAnimationIteration | animationiteration (the element only (no bubbling)) | any element | |
onAnimationEnd | animationend (the element only (no bubbling); wait for it to unmount after an exit animation) | any element | |
onTransitionRun | transitionrun (the element only (no bubbling)) | any element | |
onTransitionStart | transitionstart (the element only (no bubbling)) | any element | |
onTransitionEnd | transitionend (the element only (no bubbling)) | any element | |
onTransitionCancel | transitioncancel (the element only (no bubbling); a transition replaced before its end) | any element |
Events with a capture handler propagate through the core: capture listeners root to target, then bubble listeners target to root, with stopPropagation() / preventDefault().
Not supported (a build error; any other handler is event-unknown):
| Handler | Why | Instead |
|---|---|---|
onDoubleClick | double clicks are not delivered on native targets | onClick with your own timing |
onKeyPress | keypress is deprecated and not delivered | onKeyDown |
onPointer* | this pointer event is not delivered | onPointerDown / Move / Up / Cancel / Over / Out / Enter / Leave |
onMouse* | mouse compatibility events are not delivered | onPointer* (event.pointerType is "mouse") |
onTouch* | touch events are not delivered | onPointer* (event.pointerType is "touch") |
onDrag* | drag and drop is not implemented | nothing yet |
onDrop* | drag and drop is not implemented | nothing yet |
onAnimation* | this animation event is not delivered | onAnimationStart / Iteration / End |
onTransition* | this transition event is not delivered | onTransitionRun / Start / End / Cancel |
onCopy* | clipboard events are not delivered | a native module |
onCut* | clipboard events are not delivered | a native module |
onPaste* | clipboard events are not delivered | a native module |
onSelect* | text selection events are not delivered | nothing yet |
onBefore* | beforeinput / beforetoggle are not delivered | onInput / onToggle |
onGot* | pointer capture is not implemented | onClick |
onLost* | pointer capture is not implemented | onClick |
JavaScript globals
Native bundles may use the ECMAScript globals Hermes defines: NaN, Infinity, undefined, parseInt, parseFloat, Object, Error, AggregateError, EvalError, RangeError, ReferenceError, SyntaxError, TypeError, URIError, String, BigInt, Function, Number, Boolean, Date, RegExp, Array, ArrayBuffer, DataView, Uint8Array, Int8Array, Uint8ClampedArray, Uint16Array, Int16Array, Uint32Array, Int32Array, Float32Array, Float64Array, BigUint64Array, BigInt64Array, Set, Map, WeakMap, WeakSet, FinalizationRegistry, WeakRef, Symbol, Proxy, Math, JSON, Reflect, isNaN, isFinite, escape, unescape, atob, btoa, queueMicrotask, decodeURI, decodeURIComponent, encodeURI, encodeURIComponent, globalThis, Promise, Iterator, TextEncoder, TextDecoder, console.
From BakeNative: setTimeout, setInterval, clearTimeout, clearInterval, requestAnimationFrame, cancelAnimationFrame, performance, native, getComputedStyle, fetch, Request, Response, Headers, AbortController, AbortSignal, DOMException, URL, URLSearchParams, Blob (performance.now() only), and console.{log, debug, info, warn, error}. Intl exists on iOS, macOS only (android and windows Hermes is built without Intl (the Intl lint)).
Anything else is an error, unless it is read as typeof X or tested as globalThis.X (feature detection):
| Global | Why | Instead |
|---|---|---|
document | there is no DOM on native targets: only document.activeElement, and the class, id, attributes and inline style of document.documentElement and document.body, are supported | element handles from refs (getBoundingClientRect, focus, contains, addEventListener); branch on import.meta.env.BAKE_TARGET === 'web' for web-only code |
window | there is no DOM window on native targets | globalThis, or branch on import.meta.env.BAKE_TARGET === 'web' |
self | there is no DOM window on native targets | globalThis |
navigator | there is no navigator on native targets | import.meta.env.BAKE_TARGET, or a native module |
location | there is no page URL on native targets | read the initial URL from host.props and subscribe to incoming URLs with host.on |
history | there is no session history on native targets | keep the current screen in component state and handle incoming URLs with host.props and host.on |
localStorage | there is no web storage on native targets | a native module |
sessionStorage | there is no web storage on native targets | a native module |
indexedDB | there is no web storage on native targets | a native module |
XMLHttpRequest | there is no XMLHttpRequest on native targets | fetch |
WebSocket | there is no WebSocket on native targets yet (fetch is supported) | fetch polling, or a native module |
EventSource | there is no EventSource on native targets | a native module |
File | there is no File on native targets | a native module |
FileReader | there is no FileReader on native targets | a native module |
FormData | there is no FormData on native targets (fetch bodies: string, URLSearchParams, Blob, ArrayBuffer) | URLSearchParams or JSON |
crypto | there is no Web Crypto on native targets | a native module |
structuredClone | Hermes has no structuredClone | JSON.parse(JSON.stringify(x)) or a copy function |
alert | there are no browser dialogs on native targets | <dialog> |
confirm | there are no browser dialogs on native targets | <dialog> |
prompt | there are no browser dialogs on native targets | <dialog> with an <input> |
matchMedia | there is no matchMedia on native targets | CSS @media |
ResizeObserver | there are no DOM observers on native targets | onLayout |
IntersectionObserver | there are no DOM observers on native targets | List from @bake-native/react or VirtualList from @bake-native/octane |
MutationObserver | there are no DOM observers on native targets | update component state when the underlying data changes |
Image | images are not loaded on native targets | nothing yet |
Event | there are no DOM events on native targets | plain callbacks |
CustomEvent | there are no DOM events on native targets | plain callbacks |
EventTarget | there are no DOM events on native targets | plain callbacks |
MessageChannel | there are no message channels on native targets | queueMicrotask / setTimeout |
setImmediate | there is no setImmediate on native targets | setTimeout(fn, 0) |
Worker | there are no workers on native targets | a native module |
process | there is no Node.js process on native targets | import.meta.env |
Buffer | there is no Node.js Buffer on native targets | Uint8Array / TextEncoder |
require | there is no CommonJS require at run time | import |
devicePixelRatio | there is no DOM window on native targets | CSS @media (resolution) |
innerWidth | there is no DOM window on native targets | onLayout, or CSS @media |
innerHeight | there is no DOM window on native targets | onLayout, or CSS @media |
scrollTo | there is no DOM window on native targets | nothing yet |
open | there is no DOM window on native targets | <a href> |
print | Hermes's print is not a web API | console.log |
HermesInternal | Hermes internals are not a web API | nothing |
Element APIs
A native element's ref (and an event's target) is an element handle read synchronously on the JS thread (see Element APIs): getBoundingClientRect(), getClientRects(), offsetLeft / offsetTop / offsetWidth / offsetHeight / offsetParent, clientLeft / clientTop / clientWidth / clientHeight, scrollLeft / scrollTop / scrollWidth / scrollHeight, focus(), blur(), contains(), addEventListener / removeEventListener (capture, once), and document.activeElement. The inert and autoFocus attributes work on every element.
getComputedStyle(element) answers display, position, visibility, opacity, overflow, overflowX, overflowY, pointerEvents, zIndex, transform, animationName, animationDuration, animationDelay, animationIterationCount, animationFillMode, animationDirection, transitionProperty, transitionDuration, transitionDelay, width, height, boxSizing, direction, borderTopWidth, borderRightWidth, borderBottomWidth, borderLeftWidth, paddingTop, paddingRight, paddingBottom, paddingLeft, translate, scale, rotate, perspective, containerType, backdropFilter, willChange, contain; any other property is a build error where the name is written out (element-computed-style) and throws E_UNSUPPORTED otherwise.
addEventListener takes click, pointerdown, pointerup, pointermove, pointercancel, pointerover, pointerout, pointerenter, pointerleave, gotpointercapture, lostpointercapture, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, keydown, keyup, focus, blur, focusin, focusout, wheel, animationstart, animationiteration, animationend, animationcancel, transitionrun, transitionstart, transitionend, transitioncancel; any other event throws E_UNSUPPORTED (use the JSX handler).
System modules
Clipboard, Linking, Share and Haptics are registry modules an app adds with bake add (see System modules): a module supports the targets it has an implementation file for, and a bundle that calls it on any other target is a build error (module-<name>). The old subpaths are build errors too. A bundle that calls one of these names without its own copy links the framework's build unit, on these targets:
| Old subpath (a build error) | Native module | Framework unit on | Id |
|---|---|---|---|
@bake-native/octane/clipboard | Clipboard | iOS, macOS | module-clipboard |
@bake-native/octane/linking | Linking | Windows, iOS, macOS | module-linking |
@bake-native/octane/share | Share | Android, iOS, macOS | module-share |
CSS
Properties: -webkit-align-items, -webkit-align-self, -webkit-appearance, -webkit-box-orient, -webkit-box-sizing, -webkit-flex, -webkit-flex-basis, -webkit-flex-direction, -webkit-flex-grow, -webkit-flex-shrink, -webkit-flex-wrap, -webkit-font-smoothing, -webkit-justify-content, -webkit-line-clamp, -webkit-margin-after, -webkit-margin-before, -webkit-margin-end, -webkit-margin-start, -webkit-padding-end, -webkit-padding-start, -webkit-text-decoration, -webkit-text-decoration-line, -webkit-transform, -webkit-user-select, accent-color, align-content, align-items, align-self, anchor-name, animation, animation-delay, animation-direction, animation-duration, animation-fill-mode, animation-iteration-count, animation-name, animation-timing-function, appearance, aspect-ratio, background, background-color, background-image, background-position, background-repeat, background-size, block-size, border, border-block, border-block-end, border-block-end-color, border-block-end-style, border-block-end-width, border-block-start, border-block-start-color, border-block-start-style, border-block-start-width, border-bottom, border-bottom-color, border-bottom-left-radius, border-bottom-right-radius, border-bottom-style, border-bottom-width, border-color, border-end-end-radius, border-end-start-radius, border-inline, border-inline-end, border-inline-end-color, border-inline-end-style, border-inline-end-width, border-inline-start, border-inline-start-color, border-inline-start-style, border-inline-start-width, border-left, border-left-color, border-left-style, border-left-width, border-radius, border-right, border-right-color, border-right-style, border-right-width, border-start-end-radius, border-start-start-radius, border-style, border-top, border-top-color, border-top-left-radius, border-top-right-radius, border-top-style, border-top-width, border-width, bottom, box-shadow, box-sizing, color, color-scheme, column-gap, content, cursor, direction, display, fill, fill-opacity, filter, flex, flex-basis, flex-direction, flex-flow, flex-grow, flex-shrink, flex-wrap, font, font-family, font-size, font-style, font-synthesis, font-synthesis-style, font-synthesis-weight, font-weight, gap, grid-area, grid-auto-columns, grid-auto-flow, grid-auto-rows, grid-column, grid-column-end, grid-column-gap, grid-column-start, grid-gap, grid-row, grid-row-end, grid-row-gap, grid-row-start, grid-template, grid-template-areas, grid-template-columns, grid-template-rows, height, inline-size, inset, inset-block, inset-block-end, inset-block-start, inset-inline, inset-inline-end, inset-inline-start, isolation, justify-content, justify-items, justify-self, left, letter-spacing, line-height, list-style, list-style-type, margin, margin-block, margin-block-end, margin-block-start, margin-bottom, margin-inline, margin-inline-end, margin-inline-start, margin-left, margin-right, margin-top, max-block-size, max-height, max-inline-size, max-width, min-block-size, min-height, min-inline-size, min-width, object-fit, object-position, opacity, order, outline, outline-color, outline-offset, outline-style, outline-width, overflow, overflow-wrap, overflow-x, overflow-y, padding, padding-block, padding-block-end, padding-block-start, padding-bottom, padding-inline, padding-inline-end, padding-inline-start, padding-left, padding-right, padding-top, place-content, place-items, place-self, pointer-events, position, position-anchor, position-try-fallbacks, right, rotate, row-gap, scale, stroke, stroke-opacity, stroke-width, text-align, text-decoration, text-decoration-line, text-overflow, text-shadow, text-transform, top, touch-action, transform, transition, transition-delay, transition-duration, transition-property, transition-timing-function, translate, unicode-bidi, user-select, vertical-align, visibility, white-space, width, word-break, word-wrap, z-index.
Accepted without effect (rendering hints): -moz-osx-font-smoothing, text-rendering, font-smooth, -webkit-tap-highlight-color, -webkit-text-size-adjust, text-size-adjust.
Keyword values each property accepts (values only some targets accept are in Differences between targets):
| Property | Keywords |
|---|---|
-webkit-box-orient | horizontal, vertical, inline-axis, block-axis |
-webkit-font-smoothing | auto, none, antialiased, subpixel-antialiased |
align-content | auto, normal, start, end, left, right, center, stretch, baseline, first baseline, flex-start, flex-end, self-start, self-end, space-between, space-around, space-evenly, safe center, unsafe center, legacy |
align-items | auto, normal, start, end, left, right, center, stretch, baseline, first baseline, last baseline, flex-start, flex-end, self-start, self-end, safe center, unsafe center, legacy |
align-self | auto, normal, start, end, left, right, center, stretch, baseline, first baseline, last baseline, flex-start, flex-end, self-start, self-end, safe center, unsafe center, legacy |
appearance | auto, none |
border-top-style | none, hidden, solid |
box-sizing | content-box, border-box |
color-scheme | normal, light, dark, light dark, only light |
cursor | auto, default, pointer |
display | none, block, inline, inline-block, flex, inline-flex, grid, inline-grid, list-item, contents, -webkit-flex, -webkit-inline-flex, block flow, inline flow, block flex, inline flex, block grid, inline grid, block flow list-item, list-item block |
flex-direction | row, row-reverse, column, column-reverse |
flex-wrap | nowrap, wrap, wrap-reverse |
font-style | normal, italic |
font-synthesis-style | auto, none |
font-synthesis-weight | auto, none |
grid-auto-flow | row, column, dense, row dense, column dense, dense row, dense column |
isolation | auto, isolate |
justify-content | auto, normal, start, end, left, right, center, stretch, flex-start, flex-end, self-start, self-end, space-between, space-around, space-evenly, safe center, unsafe center, legacy |
justify-items | auto, normal, start, end, left, right, center, stretch, baseline, first baseline, last baseline, flex-start, flex-end, self-start, self-end, safe center, unsafe center, legacy |
justify-self | auto, normal, start, end, left, right, center, stretch, baseline, first baseline, last baseline, flex-start, flex-end, self-start, self-end, safe center, unsafe center, legacy |
list-style-type | none |
outline-style | none, solid, dashed, dotted |
overflow-wrap | normal, break-word, anywhere |
overflow-x | auto, visible, hidden, clip, scroll |
overflow-y | auto, visible, hidden, clip, scroll |
pointer-events | auto, none |
position | static, relative, absolute, fixed, sticky, -webkit-sticky |
text-align | auto, start, end, left, right, center, match-parent, -webkit-left, -webkit-right, -webkit-center, -webkit-auto |
text-decoration-line | none, underline |
text-overflow | clip, ellipsis |
text-transform | none, uppercase, lowercase, capitalize |
touch-action | auto, none, pan-x, pan-y, pan-x pan-y, manipulation |
user-select | auto, none, text, all |
vertical-align | baseline, 0, sub, super, text-top, text-bottom, middle, top, bottom |
visibility | visible, hidden, collapse |
white-space | normal, nowrap, pre, pre-wrap, pre-line, break-spaces, -webkit-nowrap |
word-break | normal, break-all, keep-all, break-word |
Not supported (a build error, with this id):
| Id | What | Why | Instead | Error on |
|---|---|---|---|---|
css-property | properties the engine does not know | the engine has no such property, so the declaration would be dropped | a supported property, or wrap web-only declarations in @supports not (-bake-native: true) | every native target |
css-value | values that do not parse | the engine cannot parse this value, so the declaration would be dropped | a supported value (see the support list) | every native target |
css-not-declaration | text that is not a declaration | the engine would skip it | property: value; | every native target |
css-selector | selectors the engine cannot parse | the whole rule would be dropped | a supported selector | every native target |
css-pseudo-element | pseudo-elements other than ::before / ::after (::first-line, ::first-letter, ::marker, ::placeholder, ::selection, ...) | native generates only ::before / ::after | a real element | every native target |
css-pseudo-native-control | ::before / ::after content in a natively drawn control (an unstyled <button>) | the generated box would turn the platform button into an author-styled one | style the button (appearance: none, a background or a border), or a real element | every native target |
css-appearance-select | appearance: none on a <select> | native draws such a select as a plain box: every <option> is laid out as content and a tap opens no picker | keep the platform select (style its font and colors), or a button that opens your own menu | every native target |
css-line-clamp | the standard line-clamp property | Chromium (the reference) does not implement it yet: the web would ignore it | display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: N; overflow: hidden | every native target |
css-line-clamp-overflow | -webkit-line-clamp without overflow: hidden / clip in the same rule | Chromium paints the lines after the clamp below the box; native draws only the clamped lines | overflow: hidden in the rule | every native target |
css-line-clamp-content | -webkit-line-clamp on a box with block-level, atomic-inline or out-of-flow children | Chromium counts lines through child blocks; native clamps only the box's own text | put the text directly in the clamped element | every native target |
css-text-overflow-wrap | text-overflow: ellipsis on text that wraps (white-space other than nowrap / pre) outside a line clamp | Chromium ellipsizes every overflowing line of wrapping text; native truncates one unwrapped line or a clamp's last line | white-space: nowrap, or -webkit-line-clamp | every native target |
css-text-overflow-inline | text-overflow: ellipsis or -webkit-line-clamp on an inline formatting context (inline-blocks or other atomic inlines among the text) | truncation is implemented for a block of text only | only text (and inline elements) in the truncated element | every native target |
css-line-clamp-align | -webkit-line-clamp with text-align other than start / left | Chromium aligns the clamped line before it places the ellipsis (the ellipsis can end up outside the box); native aligns the cut line with its ellipsis | text-align: start on the clamped element | every native target |
css-overflow-wrap-inline | overflow-wrap: break-word / anywhere (or word-break: break-word) in an inline formatting context (inline-blocks or other atomic inlines among the text) | a piece wider than the line is not broken inside inline formatting contexts yet | only text (and inline elements) in the element | every native target |
css-outline-style | outline-style other than none / solid / dashed / dotted (auto, double, groove, ridge, inset, outset) | native draws only solid, dashed and dotted outlines | outline-style: solid, dashed or dotted | every native target |
css-filter-function | filter functions other than blur() / brightness() / contrast() / grayscale() / opacity() / saturate() / drop-shadow() (sepia(), invert(), hue-rotate(), url()) | native implements only these color matrices, blurs and shadows: the function would be dropped | the supported functions, or wrap the rule in @supports not (-bake-native: true) | every native target |
css-effects-host | filter: blur() / drop-shadow() on Android below minSdk 31 | Android draws them with RenderEffect (API 31), which API 29 and 30 do not have: the blur would be dropped there; the color functions are drawn on every API level | raise the app's minSdk to 31 or higher (android: { minSdk: 31 } in bake.config.ts) to use them; or brightness() / contrast() / grayscale() / opacity() / saturate(), a box-shadow, or wrap the rule in @supports not (-bake-native: true) | Android |
css-text-overflow-bidi | text-overflow: ellipsis or -webkit-line-clamp on right-to-left text | the line is truncated left to right: Chromium cuts and places the ellipsis by visual order | keep right-to-left text untruncated | every native target |
css-pseudo-never | pseudo-classes that never match on native (:visited, :has(), :lang(), :empty, :invalid, ...) | the engine treats them as never matching | a class you set from state | every native target |
css-interaction-pseudo | :hover, :focus, :focus-visible, :focus-within, :active on a generated box (::before / ::after) | a generated box has no interaction state of its own (the core matches these on elements) | the pseudo-class on the element: .a:hover::before | every native target |
css-forgiving-selector | :is() / :where() with an entry the engine cannot parse | the unparsable entry would be dropped silently | remove or fix the entry | every native target |
css-nth-of | :nth-child(An+B of S) | the of S filter is ignored | a class on the elements you count | every native target |
css-at-rule | at-rules other than @media, @keyframes and @supports (-bake-native) | the engine skips them | wrap web-only rules in @supports not (-bake-native: true) | every native target |
css-font-face-remote | @font-face src: url() of a remote font (http:, https:, //) | native hosts load fonts only from the app bundle, before the first frame | the font file in the app (url(./fonts/brand.woff2)): bake build bundles it | every native target |
css-font-face-format | @font-face fonts other than TrueType / OpenType / WOFF2 files (WOFF, EOT, SVG, data: URLs, tech()); on android, WOFF2 and local() | native hosts register .ttf, .otf and .woff2 files (android: .ttf / .otf files only) | a .ttf, .otf or .woff2 file in the app | every native target |
css-font-face-descriptor | @font-face descriptors other than font-family, src, font-weight, font-style, font-stretch, unicode-range, font-display, and invalid values | the host would ignore the descriptor | remove it, or wrap the rule in @supports not (-bake-native: true) | every native target |
css-font-face-incomplete | @font-face without font-family or src | the face could never be used | font-family and src | every native target |
css-supports | @supports conditions other than (-bake-native: true) | native evaluates no feature queries | @supports (-bake-native: true) or @supports not (-bake-native: true) | every native target |
css-media-feature | media features the engine does not evaluate | an unknown feature evaluates to false silently | width / height / orientation / aspect-ratio / resolution / prefers-color-scheme / prefers-reduced-motion / hover / pointer | every native target |
css-keyframes-property | @keyframes properties other than opacity, transform, translate, rotate, scale, background-color, color, border colors, outline-color, box-shadow, filter, height | native does not animate the other layout properties (width, margins, padding, insets) or the rest | animate transform / opacity, height, or the paint properties | every native target |
css-transition-property | transitions of properties other than opacity, transform, translate, rotate, scale, background-color, color, border colors, outline-color, box-shadow, filter, height (and those Chromium does not animate either) | native does not animate the other layout properties (width, margins, padding, insets) or the rest | transition transform / opacity, height, or the paint properties | every native target |
css-animation-paused | animation-play-state: paused (in the animation shorthand) | it is ignored: the animation runs | add / remove the animation with a class | every native target |
css-display-table | display: table and the table-* values | table layout is not implemented: it would lay out as blocks | display: grid (grid-template-columns for the columns) | every native target |
css-display-ruby | display: ruby / ruby-text | ruby layout is not implemented: it would lay out inline | nothing yet | every native target |
css-display-flow-root | display: flow-root | it would lay out as a plain block (margins can collapse through it) | display: flex; flex-direction: column | every native target |
css-display-legacy-box | display: -webkit-box / -webkit-inline-box outside the line clamp idiom | the 2009 flexbox would be approximated by flex | display: flex, or display: -webkit-box with -webkit-box-orient: vertical and -webkit-line-clamp in the same rule | every native target |
css-overflow-alias | overflow: overlay / -webkit-paged-x / -webkit-paged-y | they would be approximated by auto | overflow: auto | every native target |
css-backdrop-filter | backdrop-filter / -webkit-backdrop-filter other than none | no native host can draw Chromium's backdrop blur through a public API on every target: the blur needs the pixels behind the element every frame, which iOS gives only through UIVisualEffectView (a different blur) or the private CABackdropLayer | an opaque or translucent background-color, or wrap the rule in @supports not (-bake-native: true) | every native target |
css-align-value | space-* in align-items / align-self / justify-items / justify-self, last baseline in align-content, baseline in justify-content | the layout would approximate or ignore them (Chrome treats align-content: last baseline as normal, and justify-content takes no baseline) | start / center / end / stretch / flex-start / flex-end / first or last baseline (items), baseline (align-content) | every native target |
css-border-style | border styles other than none / hidden / solid | native draws every border solid | border-style: solid | every native target |
css-border-radius-elliptical | elliptical border radii (/ or two different radii) | the vertical radius is ignored | one radius per corner | every native target |
css-text-decoration | text-decoration-line: line-through / overline / blink | native draws only underline | an element with a border, or nothing | every native target |
css-text-transform | text-transform: full-width / full-size-kana | they would be ignored | transform the text in JS | every native target |
css-font-style-oblique | font-style: oblique | it would be drawn as italic | font-style: italic | every native target |
css-appearance | appearance values other than none / auto | they would be approximated by auto | appearance: none or auto | every native target |
css-cursor | cursor values other than auto / default / pointer | native hosts show only the arrow and, over clickable elements, the pointing hand | cursor: pointer on clickable elements | every native target |
css-list-style | list-style-type other than none | native draws no list markers | list-style: none and draw your own marker | every native target |
css-background-repeat | background-repeat: space / round | native tiles repeat only (no spacing or rounding of the tile size) | repeat, no-repeat, repeat-x or repeat-y | every native target |
css-svg-paint-server | fill / stroke: context-fill / context-stroke | context paints are not drawn (nothing is used) | a color | every native target |
css-color-p3 | color(display-p3 ...) | the components would be read as sRGB | an sRGB color | every native target |
css-env | env() variables other than safe-area-inset-top / right / bottom / left (keyboard-inset-, titlebar-area-, viewport-segment-, safe-area-max-inset-, preferred-text-scale), and env() in @media conditions | hosts provide only the four safe-area insets: another variable would take its fallback or drop the declaration | env(safe-area-inset-top | right | bottom | left) | every native target |
css-unit | the units ch, ex, cap, ic, lh, rlh and container units (cq*) | they would be approximated (ch = 0.5em, lh = 1.2em; container units as viewport units) | px, em, rem, %, vw / vh | every native target |
css-intrinsic-size | min-content / max-content / fit-content / stretch for width, height and their min / max | they would be approximated by auto (or none) | auto, a length, or flex / grid sizing | every native target |
css-math-mixed | min() / max() / clamp() mixing % with other units | they cannot be resolved without a basis and would use one argument | the same unit in every argument, or calc() | every native target |
css-inline-formatting | inline boxes sharing a line with text or other boxes next to block-level siblings | a block container that mixes block-level children with inline content gets no anonymous block boxes: the inline boxes would stack vertically | wrap the inline content in its own element (a <p> or <div>), or use display: flex for the row | every native target |
css-inline-bidi | right-to-left text in an inline formatting context (text with inline boxes or atomic inlines) | lines are laid out left to right: bidi reordering across inline boxes and atomic inlines is not implemented | keep right-to-left text in a block of its own text (no inline-blocks, no inline padding / font changes) | Windows |
css-inline-relative | position: relative offsets on inline (non-atomic) elements in an inline formatting context | the element's line fragments would not move | display: inline-block on the element, or no offset | every native target |
css-inline-percent-edge | percentage inline-axis margins / padding on inline (non-atomic) elements in an inline formatting context | they would be ignored (0) | px or em | every native target |
css-inline-static-position | absolutely positioned boxes with an automatic (static) position inside an inline formatting context | their static position on the line is not computed: they would sit at the start of the content box | set left / right and top / bottom, or position the box outside the line | every native target |
css-inline-white-space | white-space on inline elements that differs from their block's, other than nowrap / pre inside a block that wraps | lines are broken and white space hangs with the block's white-space | white-space on the block, or nowrap on the inline element | every native target |
css-text-justify | text-align: justify | lines are not justified: it would lay out as start | text-align: start | every native target |
css-direction | direction: rtl on a target whose text backend does not shape right-to-left paragraphs yet | boxes are laid out right to left, but the text backend would shape and draw paragraphs left to right (bidi order, start / end) | leave the default direction (ltr) on this target, or wrap the rule in @supports not (-bake-native: true) | Windows |
css-inline-isolate | an inline element that isolates its content (unicode-bidi: isolate, or a dir attribute) in a paragraph with right-to-left text | its content takes part in the paragraph's bidi order instead of being isolated | put the differently directed text in a block of its own, or drop the dir attribute on the inline element | every native target |
css-unicode-bidi | unicode-bidi other than normal and isolate (embed, bidi-override, isolate-override, plaintext) | embeddings, overrides and plaintext paragraphs are not implemented | unicode-bidi: isolate, or the dir attribute | every native target |
css-list-marker | list items with a marker (display: list-item, list-style-type other than none) | native draws no list markers | list-style: none on the list, and draw your own marker | every native target |