How much of the current weirdness in the way we lay out legend and fieldset do we want to preserve? The current algorithm is basically as follows:

1)  Find the preferred width of the legend.
2)  Set the available space to the max of available space and legend prefwidth
3)  Reflow the contents.
4)  Set our desired size to the content width.

Note that this means the following:

  * "Too-small" CSS widths are ignored.
  * Legend text never wraps
  * Fieldsets "expand out" to be at least the width of the legend (with no
    wrapping)

All of this applies to both block and inline fieldsets.

How much of this do we need to preserve?  What do other browsers do?

Also, in the new world if a block overrides its desired width so it's not equal to the computed width (the way fieldsets do now), does that still work wrt auto-margin centering, etc?

-Boris
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to