Class BlockFormattingContextUtil

java.lang.Object
com.itextpdf.layout.renderer.BlockFormattingContextUtil

public class BlockFormattingContextUtil extends Object
This class helps to identify whether we are dealing with a renderer that creates a new "Block formatting context" in terms of CSS. Such renderers adhere to specific rules of floating elements and margins collapse handling.

See Also:
  • Constructor Details

    • BlockFormattingContextUtil

      public BlockFormattingContextUtil()
  • Method Details

    • isRendererCreateBfc

      public static boolean isRendererCreateBfc (IRenderer renderer)
      Defines whether a renderer creates a new "Block formatting context" in terms of CSS.

      See BlockFormattingContextUtil class description for more info.

      Parameters:
      renderer - an IRenderer to be checked.
      Returns:
      true if given renderer creates a new "Block formatting context" in terms of CSS, false otherwise.