BakeNative is under active development. APIs may change.
Skip to Content
BakeNative

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.

WhatKindWebiOSmacOSAndroidWindows
<bake-tabbar> (internal to Universal UI)elementHTML✓✓✓✗
<swiftui-*> (internal to the SwiftUI adapters)elementHTML✓✓✗✗
IntlJS 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 tableall✓✗✗✗✗

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>.

ElementNote
<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):

ElementWhyInstead
<picture>images are not drawn on native targets yetan 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 targetsdraw 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 targetsan inline <svg>
<iframe>native targets cannot embed documentsa native module that opens a web view
<embed>native targets cannot embed documentsa native module
<object>native targets cannot embed documentsa native module
<table>table layout is not implemented (it would lay out as blocks)display: grid rows
<caption>table layout is not implementeddisplay: grid
<thead>table layout is not implementeddisplay: grid
<tbody>table layout is not implementeddisplay: grid
<tfoot>table layout is not implementeddisplay: grid
<tr>table layout is not implementeddisplay: grid
<td>table layout is not implementeddisplay: grid
<th>table layout is not implementeddisplay: grid
<col>table layout is not implementeddisplay: grid
<colgroup>table layout is not implementeddisplay: grid
<s>line-through text decoration is not drawn on native targetsa <span> with your own style
<strike>line-through text decoration is not drawn on native targetsa <span> with your own style
<del>line-through text decoration is not drawn on native targetsa <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-aligna <span> with a smaller font-size and vertical-align: sub
<sup>the native user-agent styles give it no vertical-aligna <span> with a smaller font-size and vertical-align: super
<q>quotation marks come from ::before / ::after, which native does not drawwrite the quotation marks in the text
<fieldset>the legend-in-border layout and groove border are not drawna <div> with a border and a heading
<legend>the legend-in-border layout is not drawna heading
<datalist>input suggestions are not shown on native targetsa <select>
<output>form association is not implementeda <span>
<slot>there is no shadow DOMchildren props
<template>there is no DOM to clone templates intoa component
<pattern>SVG patterns are not drawna gradient or plain shapes
<filter>SVG filters are not drawnplain shapes, gradients or opacity
<marker>SVG markers are not drawndraw 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 drawnan 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-*.

ElementAlso
<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):

AttributeWhyInstead
controlsnative 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 targetyour own buttons calling ref.play() / pause() and setting currentTime
hreflinks do not navigate on native targets: no host opens URLsonClick, opening the URL with a native module; or branch on import.meta.env.BAKE_TARGET === 'web'
targetlinks do not navigate on native targetsonClick with a native module
rellinks do not navigate on native targetsonClick with a native module
langthe document language does not change shaping or :lang() on native targetsremove it
titlethere are no tooltips on native targetsvisible text or aria-label
srcsetimages are not loaded on native targetsan inline <svg>
readonlyread-only text fields are not implementeddisabled, or render the value as text
readOnlyread-only text fields are not implementeddisabled, or render the value as text
requiredthere is no form validation on native targetsvalidate in JS
patternthere is no form validation on native targetsvalidate in JS
minlengththere is no form validation on native targetsvalidate in JS
minLengththere is no form validation on native targetsvalidate in JS
forclicking a label does not focus its control on native targetswrap the control in the <label>
htmlForclicking a label does not focus its control on native targetswrap the control in the <label>
multiplemulti-select lists are not implemented (the select would draw nothing)checkboxes
sizelist-box selects are not implemented (the select would draw nothing)radio buttons
lowmeter regions are not drawncolor the meter with your own CSS
highmeter regions are not drawncolor the meter with your own CSS
optimummeter regions are not drawncolor the meter with your own CSS
contenteditablethere is no rich text editing on native targets<textarea>
contentEditablethere is no rich text editing on native targets<textarea>
draggabledrag and drop is not implementednothing yet
downloadthere are no downloads on native targetsa native module
filterSVG filters are not drawnplain shapes, gradients or opacity
marker-startSVG markers are not drawndraw the arrowheads as shapes
markerStartSVG markers are not drawndraw the arrowheads as shapes
marker-midSVG markers are not drawndraw the arrowheads as shapes
markerMidSVG markers are not drawndraw the arrowheads as shapes
marker-endSVG markers are not drawndraw the arrowheads as shapes
markerEndSVG markers are not drawndraw the arrowheads as shapes
fra radial gradient's focal radius is not drawna focal point (fx, fy) without fr
textLengthSVG text is not stretched to a lengtha font size that fits
lengthAdjustSVG text is not stretched to a lengtha font size that fits
rotateper-glyph rotation of SVG text is not drawna transform on the <text>
paint-orderpaint-order is not drawn (the fill is always under the stroke)two shapes
paintOrderpaint-order is not drawn (the fill is always under the stroke)two shapes
vector-effectnon-scaling strokes are not drawna stroke width in the scaled units
vectorEffectnon-scaling strokes are not drawna stroke width in the scaled units
shape-renderingSVG shapes are always anti-aliasedremove it
shapeRenderingSVG shapes are always anti-aliasedremove it

Event handlers

HandlerEventOnCapture
onClickclickany element
onPressclick (alias of onClick)any element
onInputinput<input>, <textarea>, <select>
onChangechange<input>, <textarea>, <select>
onSubmitsubmit (a text field's commit (Return) when it has no onChange)<input>, <textarea>
onFocusfocus (propagates (React semantics, as the web build): an ancestor hears its descendants' focus. elements focus by Tab / press (the core's focus model))any elementonFocusCapture
onBlurblur (propagates, as onFocus)any elementonBlurCapture
onFocusInfocusinany elementonFocusInCapture
onFocusOutfocusoutany elementonFocusOutCapture
onKeyDownkeydown (capture and bubble from the focused element; preventDefault() on Tab stops focus navigation)any elementonKeyDownCapture
onKeyUpkeyupany elementonKeyUpCapture
onPointerDownpointerdown (the core hit-tests (paint order, pointer-events, transforms); event.currentTarget.setPointerCapture(event.pointerId) works)any element; only on Windows, macOS, iOS, AndroidonPointerDownCapture
onPointerMovepointermoveany element; only on Windows, macOS, iOS, AndroidonPointerMoveCapture
onPointerUppointerupany element; only on Windows, macOS, iOS, AndroidonPointerUpCapture
onPointerCancelpointercancelany element; only on Windows, macOS, iOS, AndroidonPointerCancelCapture
onPointerOverpointeroverany element; only on Windows, macOS, iOS, AndroidonPointerOverCapture
onPointerOutpointeroutany element; only on Windows, macOS, iOS, AndroidonPointerOutCapture
onPointerEnterpointerenter (the element only (no bubbling))any element; only on Windows, macOS, iOS, Android
onPointerLeavepointerleave (the element only (no bubbling))any element; only on Windows, macOS, iOS, Android
onGotPointerCapturegotpointercaptureany element; only on Windows, macOS, iOS, AndroidonGotPointerCaptureCapture
onLostPointerCapturelostpointercaptureany element; only on Windows, macOS, iOS, AndroidonLostPointerCaptureCapture
onContextMenucontextmenu (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, AndroidonContextMenuCapture
onWheelwheel (not cancelable: the host scrolls)any element; only on Windows, macOS, AndroidonWheelCapture
onCompositionStartcompositionstart<input>, <textarea>
onCompositionUpdatecompositionupdate<input>, <textarea>
onCompositionEndcompositionend<input>, <textarea>
onToggletoggleany element
onCloseclose<dialog>
onParentLayoutparentlayout (BakeNative: the element's rect within its parent after layout)<div>, <button>, <bake-container>
onLayoutlayout (BakeNative: the element's rect after layout)any element
onScrollscroll (fired by an overflow: auto / scroll element; event.target.scrollTop / scrollLeft / clientWidth / clientHeight)any element
onItemPressitempress<bake-header>
onTabSelecttabselect<bake-tabbar>
onLoadload (The image loaded (its natural size is laid out))<img>
onErrorerror (The image failed to load or decode; the video failed to load or play (event.target.error: { code, message }))<img>, <video>
onLoadedMetadataloadedmetadata (duration and videoWidth / videoHeight are known (the natural size is laid out))<video>
onPlayplay (playback started (play(), autoplay))<video>
onPausepause (playback paused (pause(), or the end without loop))<video>
onEndedended (playback reached the end (not while looping))<video>
onTimeUpdatetimeupdate (the position moved: at most every 250 ms, the last one always arrives (event.target.currentTime))<video>
onAnimationStartanimationstart (the element only (no bubbling); at the injected clock, for animations that start while the listener is attached)any element
onAnimationIterationanimationiteration (the element only (no bubbling))any element
onAnimationEndanimationend (the element only (no bubbling); wait for it to unmount after an exit animation)any element
onTransitionRuntransitionrun (the element only (no bubbling))any element
onTransitionStarttransitionstart (the element only (no bubbling))any element
onTransitionEndtransitionend (the element only (no bubbling))any element
onTransitionCanceltransitioncancel (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):

HandlerWhyInstead
onDoubleClickdouble clicks are not delivered on native targetsonClick with your own timing
onKeyPresskeypress is deprecated and not deliveredonKeyDown
onPointer*this pointer event is not deliveredonPointerDown / Move / Up / Cancel / Over / Out / Enter / Leave
onMouse*mouse compatibility events are not deliveredonPointer* (event.pointerType is "mouse")
onTouch*touch events are not deliveredonPointer* (event.pointerType is "touch")
onDrag*drag and drop is not implementednothing yet
onDrop*drag and drop is not implementednothing yet
onAnimation*this animation event is not deliveredonAnimationStart / Iteration / End
onTransition*this transition event is not deliveredonTransitionRun / Start / End / Cancel
onCopy*clipboard events are not delivereda native module
onCut*clipboard events are not delivereda native module
onPaste*clipboard events are not delivereda native module
onSelect*text selection events are not deliverednothing yet
onBefore*beforeinput / beforetoggle are not deliveredonInput / onToggle
onGot*pointer capture is not implementedonClick
onLost*pointer capture is not implementedonClick

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):

GlobalWhyInstead
documentthere is no DOM on native targets: only document.activeElement, and the class, id, attributes and inline style of document.documentElement and document.body, are supportedelement handles from refs (getBoundingClientRect, focus, contains, addEventListener); branch on import.meta.env.BAKE_TARGET === 'web' for web-only code
windowthere is no DOM window on native targetsglobalThis, or branch on import.meta.env.BAKE_TARGET === 'web'
selfthere is no DOM window on native targetsglobalThis
navigatorthere is no navigator on native targetsimport.meta.env.BAKE_TARGET, or a native module
locationthere is no page URL on native targetsread the initial URL from host.props and subscribe to incoming URLs with host.on
historythere is no session history on native targetskeep the current screen in component state and handle incoming URLs with host.props and host.on
localStoragethere is no web storage on native targetsa native module
sessionStoragethere is no web storage on native targetsa native module
indexedDBthere is no web storage on native targetsa native module
XMLHttpRequestthere is no XMLHttpRequest on native targetsfetch
WebSocketthere is no WebSocket on native targets yet (fetch is supported)fetch polling, or a native module
EventSourcethere is no EventSource on native targetsa native module
Filethere is no File on native targetsa native module
FileReaderthere is no FileReader on native targetsa native module
FormDatathere is no FormData on native targets (fetch bodies: string, URLSearchParams, Blob, ArrayBuffer)URLSearchParams or JSON
cryptothere is no Web Crypto on native targetsa native module
structuredCloneHermes has no structuredCloneJSON.parse(JSON.stringify(x)) or a copy function
alertthere are no browser dialogs on native targets<dialog>
confirmthere are no browser dialogs on native targets<dialog>
promptthere are no browser dialogs on native targets<dialog> with an <input>
matchMediathere is no matchMedia on native targetsCSS @media
ResizeObserverthere are no DOM observers on native targetsonLayout
IntersectionObserverthere are no DOM observers on native targetsList from @bake-native/react or VirtualList from @bake-native/octane
MutationObserverthere are no DOM observers on native targetsupdate component state when the underlying data changes
Imageimages are not loaded on native targetsnothing yet
Eventthere are no DOM events on native targetsplain callbacks
CustomEventthere are no DOM events on native targetsplain callbacks
EventTargetthere are no DOM events on native targetsplain callbacks
MessageChannelthere are no message channels on native targetsqueueMicrotask / setTimeout
setImmediatethere is no setImmediate on native targetssetTimeout(fn, 0)
Workerthere are no workers on native targetsa native module
processthere is no Node.js process on native targetsimport.meta.env
Bufferthere is no Node.js Buffer on native targetsUint8Array / TextEncoder
requirethere is no CommonJS require at run timeimport
devicePixelRatiothere is no DOM window on native targetsCSS @media (resolution)
innerWidththere is no DOM window on native targetsonLayout, or CSS @media
innerHeightthere is no DOM window on native targetsonLayout, or CSS @media
scrollTothere is no DOM window on native targetsnothing yet
openthere is no DOM window on native targets<a href>
printHermes's print is not a web APIconsole.log
HermesInternalHermes internals are not a web APInothing

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 moduleFramework unit onId
@bake-native/octane/clipboardClipboardiOS, macOSmodule-clipboard
@bake-native/octane/linkingLinkingWindows, iOS, macOSmodule-linking
@bake-native/octane/shareShareAndroid, iOS, macOSmodule-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):

PropertyKeywords
-webkit-box-orienthorizontal, vertical, inline-axis, block-axis
-webkit-font-smoothingauto, none, antialiased, subpixel-antialiased
align-contentauto, 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-itemsauto, 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-selfauto, 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
appearanceauto, none
border-top-stylenone, hidden, solid
box-sizingcontent-box, border-box
color-schemenormal, light, dark, light dark, only light
cursorauto, default, pointer
displaynone, 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-directionrow, row-reverse, column, column-reverse
flex-wrapnowrap, wrap, wrap-reverse
font-stylenormal, italic
font-synthesis-styleauto, none
font-synthesis-weightauto, none
grid-auto-flowrow, column, dense, row dense, column dense, dense row, dense column
isolationauto, isolate
justify-contentauto, 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-itemsauto, 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-selfauto, 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-typenone
outline-stylenone, solid, dashed, dotted
overflow-wrapnormal, break-word, anywhere
overflow-xauto, visible, hidden, clip, scroll
overflow-yauto, visible, hidden, clip, scroll
pointer-eventsauto, none
positionstatic, relative, absolute, fixed, sticky, -webkit-sticky
text-alignauto, start, end, left, right, center, match-parent, -webkit-left, -webkit-right, -webkit-center, -webkit-auto
text-decoration-linenone, underline
text-overflowclip, ellipsis
text-transformnone, uppercase, lowercase, capitalize
touch-actionauto, none, pan-x, pan-y, pan-x pan-y, manipulation
user-selectauto, none, text, all
vertical-alignbaseline, 0, sub, super, text-top, text-bottom, middle, top, bottom
visibilityvisible, hidden, collapse
white-spacenormal, nowrap, pre, pre-wrap, pre-line, break-spaces, -webkit-nowrap
word-breaknormal, break-all, keep-all, break-word

Not supported (a build error, with this id):

IdWhatWhyInsteadError on
css-propertyproperties the engine does not knowthe engine has no such property, so the declaration would be droppeda supported property, or wrap web-only declarations in @supports not (-bake-native: true)every native target
css-valuevalues that do not parsethe engine cannot parse this value, so the declaration would be droppeda supported value (see the support list)every native target
css-not-declarationtext that is not a declarationthe engine would skip itproperty: value;every native target
css-selectorselectors the engine cannot parsethe whole rule would be droppeda supported selectorevery native target
css-pseudo-elementpseudo-elements other than ::before / ::after (::first-line, ::first-letter, ::marker, ::placeholder, ::selection, ...)native generates only ::before / ::aftera real elementevery 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 onestyle the button (appearance: none, a background or a border), or a real elementevery native target
css-appearance-selectappearance: 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 pickerkeep the platform select (style its font and colors), or a button that opens your own menuevery native target
css-line-clampthe standard line-clamp propertyChromium (the reference) does not implement it yet: the web would ignore itdisplay: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: N; overflow: hiddenevery native target
css-line-clamp-overflow-webkit-line-clamp without overflow: hidden / clip in the same ruleChromium paints the lines after the clamp below the box; native draws only the clamped linesoverflow: hidden in the ruleevery native target
css-line-clamp-content-webkit-line-clamp on a box with block-level, atomic-inline or out-of-flow childrenChromium counts lines through child blocks; native clamps only the box's own textput the text directly in the clamped elementevery native target
css-text-overflow-wraptext-overflow: ellipsis on text that wraps (white-space other than nowrap / pre) outside a line clampChromium ellipsizes every overflowing line of wrapping text; native truncates one unwrapped line or a clamp's last linewhite-space: nowrap, or -webkit-line-clampevery native target
css-text-overflow-inlinetext-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 onlyonly text (and inline elements) in the truncated elementevery native target
css-line-clamp-align-webkit-line-clamp with text-align other than start / leftChromium aligns the clamped line before it places the ellipsis (the ellipsis can end up outside the box); native aligns the cut line with its ellipsistext-align: start on the clamped elementevery native target
css-overflow-wrap-inlineoverflow-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 yetonly text (and inline elements) in the elementevery native target
css-outline-styleoutline-style other than none / solid / dashed / dotted (auto, double, groove, ridge, inset, outset)native draws only solid, dashed and dotted outlinesoutline-style: solid, dashed or dottedevery native target
css-filter-functionfilter 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 droppedthe supported functions, or wrap the rule in @supports not (-bake-native: true)every native target
css-effects-hostfilter: blur() / drop-shadow() on Android below minSdk 31Android 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 levelraise 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-biditext-overflow: ellipsis or -webkit-line-clamp on right-to-left textthe line is truncated left to right: Chromium cuts and places the ellipsis by visual orderkeep right-to-left text untruncatedevery native target
css-pseudo-neverpseudo-classes that never match on native (:visited, :has(), :lang(), :empty, :invalid, ...)the engine treats them as never matchinga class you set from stateevery 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::beforeevery native target
css-forgiving-selector:is() / :where() with an entry the engine cannot parsethe unparsable entry would be dropped silentlyremove or fix the entryevery native target
css-nth-of:nth-child(An+B of S)the of S filter is ignoreda class on the elements you countevery native target
css-at-ruleat-rules other than @media, @keyframes and @supports (-bake-native)the engine skips themwrap 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 framethe font file in the app (url(./fonts/brand.woff2)): bake build bundles itevery 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 appevery 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 valuesthe host would ignore the descriptorremove it, or wrap the rule in @supports not (-bake-native: true)every native target
css-font-face-incomplete@font-face without font-family or srcthe face could never be usedfont-family and srcevery 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-featuremedia features the engine does not evaluatean unknown feature evaluates to false silentlywidth / height / orientation / aspect-ratio / resolution / prefers-color-scheme / prefers-reduced-motion / hover / pointerevery native target
css-keyframes-property@keyframes properties other than opacity, transform, translate, rotate, scale, background-color, color, border colors, outline-color, box-shadow, filter, heightnative does not animate the other layout properties (width, margins, padding, insets) or the restanimate transform / opacity, height, or the paint propertiesevery native target
css-transition-propertytransitions 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 resttransition transform / opacity, height, or the paint propertiesevery native target
css-animation-pausedanimation-play-state: paused (in the animation shorthand)it is ignored: the animation runsadd / remove the animation with a classevery native target
css-display-tabledisplay: table and the table-* valuestable layout is not implemented: it would lay out as blocksdisplay: grid (grid-template-columns for the columns)every native target
css-display-rubydisplay: ruby / ruby-textruby layout is not implemented: it would lay out inlinenothing yetevery native target
css-display-flow-rootdisplay: flow-rootit would lay out as a plain block (margins can collapse through it)display: flex; flex-direction: columnevery native target
css-display-legacy-boxdisplay: -webkit-box / -webkit-inline-box outside the line clamp idiomthe 2009 flexbox would be approximated by flexdisplay: flex, or display: -webkit-box with -webkit-box-orient: vertical and -webkit-line-clamp in the same ruleevery native target
css-overflow-aliasoverflow: overlay / -webkit-paged-x / -webkit-paged-ythey would be approximated by autooverflow: autoevery native target
css-backdrop-filterbackdrop-filter / -webkit-backdrop-filter other than noneno 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 CABackdropLayeran opaque or translucent background-color, or wrap the rule in @supports not (-bake-native: true)every native target
css-align-valuespace-* in align-items / align-self / justify-items / justify-self, last baseline in align-content, baseline in justify-contentthe 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-styleborder styles other than none / hidden / solidnative draws every border solidborder-style: solidevery native target
css-border-radius-ellipticalelliptical border radii (/ or two different radii)the vertical radius is ignoredone radius per cornerevery native target
css-text-decorationtext-decoration-line: line-through / overline / blinknative draws only underlinean element with a border, or nothingevery native target
css-text-transformtext-transform: full-width / full-size-kanathey would be ignoredtransform the text in JSevery native target
css-font-style-obliquefont-style: obliqueit would be drawn as italicfont-style: italicevery native target
css-appearanceappearance values other than none / autothey would be approximated by autoappearance: none or autoevery native target
css-cursorcursor values other than auto / default / pointernative hosts show only the arrow and, over clickable elements, the pointing handcursor: pointer on clickable elementsevery native target
css-list-stylelist-style-type other than nonenative draws no list markerslist-style: none and draw your own markerevery native target
css-background-repeatbackground-repeat: space / roundnative tiles repeat only (no spacing or rounding of the tile size)repeat, no-repeat, repeat-x or repeat-yevery native target
css-svg-paint-serverfill / stroke: context-fill / context-strokecontext paints are not drawn (nothing is used)a colorevery native target
css-color-p3color(display-p3 ...)the components would be read as sRGBan sRGB colorevery native target
css-envenv() 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 conditionshosts provide only the four safe-area insets: another variable would take its fallback or drop the declarationenv(safe-area-inset-top | right | bottom | left)every native target
css-unitthe 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 / vhevery native target
css-intrinsic-sizemin-content / max-content / fit-content / stretch for width, height and their min / maxthey would be approximated by auto (or none)auto, a length, or flex / grid sizingevery native target
css-math-mixedmin() / max() / clamp() mixing % with other unitsthey cannot be resolved without a basis and would use one argumentthe same unit in every argument, or calc()every native target
css-inline-formattinginline boxes sharing a line with text or other boxes next to block-level siblingsa block container that mixes block-level children with inline content gets no anonymous block boxes: the inline boxes would stack verticallywrap the inline content in its own element (a <p> or <div>), or use display: flex for the rowevery native target
css-inline-bidiright-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 implementedkeep right-to-left text in a block of its own text (no inline-blocks, no inline padding / font changes)Windows
css-inline-relativeposition: relative offsets on inline (non-atomic) elements in an inline formatting contextthe element's line fragments would not movedisplay: inline-block on the element, or no offsetevery native target
css-inline-percent-edgepercentage inline-axis margins / padding on inline (non-atomic) elements in an inline formatting contextthey would be ignored (0)px or emevery native target
css-inline-static-positionabsolutely positioned boxes with an automatic (static) position inside an inline formatting contexttheir static position on the line is not computed: they would sit at the start of the content boxset left / right and top / bottom, or position the box outside the lineevery native target
css-inline-white-spacewhite-space on inline elements that differs from their block's, other than nowrap / pre inside a block that wrapslines are broken and white space hangs with the block's white-spacewhite-space on the block, or nowrap on the inline elementevery native target
css-text-justifytext-align: justifylines are not justified: it would lay out as starttext-align: startevery native target
css-directiondirection: rtl on a target whose text backend does not shape right-to-left paragraphs yetboxes 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-isolatean inline element that isolates its content (unicode-bidi: isolate, or a dir attribute) in a paragraph with right-to-left textits content takes part in the paragraph's bidi order instead of being isolatedput the differently directed text in a block of its own, or drop the dir attribute on the inline elementevery native target
css-unicode-bidiunicode-bidi other than normal and isolate (embed, bidi-override, isolate-override, plaintext)embeddings, overrides and plaintext paragraphs are not implementedunicode-bidi: isolate, or the dir attributeevery native target
css-list-markerlist items with a marker (display: list-item, list-style-type other than none)native draws no list markerslist-style: none on the list, and draw your own markerevery native target

On this page