diff --git a/core/src/components/img/img.scss b/core/src/components/img/img.scss index e9c13b84dcb..ca972b638e4 100644 --- a/core/src/components/img/img.scss +++ b/core/src/components/img/img.scss @@ -1,6 +1,8 @@ :host { display: block; + + object-fit: contain; } img { diff --git a/core/src/components/img/test/basic/index.html b/core/src/components/img/test/basic/index.html index a20f57d4f8f..d56bc05efdf 100644 --- a/core/src/components/img/test/basic/index.html +++ b/core/src/components/img/test/basic/index.html @@ -3,7 +3,7 @@ - Floating Action Button - Basic + Img - Basic diff --git a/core/src/components/img/test/standalone/e2e.js b/core/src/components/img/test/standalone/e2e.js new file mode 100644 index 00000000000..82d981a7f1b --- /dev/null +++ b/core/src/components/img/test/standalone/e2e.js @@ -0,0 +1,19 @@ +'use strict'; + +const { By, until } = require('selenium-webdriver'); +const { register, Page, platforms } = require('../../../../../scripts/e2e'); + +class E2ETestPage extends Page { + constructor(driver, platform) { + super(driver, `http://localhost:3333/src/components/fab/test/basic?ionic:mode=${platform}`); + } +} + +platforms.forEach(platform => { + describe('fab/basic', () => { + register('should init', driver => { + const page = new E2ETestPage(driver, platform); + return page.navigate('#content'); + }); + }); +}); diff --git a/core/src/components/img/test/standalone/index.html b/core/src/components/img/test/standalone/index.html new file mode 100644 index 00000000000..4e2e8c12392 --- /dev/null +++ b/core/src/components/img/test/standalone/index.html @@ -0,0 +1,76 @@ + + + + + + Img - Standalone + + + + + + +

Default

+ + +

Custom Width

+ + +

Custom Height

+ + +

Custom Height / Fit

+ + +

Grid of Images

+ + + + + + + +