Bug 248087 - Align "fieldset" and "legend" with web-spec and not follow "display type: block" or equivalent
Summary: Align "fieldset" and "legend" with web-spec and not follow "display type: blo...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2022-11-18 09:44 PST by Ahmad Saleem
Modified: 2022-11-25 09:45 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>