| Index: third_party/WebKit/LayoutTests/svg/svg-in-html.html
|
| diff --git a/third_party/WebKit/LayoutTests/svg/svg-in-html.html b/third_party/WebKit/LayoutTests/svg/svg-in-html.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7d0d5aedd7849a48f391fd8c115827722b155fde
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/svg/svg-in-html.html
|
| @@ -0,0 +1,33 @@
|
| +<!DOCTYPE html>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<div></div>
|
| +<script>
|
| +const SVGElements = [
|
| + 'a', 'altGlyph', 'altGlyphDef', 'altGlyphItem', 'animate', 'animateColor',
|
| + 'animateMotion', 'animateTransform', 'audio', 'canvas', 'circle',
|
| + 'clipPath', 'color-profile', 'cursor', 'defs', 'desc', 'discard',
|
| + 'ellipse', 'feBlend', 'feColorMatrix', 'feComponentTransfer',
|
| + 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting',
|
| + 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood',
|
| + 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage',
|
| + 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight',
|
| + 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence', 'filter',
|
| + 'font', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src',
|
| + 'font-face-uri', 'foreignObject', 'g', 'glyph', 'glyphRef', 'hatch',
|
| + 'hatchpath', 'hkern', 'iframe', 'image', 'line', 'linearGradient',
|
| + 'marker', 'mask', 'mesh', 'meshgradient', 'meshpatch', 'meshrow',
|
| + 'metadata', 'missing-glyph', 'mpath', 'path', 'pattern', 'polygon',
|
| + 'polyline', 'radialGradient', 'rect', 'script', 'set', 'solidcolor',
|
| + 'stop', 'style', 'svg', 'switch', 'symbol', 'text', 'textPath', 'title',
|
| + 'tref', 'tspan', 'unknown', 'use', 'video', 'view', 'vkern'
|
| +];
|
| +
|
| +for (const tag of SVGElements) {
|
| + test(function() {
|
| + document.querySelector('div').appendChild(
|
| + document.createElementNS('http://www.w3.org/2000/svg', tag));
|
| + document.body.offsetTop;
|
| + }, "svg:" + tag + " in HTML doesn't crash");
|
| +}
|
| +</script>
|
|
|