API reference

stylesheet.cpp · CSS properties

Browse entries grouped by interface file. Expand an entry for declarations, usage and version boundaries.

Read the related guide →

Entries retain declarations and sources. Runtime verification is recorded per entry; internal source candidates are not a promise of SDK delivery.

src/css/stylesheet.cpp
@media
Partial3.61.7C++ / C / Go / Rust

Supports all/screen/print, not/only, comma-separated OR, and, and limited parenthesized feature:value conditions. Unknown features are ignored. MQ4 range comparisons, conditional OR and full Boolean syntax are unsupported.

stylesheet.cpp
@media screen and (min-width:600px), print { ... }

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:520

Report an issue with this entry →
@page marks
Unsupported3.61.7C++ / C / Go / Rust

The stylesheet only preserves marks as raw multitoken text. PageGeometry, Document::printToPDF, and the PDF backend do not read marks. There is no output consumer for crop or registration marks.

stylesheet.cpp
none | crop || cross(无输出行为)

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:2627

Report an issue with this entry →
border
supported3.61.7C++ / C / Go / Rust

Expanded by CSSStyleDeclaration::setProperty.

stylesheet.cpp
对应长属性的简写

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:1894

Report an issue with this entry →
border-bottom
supported3.61.7C++ / C / Go / Rust

Expanded by CSSStyleDeclaration::setProperty.

stylesheet.cpp
对应长属性的简写

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:1894

Report an issue with this entry →
border-color
supported3.61.7C++ / C / Go / Rust

Includes currentColor and transparent.

stylesheet.cpp
对应长属性的简写

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:1894

Report an issue with this entry →
border-image
Partial3.61.7C++ / C / Go / Rust

The shorthand expands into five longhands, with the same capability limits as those longhands.

stylesheet.cpp
<source> <slice> / <width> / <outset> <repeat>

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:2088

Report an issue with this entry →
border-left
supported3.61.7C++ / C / Go / Rust

Expanded by CSSStyleDeclaration::setProperty.

stylesheet.cpp
对应长属性的简写

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:1894

Report an issue with this entry →
border-right
supported3.61.7C++ / C / Go / Rust

Expanded by CSSStyleDeclaration::setProperty.

stylesheet.cpp
对应长属性的简写

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:1894

Report an issue with this entry →
border-style
supported3.61.7C++ / C / Go / Rust

Used by the border painting path. Collapsed tables separately use the shared-border conflict winner model. none and hidden do not produce ordinary visible edge strips.

stylesheet.cpp
对应长属性的简写

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:1894

Report an issue with this entry →
border-top
supported3.61.7C++ / C / Go / Rust

Expanded by CSSStyleDeclaration::setProperty.

stylesheet.cpp
对应长属性的简写

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:1894

Report an issue with this entry →
border-width
supported3.61.7C++ / C / Go / Rust

thin, medium and thick use 1px, 3px and 5px respectively.

stylesheet.cpp
对应长属性的简写

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:1894

Report an issue with this entry →
flex-flow
Partial3.61.7C++ / C / Go / Rust

Declaration expansion writes only the components actually present; omitted components are not consistently reset to their initial values. This does not provide complete shorthand semantics.

stylesheet.cpp
<'flex-direction'> || <'flex-wrap'>

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:1811

Report an issue with this entry →
font
Partial3.61.7C++ / C / Go / Rust

Expands into five longhands; accepts inherit/initial/unset/revert. Composite components such as font-variant/font-stretch and system-font keyword paths are absent. oblique is expanded, but the longhand does not implement it.

stylesheet.cpp
[italic | normal] [normal | bold | bolder | lighter | <三位数字字重>] <font-size> [/ <line-height>] <font-family>

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:2283

Report an issue with this entry →
grid
Partial3.61.7C++ / C / Go / Rust

Currently only splits the two sides of a slash into template rows and columns. The auto-flow shorthand branch and complete reset semantics for areas and implicit tracks are not implemented.

stylesheet.cpp
<grid-template-rows> / <grid-template-columns>

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:2270

Report an issue with this entry →
grid-template
Partial3.61.7C++ / C / Go / Rust

A dedicated tokenizer expands the value and validates rectangular named areas, equal column counts, and track syntax. Does not include subgrid shorthand syntax.

stylesheet.cpp
none | <rows> / <columns> | [ <line-names>? <string> <row-size>? <line-names>? ]+ [ / <columns> ]?

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:2260

Report an issue with this entry →
media 宽高条件
Partial3.61.7C++ / C / Go / Rust

Uses the current viewport with exact pixel equality; no range syntax. The length parser is very limited: em is fixed at 16px, and rem hits both the em and rem branches, so it cannot reliably follow the root font size.

stylesheet.cpp
(min-width/max-width/width/min-height/max-height/height: Npx)

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:455

Report an issue with this entry →
media aspect-ratio
Partial3.61.7C++ / C / Go / Rust

Only min/max ratios are supported. Exact aspect-ratio conditions and range comparisons are unsupported.

stylesheet.cpp
(min-aspect-ratio/max-aspect-ratio: 16/9)

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:455

Report an issue with this entry →
media color
Partial3.61.7C++ / C / Go / Rust

Color depth is fixed at 8; monochrome is fixed at false.

stylesheet.cpp
(color) / (color:8) / (min-color:8) / (monochrome)

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:455

Report an issue with this entry →
media hover/pointer
Partial3.61.7C++ / C / Go / Rust

Fixed to hover and fine; does not query actual device capabilities.

stylesheet.cpp
(hover:hover|none) / (pointer:fine|coarse|none)

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:455

Report an issue with this entry →
media orientation
Partial3.61.7C++ / C / Go / Rust

Uses viewportHeight >= viewportWidth to determine portrait orientation.

stylesheet.cpp
(orientation:portrait|landscape)

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:455

Report an issue with this entry →
media prefers-color-scheme
Partial3.61.7C++ / C / Go / Rust

Fixed to light; does not read system or theme preferences.

stylesheet.cpp
(prefers-color-scheme:light|dark)

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:455

Report an issue with this entry →
media prefers-reduced-motion
Partial3.61.7C++ / C / Go / Rust

Fixed to no-preference; reduce returns false.

stylesheet.cpp
(prefers-reduced-motion:reduce|no-preference)

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:455

Report an issue with this entry →
media resolution
Partial3.61.7C++ / C / Go / Rust

Converts dpi/dpcm/dppx/x, but device resolution is fixed at 96dpi and does not reflect the window DPR.

stylesheet.cpp
(min-resolution/max-resolution: 96dpi)

Historical audit version: 3.59.0 · 2026-11-01 Asia/Shanghai (UTC+08:00)

Verification scope

Imported static source audit from 2026-11-01 / 3.59.0. References are available; this is not a fresh runtime verification of this release.

src/css/stylesheet.cpp:455

Report an issue with this entry →
Browse this reference type →