| <!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> |