-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
83 lines (59 loc) · 1.42 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
title: "-moz-float-edge"
slug: Web/CSS/-moz-float-edge
page-type: css-property
status:
- deprecated
- non-standard
browser-compat: css.properties.-moz-float-edge
---
{{CSSRef}}{{Non-standard_header}}{{Deprecated_Header}}
The non-standard **`-moz-float-edge`** [CSS](/en-US/docs/Web/CSS) property specifies whether the height and width properties of the element include the margin, border, or padding thickness.
## Syntax
```css
/* Keyword values */
-moz-float-edge: content-box;
-moz-float-edge: margin-box;
/* Global values */
-moz-float-edge: inherit;
-moz-float-edge: initial;
-moz-float-edge: unset;
```
### Values
- `content-box`
- : The height and width properties include the content, but not the padding, border or margin.
- `margin-box`
- : The height and width properties include the content, padding, border and margin.
## Formal definition
{{CSSInfo}}
## Formal syntax
```plain
-moz-float-edge =
content-box | margin-box
```
## Examples
### 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;
}
```
### Result
{{ EmbedLiveSample('Examples') }}
## Specifications
Not part of any standard.
## Browser compatibility
{{Compat}}
## See also
- [Firefox bug 432891](https://bugzil.la/432891)