Bug 248087

Summary: Align "fieldset" and "legend" with web-spec and not follow "display type: block" or equivalent
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: karlcow, ntim, webkit-bug-importer
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Description Ahmad Saleem 2022-11-18 09:44:52 PST
Hi Team,

I manage to partially fix bug 116031 by improving our current implementation by styling 'legend' from "display type:  block" to equivalent of Block types and it improve our web compatibility but we are still not as good as other browsers (especially Firefox).

Web-Spec - https://html.spec.whatwg.org/multipage/rendering.html#the-fieldset-and-legend-elements:the-legend-element

Following was mentioned by Tim on the PR - https://github.com/WebKit/WebKit/pull/6516

"Although there's quite a bit of work to make it match the spec like Firefox does, e.g.:

the computed value of display shouldn't change (this is what the rest of failures are)
this should only apply to "rendered legends" (e.g. the legend has to be part of a fieldset)
Thanks!"

and just for tracking better - following commit added "display type: block" - https://trac.webkit.org/changeset/41538/webkit

Just wanted to raise it for tracking purposes.

Thanks!
Comment 1 Radar WebKit Bug Importer 2022-11-25 09:45:16 PST
<rdar://problem/102670265>