6 border:
1px solid black;
32 display: inline-block;
45 /* Reverse the direction for the second test. */
46 .second .float1, .second .float4 {
50 .second .float2, .second .float3 {
59 <!-- LineWidth.m_left test case. -->
60 <div class=
"container">
61 <div class=
"float1"></div>
63 <!-- Use two floats here to make the initial m_left equal to 0. !-->
64 <div class=
"float2"></div>
65 <div class=
"float3"></div>
68 <!-- The following div will trigger a fitBelowFloats, which should update the m_left/m_right in LineWidth. -->
69 <div class=
"inlineBox"></div>
71 <!-- The following div will trigger a shrinkAvailableWidthForNewFloatIfNeeded which will only update m_left and recalculate. -->
72 <div class=
"float4"></div>
74 Some text that should not overlap the floats.
78 <!-- LineWidth.m_right test case. -->
79 <div class=
"container second">
80 <div class=
"float1"></div>
82 <!-- Use two floats here to make the initial m_right equal to 0. !-->
83 <div class=
"float2"></div>
84 <div class=
"float3"></div>
87 <!-- The following div will trigger a fitBelowFloats, which should update the m_left/m_right in LineWidth. -->
88 <div class=
"inlineBox"></div>
90 <!-- The following div will trigger a shrinkAvailableWidthForNewFloatIfNeeded which will only update m_right and recalculate. -->
91 <div class=
"float4"></div>
93 Some text that should not overlap the floats.