Skip to content

debugwand/image-position-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<Picture> and <Image> position attribute bug example

This is a barebones example of the bug in astro where the position attribute has no effect, though it is described in the docs

Documentation on https://docs.astro.build/en/guides/images/#responsive-image-styles states that "You can override the object-fit and object-position styles on a per-image basis by setting the fit and position props on the or component."

Fit props work but position props do not.

🧞 Commands

All commands are run from the root of the project, from a terminal:

Command Action
npm install Installs dependencies
npm run dev Starts local dev server at localhost:4321
npm run build Build your production site to ./dist/
npm run preview Preview your build locally, before deploying

About

Example of the position attribute bug on astro

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors