| Summary: | [CSS Shapes] Clamp reference box to zero for the reference box calculation in the MarginBox case | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Normal | CC: | noam, ntim, simon.fraser, thorton, webkit-bug-importer, zalan |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Ahmad Saleem
2022-12-20 03:59:18 PST
This works:
void ShapeOutsideInfo::invalidateForSizeChangeIfNeeded()
{
auto newSize = computeLogicalBoxSize(m_renderer, m_renderer.containingBlock()->isHorizontalWritingMode());
+++++ newSize.clampNegativeToZero();
if (m_cachedShapeLogicalSize == newSize)
return;
Confirmed, we don't crash the test case from Blink commit in release and debug (thanks Tim for confirming on debug build). Marking this as 'RESOLVED WONTFIX'. |