Bug 170336
| Summary: | iframe/body marginwidth leftmargin et al attributes are not per spec | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Simon Pieters (:zcorpan) <zcorpan> |
| Component: | DOM | Assignee: | 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)
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
Safari Technical Preview 150 still fail following WPT tests:
https://wpt.fyi/results/html/rendering/non-replaced-elements/the-page?label=master&label=experimental&aligned&view=subtest&q=iframe%20margin
Just wanted to update. Thanks!
Radar WebKit Bug Importer
<rdar://problem/98459931>
Ryosuke Niwa
We have a FIXME about this in HTMLBodyElement::didFinishInsertingNode():
https://github.com/WebKit/WebKit/blob/main/Source/WebCore/html/HTMLBodyElement.cpp#L166