-moz-float-edge

No estándar: Esta característica no es parte de los estándares. No la uses en sitios Web en producción: no funcionará para todos los usuarios. Podrían haber también incompatibilidades considerables entre distintas implementaciones y el comportamiento podría cambiar en el futuro.

La propiedad CSS no estandarizada -moz-float-edge especifica si las propiedades height y width del elemento incluyen el grosor del margen, borde, o relleno.

css
/* Palabras clave */
-moz-float-edge: border-box;
-moz-float-edge: content-box;
-moz-float-edge: margin-box;
-moz-float-edge: padding-box;

/* Valores globales */
-moz-float-edge: inherit;
-moz-float-edge: initial;
-moz-float-edge: unset;

Sintaxis

Valores

border-box

Las propiedades height y width incluyen el contenido, relleno y borde, pero no el margen.

content-box

Las propiedades height y width incluyen el contenido, pero no el relleno, borde o margen.

margin-box

Las propiedades height y width incluyen el contenido, relleno, borde y margen.

padding-box

Las propiedades height y width incluyen el contenido y relleno pero no el borde ni el margen.

Definición formal

Valor inicialcontent-box
Applies toall elements
Heredableno
Valor calculadocomo se especifica
Animation typediscrete

Sintaxis formal

-moz-float-edge =
  border-box | content-box | margin-box | padding-box

Ejemplo

HTML

html
<div class="box">
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>

CSS

css
.box {
  display: block;
  height: 5px;
  margin: 0.5em auto 0.5em auto;
  color: gray;
  -moz-float-edge: margin-box;
  box-sizing: border-box;
}

Resultado

Especificaciones

No es parte de ningún estándar.

Compatibilidad con navegadores

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
-moz-float-edge
DeprecatedNon-standard

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Non-standard. Check cross-browser support before using.
Deprecated. Not for use in new websites.

Véase también