You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<divid="float_one"></div><divid="float_two"></div><!-- line the next p up so that the first line is next to float_one only, but the initial letter is next to both floats --><divstyle="height: 50px"></div><p>This paragraph has an initial letter.</p>
will yield the bottom half of the capital "T" overlapping #float_two, because the initial letter is placed relative to its line box, and the line box is placed relative to its height only, and that height only intersects #float_one
I think the spec needs to say that the line is shortened to account for floats "next to" the initial letter, using wording similar to that in CSS 2. I haven't thought about this solution in any detail, though.
The spec for initial letters currently says that the initial letter is placed relative to the line, and CSS 2 specifies that the line is shortened by floats next to it.
However, this doesn't correctly account for initial letter.
If you interpret the specs literally, then something like:
will yield the bottom half of the capital "T" overlapping
#float_two
, because the initial letter is placed relative to its line box, and the line box is placed relative to its height only, and that height only intersects#float_one
I think the spec needs to say that the line is shortened to account for floats "next to" the initial letter, using wording similar to that in CSS 2. I haven't thought about this solution in any detail, though.
cc @chenpighead
The text was updated successfully, but these errors were encountered: