-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add warning when parent styles will break
next/image
- Loading branch information
Showing
4 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
test/integration/image-component/default/pages/layout-fill-inside-nonrelative.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react' | ||
import Image from 'next/image' | ||
import img from '../public/test.jpg' | ||
|
||
const Page = () => { | ||
return ( | ||
<div style={{ position: 'static' }}> | ||
<Image layout="fill" src={img} /> | ||
</div> | ||
) | ||
} | ||
|
||
export default Page |
13 changes: 13 additions & 0 deletions
13
test/integration/image-component/default/pages/layout-responsive-inside-flex.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react' | ||
import Image from 'next/image' | ||
import img from '../public/test.jpg' | ||
|
||
const Page = () => { | ||
return ( | ||
<div style={{ display: 'flex' }}> | ||
<Image layout="responsive" src={img} /> | ||
</div> | ||
) | ||
} | ||
|
||
export default Page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters