repo.or.cz
/
gecko.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bug 1839526 [wpt PR 40658] - Update wpt metadata, a=testonly
[gecko.git]
/
layout
/
reftests
/
floats
/
1322843-1a.html
blob
c2f7ba2857875bdc4be7a64e218bf083d253b050
1
<!DOCTYPE
html
>
2
<title>
Bug
1322843
- Intrinsic width with float
</title>
3
<style>
4
#outer {
5
width: -moz-fit-content;
6
width: fit-content;
7
background: red;
8
}
9
#float1 {
10
float: left;
11
width:
100
px;
12
height:
100
px;
13
background: green;
14
}
15
#float2 {
16
float: right;
17
width:
100
px;
18
height:
100
px;
19
background: green;
20
}
21
#inner {
22
width:
200
px;
23
height:
100
px;
24
clear: both;
25
overflow: hidden; /* to establish block formatting context */
26
background: green;
27
}
28
</style>
29
<div
id
=
"outer"
>
30
<div
id
=
"float1"
></div>
31
<div
id
=
"float2"
></div>
32
<div
id
=
"inner"
></div>
33
</div>