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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/text/invalid-non-bmp-characters.html

Issue 1816453002: Add workaround for invalid non-bmp character measurements in SVG (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/svg/SVGTextMetricsBuilder.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <svg id="svg" height="0" font-size="100">
6 <text id="text">
7 <!-- invalid non-bmp character followed by a valid character -->
8 <tspan>&#x90012;a</tspan>
9 <!-- many invalid non-bmp characters followed by a valid character -->
10 <tspan>&#x90012;&#x90012;&#x90012;&#x90012;a&#x90012;&#x90012;&#x90012;& #x90012;a</tspan>
11 <!-- alternating valid and invalid non-bmp characters -->
12 <tspan>&#128514;&#x90012;&#128514;&#x90012;&#128514;&#x90012;</tspan>
13 <!-- invalid non-bmp characters in rtl -->
14 <tspan direction="rtl">نشاط&#128514;نشاط&#x90012;&#x90012;ن&#x90012;شاط& #128514;نش&#x90012;اط&#x90012;ا</tspan>
15 </text>
16 </svg>
17 <script>
18 test(function() {
19 text.getComputedTextLength();
20 svg.parentElement.removeChild(svg);
21 }, 'Text runs with invalid non-bmp characters should not crash.');
22 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/svg/SVGTextMetricsBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698