Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: third_party/WebKit/LayoutTests/svg/svg-in-html.html

Issue 2689083004: Don't unconditionally generate a layout object for SVG <stop> elements. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698