Summary: | Replaced elements avoid floats, including check boxes and radio boxes | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | akeerthi, bfulgham, divya, karlcow, ntim, simon.fraser, webkit-bug-importer, zalan |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Description
Ahmad Saleem
2023-11-13 13:03:42 PST
static bool isReplacedElement(Element* element) { // Checkboxes and radioboxes are not isReplaced() nor do they have their own renderer in which to override avoidFloats(). return element && element->isElementNode() && element->isFormControlElement(); } bool RenderBox::avoidsFloats() const { return isReplacedOrInlineBlock() || isReplacedElement(element()) || isLegend() || isFieldset() || createsNewFormattingContext(); } ^ This compiles and fix the bug. Committed 273047@main (7adc3dd2a226): <https://commits.webkit.org/273047@main> Reviewed commits have been landed. Closing PR #22762 and removing active labels. *** Bug 124723 has been marked as a duplicate of this bug. *** |