Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support marginHeight and marginWidth attributes #2658

Merged
merged 2 commits into from Dec 5, 2014
Merged

Support marginHeight and marginWidth attributes #2658

merged 2 commits into from Dec 5, 2014

Conversation

ianobermiller
Copy link
Contributor

marginHeight and marginWidth are used on iframes to set the default body margin inside the iframe.

marginHeight and marginWidth are used on iframes to set the default body margin inside the iframe.
@syranide
Copy link
Contributor

syranide commented Dec 4, 2014

I wonder if these haven't been superseded by any other property/style? They seem quite exotic (and not present in HTML5) so I can't really find any good informaton. Anyway... it seems they're available as properties even in IE8 and probably shouldn't have MUST_USE_ATTRIBUTE.

@zpao
Copy link
Member

zpao commented Dec 4, 2014

I was trying to find some styles that would supercede them but couldn't. We also already have frameBorder so meh. I'm losing my will to say no to things that aren't (supposedly) supported in HTML5 and we'll support arbitrary properties at some point anyway.

@@ -104,6 +104,8 @@ var HTMLDOMPropertyConfig = {
list: MUST_USE_ATTRIBUTE,
loop: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
manifest: MUST_USE_ATTRIBUTE,
marginHeight: MUST_USE_ATTRIBUTE,
marginWidth: MUST_USE_ATTRIBUTE,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If updating these works as properties, let's just do that.

@zpao zpao added this to the 0.12.2 milestone Dec 5, 2014
@zpao
Copy link
Member

zpao commented Dec 5, 2014

👍

zpao added a commit that referenced this pull request Dec 5, 2014
Support marginHeight and marginWidth attributes
@zpao zpao merged commit 5c1589b into facebook:master Dec 5, 2014
zpao added a commit to zpao/react that referenced this pull request Dec 18, 2014
Support marginHeight and marginWidth attributes
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 9d7467e on ianobermiller:margin-attrs into * on facebook:master*.

@aweary
Copy link
Contributor

aweary commented Jun 20, 2016

thanks for the update @coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants