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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <div></div>
5 <script>
6 const SVGElements = [
7 'a', 'altGlyph', 'altGlyphDef', 'altGlyphItem', 'animate', 'animateColor',
8 'animateMotion', 'animateTransform', 'audio', 'canvas', 'circle',
9 'clipPath', 'color-profile', 'cursor', 'defs', 'desc', 'discard',
10 'ellipse', 'feBlend', 'feColorMatrix', 'feComponentTransfer',
11 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting',
12 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood',
13 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage',
14 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight',
15 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence', 'filter',
16 'font', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src',
17 'font-face-uri', 'foreignObject', 'g', 'glyph', 'glyphRef', 'hatch',
18 'hatchpath', 'hkern', 'iframe', 'image', 'line', 'linearGradient',
19 'marker', 'mask', 'mesh', 'meshgradient', 'meshpatch', 'meshrow',
20 'metadata', 'missing-glyph', 'mpath', 'path', 'pattern', 'polygon',
21 'polyline', 'radialGradient', 'rect', 'script', 'set', 'solidcolor',
22 'stop', 'style', 'svg', 'switch', 'symbol', 'text', 'textPath', 'title',
23 'tref', 'tspan', 'unknown', 'use', 'video', 'view', 'vkern'
24 ];
25
26 for (const tag of SVGElements) {
27 test(function() {
28 document.querySelector('div').appendChild(
29 document.createElementNS('http://www.w3.org/2000/svg', tag));
30 document.body.offsetTop;
31 }, "svg:" + tag + " in HTML doesn't crash");
32 }
33 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698