Bug 170336

Summary: iframe/body marginwidth leftmargin et al attributes are not per spec
Product: WebKit Reporter: Simon Pieters (:zcorpan) <zcorpan>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, cdumez, rniwa, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: FromImplementor, InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Simon Pieters (:zcorpan)
Reported 2017-03-31 04:59:58 PDT
WebKit and Chromium copy marginwidth and marginheight attributes from <iframe> to the child document's <body>. This does not match Gecko or Edge and is non-conforming with HTML standard. See https://github.com/whatwg/html/issues/2484 https://github.com/whatwg/html/pull/2489 https://github.com/w3c/web-platform-tests/issues/5276
Attachments
Ahmad Saleem
Comment 1 2022-08-10 03:19:19 PDT
Radar WebKit Bug Importer
Comment 2 2022-08-10 10:53:54 PDT
Ryosuke Niwa
Comment 3 2022-08-10 14:19:54 PDT
We have a FIXME about this in HTMLBodyElement::didFinishInsertingNode(): https://github.com/WebKit/WebKit/blob/main/Source/WebCore/html/HTMLBodyElement.cpp#L166
Note You need to log in before you can comment on or make changes to this bug.