Skip to content

Sort out cross-browser incompatibilities in handling of iframe marginwidth/marginheight if only one is set #2486

@bzbarsky

Description

@bzbarsky

Consider this testcase:

<iframe src="something" marginwidth="100"></iframe>

Assuming the document at "something" doesn't specify topmargin or marginheight attributes on its <body>, what should the top margin be?

The current behavior in UAs is as follows:

  • Blink and WebKit use the default body top margin.
  • Edge uses 0 (but uses the default if marginwidth is not specified on the parent <iframe>).
  • Gecko has the Blink/WebKit behavior if the framed document is in standards mode and the Edge behavior if the framed document is in quirks mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    interopImplementations are not interoperable with each otherneeds implementer interestMoving the issue forward requires implementers to express interestsecurity/privacyThere are security or privacy implicationstopic: rendering

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions