Commit 048dd965 authored by Fredrik Söderqvist's avatar Fredrik Söderqvist Committed by Commit Bot

Fix and export svg/text/textpath-local-url-reference.html to WPT

Since the <script> tag appeared after defining the base URL of the
document, the script wasn't fetched and run. This likely worked out
anyway because of having Ahem available through other means.
Fix this and export the test to WPT while at it.

Change-Id: I9dff35db0bcfa6ccaa697d791583e897e47b768f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2162888Reviewed-by: default avatarStephen Chenney <schenney@chromium.org>
Commit-Queue: Fredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#761952}
parent 575c4be2
<svg xmlns="http://www.w3.org/2000/svg" xmlns:h="http://www.w3.org/1999/xhtml">
<title>Local URL reference on &#x3c;textPath&#x3e; with base URL different from document URL</title>
<h:link rel="stylesheet" type="text/css" href="/fonts/ahem.css"/>
<h:link rel="help" href="https://svgwg.org/svg2-draft/linking.html#linkRefAttrs"/>
<h:link rel="match" href="reference/green-100x100.svg"/>
<h:base href="http://www.example.com/"/>
<path id="path" d="M0,80h100"/>
<text font-size="100" font-family="Ahem" fill="green"><textPath href="#path">X</textPath></text>
</svg>
<!DOCTYPE html>
<div style="width: 100px; height: 100px; background-color: green"></div>
Blocked access to external URL http://www.example.com/resources/ahem.js
Blocked access to external URL http://www.example.com/resources/ahem.js
<!DOCTYPE html>
<base href="http://www.example.com/">
<script src="../../resources/ahem.js"></script>
<svg>
<path id="path" d="M0,80h100"/>
<text font-size="100" font-family="Ahem" fill="green"><textPath xlink:href="#path">X</textPath></textPath>
</svg>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment