    def is_floated(self):
        """Return whether this box is floated."""
        return self.style['float'] in ('left', 'right')
Return whether this box is floated.
weasyprint/formatting_structure/boxes.py