generated from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MWPW-135830 - Decorate Area for fragments (#1520)
* mediaPrefix for medias on adobe.com root * remove mediaPrefix, added decorateArea and run it before decorating area * decorateArea() on fragments * remove unwanted change * replaceDotMedia() * restoring decorateArea(doc) * remove replaceDotMedia since it will be handled from #1523 * remove the test * same as before * added test for decorateArea() --------- Co-authored-by: Blaine Gunn <Blainegunn@gmail.com> Co-authored-by: Honwai Wong <honstar.wong@gmail.com>
- Loading branch information
1 parent
2c5d34b
commit edb5260
Showing
4 changed files
with
27 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
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
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
10 changes: 10 additions & 0 deletions
10
test/blocks/fragment/mocks/fragments/frag-image.plain.html
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,10 @@ | ||
<div> | ||
<p><strong>Test:</strong><br> | ||
<picture class="frag-image"> | ||
<source type="image/webp" srcset="data:," media="(min-width: 600px)"> | ||
<source type="image/webp" srcset="data:,"> | ||
<source type="image/png" srcset="data:," media="(min-width: 600px)"> | ||
<img alt="" src="data:," width="1440" height="992"> | ||
</picture> | ||
</p> | ||
</div> |