-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend the 'click' listener of view transitions to handle links in SV…
…Gs and areas in image maps (#9140) * handle clicks on SVGAElements and image maps * add changeset
- Loading branch information
Showing
4 changed files
with
86 additions
and
8 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'astro': patch | ||
--- | ||
|
||
View Transitions: handle clicks on SVGAElements and image maps" |
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
22 changes: 22 additions & 0 deletions
22
packages/astro/e2e/fixtures/view-transitions/src/pages/non-html-anchor.astro
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,22 @@ | ||
--- | ||
import Layout from '../components/Layout.astro'; | ||
--- | ||
<Layout> | ||
<h1>SVGA and Image Map links</h1> | ||
|
||
<svg viewBox="0 0 160 40" xmlns="http://www.w3.org/2000/svg"> | ||
<a href="/two" id="svga"> | ||
<text x="10" y="25" id="insidesvga">text within a svga</text> | ||
</a> | ||
</svg> | ||
|
||
|
||
<map name="map"> | ||
<area shape="default" href="/two" alt="logo" id="area"/> | ||
</map> | ||
<img id="logo" usemap="#map" src="/logo.svg" alt="logo" /> | ||
<style> | ||
body { | ||
background: #888; | ||
} | ||
</style> |
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