Skip to content

Commit

Permalink
Mark loading as valid prop for lazy loading images and iFrames (#1377)
Browse files Browse the repository at this point in the history
* Mark loading as valid prop for lazy loading images and iFrames

* Add loading prop changes to changeset
  • Loading branch information
AjayPoshak authored and emmatown committed Jun 2, 2019
1 parent 757bd86 commit 06426c9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .changeset/1897dfce/changes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"releases": [{ "name": "@emotion/is-prop-valid", "type": "minor" }],
"dependents": [
{
"name": "@emotion/primitives",
"type": "patch",
"dependencies": ["@emotion/is-prop-valid"]
},
{
"name": "@emotion/styled-base",
"type": "patch",
"dependencies": ["@emotion/is-prop-valid"]
}
]
}
1 change: 1 addition & 0 deletions .changeset/1897dfce/changes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Mark loading as a valid property. This property is used to lazily load images and iFrames.
4 changes: 3 additions & 1 deletion packages/is-prop-valid/src/props.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,9 @@ const props = {
// preact
for: true,
class: true,
autofocus: true
autofocus: true,
// Loading attribute for images and iframes Spec PR https://github.com/whatwg/html/pull/3752/files#diff-36cd38f49b9afa08222c0dc9ebfe35eb
loading: true
}
// eslint-disable-next-line import/no-commonjs
module.exports = `/^((${Object.keys(props).join(
Expand Down

0 comments on commit 06426c9

Please sign in to comment.