Last Comment Bug 364423 - stop treating floating first letter frames as floats
: stop treating floating first letter frames as floats
Status: NEW
: css1, css3
Product: Core
Classification: Components
Component: Layout: Block and Inline (show other bugs)
: Trunk
: All All
-- normal with 1 vote (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
: Jet Villegas (:jet)
Depends on:
  Show dependency treegraph
Reported: 2006-12-19 20:58 PST by David Baron :dbaron: ⌚️UTC-8
Modified: 2006-12-20 19:10 PST (History)
3 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Description User image David Baron :dbaron: ⌚️UTC-8 2006-12-19 20:58:55 PST
We should stop treating floating ::first-letter frames as floats using our standard float code.  I think the designers of CSS (in this case, Håkon Lie) intended floating first-letter to be "like a float" but not "exactly a float".

We should:
 * make floating :first-letter participate in inline layout
 * use the bounding metrics of the glyph(s) to size the frame
 * give it a special hard-coded 'vertical-align' (probably roughly 'text-top')
 * make it not participate in line-height calculations
 * mark the space as occupied in the space manager

Note You need to log in before you can comment on or make changes to this bug.