Esta tradução está incompleta. Por favor, ajude a traduzir este artigo.

Esta é uma tecnologia experimental
Verifique a tabela de compatibilidade entre Navegadores cuidadosamente antes de usar essa funcionalidade em produção.

A propriedade do CSS inline-size define o tamanho horizontal e vertical de um elemento bloco. Ele é correspondente a cada propriedade width ou a height, dependendo do valor de writing-mode.

/* <length> values */
inline-size: 300px;
inline-size: 25em;

/* <percentage> values */
inline-size: 75%;

/* Keyword values */
inline-size: 25em border-box;
inline-size: 75% content-box;
inline-size: max-content;
inline-size: min-content;
inline-size: available;
inline-size: fit-content;
inline-size: auto;

/* Global values */
inline-size: inherit;
inline-size: initial;
inline-size: unset;

Se o writing mode é orientado verticalmente, o valor de inline-size relaciona a altura do elemento; ao contrário, está relacionado a largura do elemento. A propriedade relacionada é a block-size, no qual define a outra dimensão do elemento.

Initial valueauto
Aplica-se asame as width and height
Inheritednão
Percentagesinline-size of containing block
Midiavisual
Computed valuesame as width and height
Animation typediscrete
Canonical orderthe unique non-ambiguous order defined by the formal grammar

Sintaxe

Valores

A propriedade inline-size aproveita os mesmos valores que as propriedades width e height.

Sintaxe formal

<'width'>

Exemplo

HTML

<p class="exampleText">Texto de Exemplo</p>

CSS

.exampleText{
  writing-mode: vertical-rl;
  background-color: yellow;
  inline-size: 110px;
}

Especificações

Especificação Status Comentário
CSS Logical Properties and Values Level 1
The definition of 'inline-size' in that specification.
Rascunho editorial Definição Inicial

Compatibilidade com Navegador

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
inline-sizeChrome Full support 57Edge No support NoFirefox Full support 41
Full support 41
No support 38 — 51
Disabled
Disabled From version 38 until version 51 (exclusive): this feature is behind the layout.css.vertical-text.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE No support NoOpera Full support 44Safari Full support 12.1WebView Android Full support 57Chrome Android Full support 57Edge Mobile No support NoFirefox Android Full support 41
Full support 41
No support 38 — 51
Disabled
Disabled From version 38 until version 51 (exclusive): this feature is behind the layout.css.vertical-text.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android Full support 43Safari iOS Full support 12.2Samsung Internet Android Full support 5.0
max-contentChrome Full support 57Edge No support NoFirefox Full support 66
Full support 66
Full support 41
Prefixed
Prefixed Implemented with the vendor prefix: -moz-
IE No support NoOpera Full support 44Safari Full support 12.1WebView Android Full support 57Chrome Android Full support 57Edge Mobile No support NoFirefox Android Full support 66
Full support 66
Full support 41
Prefixed
Prefixed Implemented with the vendor prefix: -moz-
Opera Android Full support 43Safari iOS Full support 12.2Samsung Internet Android Full support 5.0
min-contentChrome Full support 57Edge No support NoFirefox Full support 66
Full support 66
Full support 41
Prefixed
Prefixed Implemented with the vendor prefix: -moz-
IE No support NoOpera Full support 44Safari Full support 12.1WebView Android Full support 57Chrome Android Full support 57Edge Mobile No support NoFirefox Android Full support 66
Full support 66
Full support 41
Prefixed
Prefixed Implemented with the vendor prefix: -moz-
Opera Android Full support 43Safari iOS Full support 12.2Samsung Internet Android Full support 5.0
fit-contentChrome Full support 57Edge No support NoFirefox Full support 3
Prefixed
Full support 3
Prefixed
Prefixed Implemented with the vendor prefix: -moz-
IE No support NoOpera Full support 44Safari Full support 12.1WebView Android Full support 57Chrome Android Full support 57Edge Mobile No support NoFirefox Android Full support 4
Prefixed
Full support 4
Prefixed
Prefixed Implemented with the vendor prefix: -moz-
Opera Android Full support 43Safari iOS Full support 12.2Samsung Internet Android Full support 5.0
Alternate Name
Full support 5.0
Alternate Name
Alternate Name Uses the non-standard name: -webkit-fill-available

Legend

Full support  
Full support
No support  
No support
User must explicitly enable this feature.
User must explicitly enable this feature.
Uses a non-standard name.
Uses a non-standard name.
Requires a vendor prefix or different name for use.
Requires a vendor prefix or different name for use.

Veja também

Etiquetas do documento e colaboradores

Colaboradores desta página: mdnwebdocs-bot, zKhiro
Última atualização por: mdnwebdocs-bot,