Vanilla Breeze v0.7.4

Vanilla Breeze v0.7.4 released

0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…

Read the release notes

Native Attributes

The standard HTML attributes every browser understands, documented with what the specification says, how Vanilla Breeze styles or reads them, and the mistakes to avoid. 60 pages in 10 groups.

Vanilla Breeze documents native attributes alongside its own data-* attributes because the platform comes first. Many problems usually solved with JavaScript are already solved by an attribute: autocomplete for one-tap form filling, loading for lazy images, popover and commandfor for menus and dialogs without script. When VB adds something on top (a style hook, a data-* companion, a component that sets the attribute for you), the page says exactly what and where.

Every page follows the same template:

Browse by group below, or search everything on the attribute index. Attributes covered on another attribute's page, such as fetchpriority on loading, are listed in their group and link to that page.

Global

accesskey

Browser shortcut (modifier + key) to focus or activate an element; data-hotkey is usually better

autocapitalize

How virtual keyboards and voice input capitalize text; set per field or on the form

autocorrect

Automatic spelling and punctuation correction on or off; Baseline 2026, inherits from form

autofocus

Focus on page load or when a dialog or popover opens; the first one in a scope wins

class

VB's element-scoped variants (button.secondary, nav.pills); state lives in data-*/ARIA

is

Customized built-in elements; no Safari support, VB uses data-* enhancers instead

spellcheck

Browser spell-checking on or off for editable text; inherited; off for code and secrets

tabindex

Focusability and Tab order: 0 for a stop, -1 for script focus, never positive

title

Mouse-only tooltip and last-resort accessible name; VB styles abbr[title], tool-tip upgrades it

Internationalization

dir

Text direction (ltr, rtl, auto); VB mirrors direction-specific UI via :dir(rtl)

lang

Content language: pronunciation, quotes, script typography, hyphenation, number/date locale

translate

Keep code, brand names and translatable attributes out of machine translation

Accessibility

ARIA states

aria-current, -pressed, -expanded, -disabled, -busy, -invalid, -sort: what VB styles and sets

Forms

accept

File types a file input offers; data-upload applies it to drops too

autocomplete

Autofill tokens for names, addresses, cards, passwords, passkeys and codes

dirname

Submit a field's text direction (ltr/rtl) alongside its value

disabled

Turn a control or fieldset off: no focus, no validation, not submitted

enterkeyhint

Label on the virtual keyboard's Enter key: next, done, search, send

form

Associate a control with a form by id, from anywhere in the page

formaction

Per-button action, method, enctype, target and novalidate overrides

formmethod / formtarget / formenctype

Per-button method, target and encoding overrides; see formaction

formnovalidate

Submit button that skips validation, e.g. Save draft

inputmode

Choose the virtual keyboard without changing the input type

list

Datalist suggestions for text, range, colour and date inputs

min / max / step

Ranges and increments for number, range, date and time inputs

minlength / maxlength

Length limits for text fields and textareas, with a live counter

multiple

Several values in a select, email or file input; select size

novalidate

Skip submit-time validation for a form or one button (formnovalidate)

pattern

Regex constraint on text inputs, compiled with the v flag

placeholder

Short format example shown in an empty field; not a label

readonly

Non-editable but focusable and submitted; dashed VB styling

required

The control must have a value; VB adds the asterisk and messages

wrap

Whether a textarea's submitted value gets its visual line breaks

Interactivity

closedby

Which user actions close a dialog: any (light dismiss), closerequest or none

command

The action an invoker button sends: show-modal, close, toggle-popover or --custom

commandfor

Invoker buttons: open dialogs and popovers or send custom commands, no script

contenteditable

Edit an element in place as rich or plain text; add role, name and sanitising

draggable

Native drag and drop, VB's drag state hooks, and the alternatives drags need

hidden

Remove content from rendering, or collapse it with hidden="until-found"

inert

Make a visible subtree unfocusable, unclickable and hidden from screen readers

interestfor

Open a popover on hover or focus; hint tooltips, polyfilled by VB

open

Expanded state of details and shown state of dialog, with closedby and VB animation

popover

Top-layer popovers: auto, manual and hint, opened by buttons, commands or interest

popovertarget

Button that toggles, shows or hides a popover; see popover

Links & Security

crossorigin

CORS mode for scripts, styles, images and media; required for SRI and font preloads

download

Save a link's target as a file instead of navigating, with a suggested name

integrity

Subresource Integrity: block scripts and styles whose hash doesn't match

nonce

Per-response CSP token on every trusted script; pair with 'strict-dynamic'

ping

POST a notification to listed URLs when a link is followed (off in Firefox)

referrerpolicy

How much of the page URL a request or link sends as the Referer

rel

Link types: resources and hints, opener/referrer control, meaning VB styles

target

Where a link or form opens: same tab, new tab, parent, top or a named frame

Embeds

allow

Iframe Permissions Policy: camera, microphone, fullscreen, payment and more

sandbox

Restrict an iframe, then grant back scripts, forms, popups and more by token

srcdoc

Inline HTML document for an iframe; same-origin unless sandboxed

Media

controls

Native audio/video controls; when to use video-player or audio-player instead

controlslist

Chromium-only list of native media buttons to hide

poster

Image shown before video playback; pairs with preload=none and VB players

preload

How much media loads before play: none, metadata or auto

sizes

Slot widths for srcset w descriptors, including sizes=auto

srcset

Responsive image candidates with sizes, sizes=auto, picture and data-responsive

Performance

async / defer

When scripts download and run: async, defer, and deferred-by-default modules

blocking

Hold first paint for module, async or script-inserted resources; rel=expect

decoding

Image decoding hint: async, sync or auto

fetchpriority

Fetch priority hint for img, link and script

loading

Lazy loading, fetchpriority and decoding for images, iframes and scripts

Structure

cite

Source URL on blockquote, q, del and ins; pair with visible attribution

datetime

Machine-readable dates, times and durations on time, del and ins

reversed

Ordered-list numbering: reversed, start, li value and type

start

First number of an ordered list

value (li)

Number of one ordered-list item; later items continue from it

Related

All Attributes

Complete attribute index

Data Attributes

VB's data-* enhancers

Elements

Element reference

↑