Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

inline-size — CSS property

`inline-size` sets the box size on the inline axis.

Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required

Syntax

<'width'>

inline-size sets the box size on the inline axis.

The example measures the border box after applying the value, exposing the physical or logical axis rather than merely parser support.

The accepted grammar is <'width'>; global values still participate in the cascade.

box-sizing changes what the number includes, and logical properties follow writing-mode.

Examples

<!doctype html>
<html lang="en"><meta charset="utf-8"><title>CKTIS CSS reference example</title>
<body><div class="probe">probe</div><pre id="result"></pre><script>
const x=document.querySelector(".probe");x.style.cssText="writing-mode:vertical-rl;box-sizing:border-box;inline-size:72px;block-size:24px";const b=x.getBoundingClientRect();document.querySelector("#result").textContent="box="+Math.round(b.width)+"x"+Math.round(b.height)+"; computed="+getComputedStyle(x).inlineSize;
</script></body></html>

Result

box=24x72; computed=72px

The example was executed locally in an isolated, network-free Chrome session; the result comes from the browser CSS API.

Sources