Bug 251178

Summary: Whitespace incorrectly suppressed inside table.
Product: WebKit Reporter: Emilio Cobos Álvarez (:emilio) <emilio>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, bfulgham, karlcow, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: BrowserCompat, InRadar, WPTImpact
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
URL: http://wpt.live/css/css-tables/whitespace-001.html

Description Emilio Cobos Álvarez (:emilio) 2023-01-25 15:11:09 PST
In https://bug1811353.bmoattachments.org/attachment.cgi?id=9314059, Blink and WebKit render tables inconsistently from Gecko and the spec.

See also https://github.com/w3c/csswg-drafts/issues/8358 and https://bugs.chromium.org/p/chromium/issues/detail?id=1410345 for context, spec references, and equivalent Chromium bug.
Comment 2 Emilio Cobos Álvarez (:emilio) 2023-01-25 18:20:26 PST
Yep that looks exactly like it.
Comment 3 Radar WebKit Bug Importer 2023-02-01 15:12:25 PST
<rdar://problem/104934417>
Comment 4 Ahmad Saleem 2023-03-09 05:12:47 PST
(In reply to Karl Dubost from comment #1)
> would it be
> https://searchfox.org/wubkat/rev/1c8b29ff201022e3a20578244e85d25d1b7706c4/
> Source/WebCore/rendering/updating/RenderTreeUpdater.cpp#429-431

I tested locally by removing just "parentRenderer.isTable()" make us pass "WPT" test, if we remove other bits, it makes tables go haywire.

If you want to do PR, you can do so or if you want me to do, I am happy to do it as well. Thanks!
Comment 5 Karl Dubost 2023-03-09 07:24:21 PST
Ahmad, feel free to give it a go.