From 6bf0a5cb5034a7e684dcc3500e841785237ce2dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:32:43 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- .../reftests/text-svgglyphs/bug1320197-1-ref.html | 19 ++ layout/reftests/text-svgglyphs/bug1320197-1.html | 21 ++ layout/reftests/text-svgglyphs/clip-ref.html | 21 ++ layout/reftests/text-svgglyphs/clip.html | 39 ++++ layout/reftests/text-svgglyphs/reftest.list | 33 +++ layout/reftests/text-svgglyphs/resources/README | 61 +++++ .../resources/bug1320197-testFont2.ttf | Bin 0 -> 1972 bytes .../text-svgglyphs/resources/glyphs-base.svg | 13 ++ .../text-svgglyphs/resources/glyphs-invalid.svg | 40 ++++ .../resources/glyphs-objectcolor.svg | 24 ++ .../resources/glyphs-objectopacity.svg | 59 +++++ .../resources/glyphs-objectstroke.svg | 25 ++ .../resources/glyphs-paintservers.svg | 28 +++ .../text-svgglyphs/resources/glyphs-transforms.svg | 67 ++++++ .../reftests/text-svgglyphs/resources/nosvg.woff | Bin 0 -> 68044 bytes .../reftests/text-svgglyphs/resources/rubbish.txt | 1 + .../reftests/text-svgglyphs/resources/rubbish.woff | Bin 0 -> 68172 bytes .../text-svgglyphs/resources/svg-bitmap.ttf | Bin 0 -> 2064 bytes .../text-svgglyphs/resources/svg-bitmap.ttx | 253 +++++++++++++++++++++ .../text-svgglyphs/resources/svg-glyph-extents.otf | Bin 0 -> 183892 bytes .../reftests/text-svgglyphs/resources/svg-gz.ttf | Bin 0 -> 113804 bytes layout/reftests/text-svgglyphs/resources/svg.woff | Bin 0 -> 70060 bytes .../text-svgglyphs/svg-glyph-basic-disabled.svg | 27 +++ .../text-svgglyphs/svg-glyph-basic-ref.svg | 8 + layout/reftests/text-svgglyphs/svg-glyph-basic.svg | 25 ++ .../text-svgglyphs/svg-glyph-cachedopacity-ref.svg | 6 + .../text-svgglyphs/svg-glyph-cachedopacity.svg | 20 ++ .../text-svgglyphs/svg-glyph-compressed-ref.html | 13 ++ .../text-svgglyphs/svg-glyph-compressed.html | 13 ++ .../text-svgglyphs/svg-glyph-direct-ref.svg | 27 +++ .../reftests/text-svgglyphs/svg-glyph-direct.svg | 19 ++ .../text-svgglyphs/svg-glyph-extents-ref.html | 27 +++ .../reftests/text-svgglyphs/svg-glyph-extents.html | 50 ++++ .../reftests/text-svgglyphs/svg-glyph-html-ref.svg | 11 + layout/reftests/text-svgglyphs/svg-glyph-html.html | 12 + .../text-svgglyphs/svg-glyph-invalid-ids-ref.svg | 6 + .../text-svgglyphs/svg-glyph-invalid-ids.svg | 22 ++ .../text-svgglyphs/svg-glyph-invalid-ref.html | 18 ++ .../reftests/text-svgglyphs/svg-glyph-invalid.html | 23 ++ .../reftests/text-svgglyphs/svg-glyph-mask-ref.svg | 15 ++ layout/reftests/text-svgglyphs/svg-glyph-mask.svg | 12 + .../svg-glyph-objectfill-solid-ref.svg | 4 + .../text-svgglyphs/svg-glyph-objectfill-solid.svg | 27 +++ .../svg-glyph-objectgradient-ref.svg | 25 ++ .../svg-glyph-objectgradient-zoom-ref.svg | 25 ++ .../svg-glyph-objectgradient-zoom.svg | 35 +++ .../text-svgglyphs/svg-glyph-objectgradient.svg | 36 +++ .../text-svgglyphs/svg-glyph-objectopacity-ref.svg | 30 +++ .../text-svgglyphs/svg-glyph-objectopacity.svg | 40 ++++ .../svg-glyph-objectopacity2-ref.svg | 30 +++ .../text-svgglyphs/svg-glyph-objectopacity2.svg | 39 ++++ .../text-svgglyphs/svg-glyph-objectpattern-ref.svg | 25 ++ .../text-svgglyphs/svg-glyph-objectpattern.svg | 35 +++ .../svg-glyph-objectstroke-solid-ref.svg | 6 + .../svg-glyph-objectstroke-solid.svg | 27 +++ .../svg-glyph-objectvalue-150-ref.svg | 13 ++ .../text-svgglyphs/svg-glyph-objectvalue-150.svg | 21 ++ .../svg-glyph-objectvalue-75-ref.svg | 13 ++ .../text-svgglyphs/svg-glyph-objectvalue-75.svg | 21 ++ .../text-svgglyphs/svg-glyph-objectvalue-ref.svg | 13 ++ .../text-svgglyphs/svg-glyph-objectvalue.svg | 21 ++ .../text-svgglyphs/svg-glyph-paint-server-ref.svg | 10 + .../text-svgglyphs/svg-glyph-paint-server.svg | 21 ++ .../text-svgglyphs/svg-glyph-paintnone-ref.svg | 17 ++ .../text-svgglyphs/svg-glyph-paintnone.svg | 25 ++ .../svg-glyph-positioning-disabled.svg | 25 ++ .../text-svgglyphs/svg-glyph-positioning-ref.svg | 21 ++ .../text-svgglyphs/svg-glyph-positioning.svg | 23 ++ .../text-svgglyphs/svg-glyph-transform-ref.svg | 48 ++++ .../text-svgglyphs/svg-glyph-transform.svg | 48 ++++ .../text-svgglyphs/svg-in-ot-bitmap-1-ref.html | 30 +++ .../text-svgglyphs/svg-in-ot-bitmap-1.html | 33 +++ 72 files changed, 1845 insertions(+) create mode 100644 layout/reftests/text-svgglyphs/bug1320197-1-ref.html create mode 100644 layout/reftests/text-svgglyphs/bug1320197-1.html create mode 100644 layout/reftests/text-svgglyphs/clip-ref.html create mode 100644 layout/reftests/text-svgglyphs/clip.html create mode 100644 layout/reftests/text-svgglyphs/reftest.list create mode 100644 layout/reftests/text-svgglyphs/resources/README create mode 100644 layout/reftests/text-svgglyphs/resources/bug1320197-testFont2.ttf create mode 100644 layout/reftests/text-svgglyphs/resources/glyphs-base.svg create mode 100644 layout/reftests/text-svgglyphs/resources/glyphs-invalid.svg create mode 100644 layout/reftests/text-svgglyphs/resources/glyphs-objectcolor.svg create mode 100644 layout/reftests/text-svgglyphs/resources/glyphs-objectopacity.svg create mode 100644 layout/reftests/text-svgglyphs/resources/glyphs-objectstroke.svg create mode 100644 layout/reftests/text-svgglyphs/resources/glyphs-paintservers.svg create mode 100644 layout/reftests/text-svgglyphs/resources/glyphs-transforms.svg create mode 100644 layout/reftests/text-svgglyphs/resources/nosvg.woff create mode 100644 layout/reftests/text-svgglyphs/resources/rubbish.txt create mode 100644 layout/reftests/text-svgglyphs/resources/rubbish.woff create mode 100644 layout/reftests/text-svgglyphs/resources/svg-bitmap.ttf create mode 100644 layout/reftests/text-svgglyphs/resources/svg-bitmap.ttx create mode 100644 layout/reftests/text-svgglyphs/resources/svg-glyph-extents.otf create mode 100644 layout/reftests/text-svgglyphs/resources/svg-gz.ttf create mode 100644 layout/reftests/text-svgglyphs/resources/svg.woff create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-basic-disabled.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-basic-ref.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-basic.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-cachedopacity-ref.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-cachedopacity.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-compressed-ref.html create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-compressed.html create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-direct-ref.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-direct.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-extents-ref.html create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-extents.html create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-html-ref.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-html.html create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-invalid-ids-ref.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-invalid-ids.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-invalid-ref.html create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-invalid.html create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-mask-ref.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-mask.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-objectfill-solid-ref.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-objectfill-solid.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-objectgradient-ref.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-objectgradient-zoom-ref.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-objectgradient-zoom.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-objectgradient.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-objectopacity-ref.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-objectopacity.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-objectopacity2-ref.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-objectopacity2.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-objectpattern-ref.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-objectpattern.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-objectstroke-solid-ref.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-objectstroke-solid.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-objectvalue-150-ref.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-objectvalue-150.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-objectvalue-75-ref.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-objectvalue-75.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-objectvalue-ref.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-objectvalue.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-paint-server-ref.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-paint-server.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-paintnone-ref.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-paintnone.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-positioning-disabled.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-positioning-ref.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-positioning.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-transform-ref.svg create mode 100644 layout/reftests/text-svgglyphs/svg-glyph-transform.svg create mode 100644 layout/reftests/text-svgglyphs/svg-in-ot-bitmap-1-ref.html create mode 100644 layout/reftests/text-svgglyphs/svg-in-ot-bitmap-1.html (limited to 'layout/reftests/text-svgglyphs') diff --git a/layout/reftests/text-svgglyphs/bug1320197-1-ref.html b/layout/reftests/text-svgglyphs/bug1320197-1-ref.html new file mode 100644 index 0000000000..b6dd5db7f1 --- /dev/null +++ b/layout/reftests/text-svgglyphs/bug1320197-1-ref.html @@ -0,0 +1,19 @@ + + + + +

There should be no purple visible at any of the edges of the black square.

+ +
diff --git a/layout/reftests/text-svgglyphs/bug1320197-1.html b/layout/reftests/text-svgglyphs/bug1320197-1.html new file mode 100644 index 0000000000..d9fcd1cbf5 --- /dev/null +++ b/layout/reftests/text-svgglyphs/bug1320197-1.html @@ -0,0 +1,21 @@ + + + + +

There should be no purple visible at any of the edges of the black square.

+ +
+ +
diff --git a/layout/reftests/text-svgglyphs/clip-ref.html b/layout/reftests/text-svgglyphs/clip-ref.html new file mode 100644 index 0000000000..c310bfb86c --- /dev/null +++ b/layout/reftests/text-svgglyphs/clip-ref.html @@ -0,0 +1,21 @@ + + + + + +
+O
+
+ + diff --git a/layout/reftests/text-svgglyphs/clip.html b/layout/reftests/text-svgglyphs/clip.html new file mode 100644 index 0000000000..4f91ff10c3 --- /dev/null +++ b/layout/reftests/text-svgglyphs/clip.html @@ -0,0 +1,39 @@ + + + + + + + +
+O
+
+ + diff --git a/layout/reftests/text-svgglyphs/reftest.list b/layout/reftests/text-svgglyphs/reftest.list new file mode 100644 index 0000000000..bf606ff350 --- /dev/null +++ b/layout/reftests/text-svgglyphs/reftest.list @@ -0,0 +1,33 @@ +defaults pref(gfx.font_rendering.opentype_svg.enabled,true) + +pref(gfx.font_rendering.opentype_svg.enabled,false) != svg-glyph-basic-disabled.svg svg-glyph-basic-ref.svg +fuzzy(0-1,0-200) == svg-glyph-basic.svg svg-glyph-basic-ref.svg +== svg-glyph-invalid-ids.svg svg-glyph-invalid-ids-ref.svg +pref(gfx.font_rendering.opentype_svg.enabled,false) != svg-glyph-positioning-disabled.svg svg-glyph-positioning-ref.svg +fuzzy(0-2,0-350) == svg-glyph-positioning.svg svg-glyph-positioning-ref.svg +== svg-glyph-html.html svg-glyph-html-ref.svg +== svg-glyph-direct.svg svg-glyph-direct-ref.svg +== svg-glyph-invalid.html svg-glyph-invalid-ref.html +== svg-glyph-objectfill-solid.svg svg-glyph-objectfill-solid-ref.svg +fuzzy(0-2,0-200) == svg-glyph-objectstroke-solid.svg svg-glyph-objectstroke-solid-ref.svg +fuzzy(0-1,0-300) == svg-glyph-objectgradient.svg svg-glyph-objectgradient-ref.svg # see bug 871961#c5 +fuzzy(0-1,0-250) == svg-glyph-objectgradient-zoom.svg svg-glyph-objectgradient-zoom-ref.svg +fuzzy(0-14,0-13000) == svg-glyph-objectpattern.svg svg-glyph-objectpattern-ref.svg +== clip.html clip-ref.html +fuzzy(0-1,0-350) == svg-glyph-objectopacity.svg svg-glyph-objectopacity-ref.svg # see bug 871961#c5 +fuzzy(0-8,0-13000) == svg-glyph-objectopacity2.svg svg-glyph-objectopacity2-ref.svg +fuzzy(0-2,0-200) == svg-glyph-paintnone.svg svg-glyph-paintnone-ref.svg +fuzzy(0-2,0-200) == svg-glyph-cachedopacity.svg svg-glyph-cachedopacity-ref.svg +== svg-glyph-objectvalue.svg svg-glyph-objectvalue-ref.svg +fails-if(useDrawSnapshot) != svg-glyph-objectvalue.svg svg-glyph-objectvalue-75.svg +== svg-glyph-objectvalue-75.svg svg-glyph-objectvalue-75-ref.svg +== svg-glyph-objectvalue-150.svg svg-glyph-objectvalue-150-ref.svg +fuzzy(0-15,0-152) == svg-glyph-mask.svg svg-glyph-mask-ref.svg +== svg-glyph-paint-server.svg svg-glyph-paint-server-ref.svg +== svg-glyph-transform.svg svg-glyph-transform-ref.svg +== svg-glyph-extents.html svg-glyph-extents-ref.html +== svg-glyph-compressed.html svg-glyph-compressed-ref.html +fuzzy-if(cocoaWidget,0-1,0-33) == bug1320197-1.html bug1320197-1-ref.html +fuzzy-if(winWidget,0-137,0-198) fuzzy-if(Android,0-81,0-96) == svg-in-ot-bitmap-1.html svg-in-ot-bitmap-1-ref.html + +defaults diff --git a/layout/reftests/text-svgglyphs/resources/README b/layout/reftests/text-svgglyphs/resources/README new file mode 100644 index 0000000000..852e5e4206 --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/README @@ -0,0 +1,61 @@ +.woff files for SVG-in-OpenType testing +======================================= + +There are three .woff files in this directory: + * nosvg.woff + * svg.woff + * rubbish.woff + +nosvg.woff +---------- +This font is FiraSansOT-Regular, with its metrics hacked so that its ascent +is 1000 and descent is 0. Its unitsPerEm value is 1000. + +It contains no 'SVG ' table. + +svg.woff +-------- +This font is the same as nosvg.woff above, but with the glyphs-*.svg SVG +documents from this directory embedded in it using the tools described below. + +rubbish.woff +------------ +This font is the same as nosvg.woff above, but with the addition of an 'SVG ' +table with the contents of rubbish.txt. Its purpose is to test that SVG tables +without valid XML are ignored. + +Creating the Fonts +------------------ +The tools used here are insertsvg.py from [1] and sfnt2woff from [2]. + +svg.woff can be recreated with: + +woff2sfnt nosvg.woff > nosvg.ttf +insertsvg.py nosvg.ttf svg.ttf glyphs-*.svg +sfnt2woff svg.ttf + +[1] https://github.com/edf825/SVG-OpenType-Utils +[2] http://people.mozilla.com/~jkew/woff/ + + + +Additional test fonts: +====================== + +svg-glyph-extents.otf +--------------------- + +This is a copy of Fira Sans with a simple SVG table added using the tool from +https://github.com/rocallahan/svg-opentype-workshop. The SVG table defines four +glyphs, corresponding to 'A' through 'D': + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/resources/bug1320197-testFont2.ttf b/layout/reftests/text-svgglyphs/resources/bug1320197-testFont2.ttf new file mode 100644 index 0000000000..8ef2e89edf Binary files /dev/null and b/layout/reftests/text-svgglyphs/resources/bug1320197-testFont2.ttf differ diff --git a/layout/reftests/text-svgglyphs/resources/glyphs-base.svg b/layout/reftests/text-svgglyphs/resources/glyphs-base.svg new file mode 100644 index 0000000000..51c32135c0 --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/glyphs-base.svg @@ -0,0 +1,13 @@ + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/resources/glyphs-invalid.svg b/layout/reftests/text-svgglyphs/resources/glyphs-invalid.svg new file mode 100644 index 0000000000..4740b4ff3b --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/glyphs-invalid.svg @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/resources/glyphs-objectcolor.svg b/layout/reftests/text-svgglyphs/resources/glyphs-objectcolor.svg new file mode 100644 index 0000000000..cf738d0cc1 --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/glyphs-objectcolor.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/resources/glyphs-objectopacity.svg b/layout/reftests/text-svgglyphs/resources/glyphs-objectopacity.svg new file mode 100644 index 0000000000..7fc479e22b --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/glyphs-objectopacity.svg @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/resources/glyphs-objectstroke.svg b/layout/reftests/text-svgglyphs/resources/glyphs-objectstroke.svg new file mode 100644 index 0000000000..44afb2f600 --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/glyphs-objectstroke.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/resources/glyphs-paintservers.svg b/layout/reftests/text-svgglyphs/resources/glyphs-paintservers.svg new file mode 100644 index 0000000000..7f5a95ac09 --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/glyphs-paintservers.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/resources/glyphs-transforms.svg b/layout/reftests/text-svgglyphs/resources/glyphs-transforms.svg new file mode 100644 index 0000000000..ff3d9ffb76 --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/glyphs-transforms.svg @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/resources/nosvg.woff b/layout/reftests/text-svgglyphs/resources/nosvg.woff new file mode 100644 index 0000000000..ad53341871 Binary files /dev/null and b/layout/reftests/text-svgglyphs/resources/nosvg.woff differ diff --git a/layout/reftests/text-svgglyphs/resources/rubbish.txt b/layout/reftests/text-svgglyphs/resources/rubbish.txt new file mode 100644 index 0000000000..1ad1631812 --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/rubbish.txt @@ -0,0 +1 @@ +This is the text contained in the rubbish.ttf 'SVG ' table. It is obviously not XML, and should thus be ignored. diff --git a/layout/reftests/text-svgglyphs/resources/rubbish.woff b/layout/reftests/text-svgglyphs/resources/rubbish.woff new file mode 100644 index 0000000000..3c83e02a30 Binary files /dev/null and b/layout/reftests/text-svgglyphs/resources/rubbish.woff differ diff --git a/layout/reftests/text-svgglyphs/resources/svg-bitmap.ttf b/layout/reftests/text-svgglyphs/resources/svg-bitmap.ttf new file mode 100644 index 0000000000..cb0e3bd95d Binary files /dev/null and b/layout/reftests/text-svgglyphs/resources/svg-bitmap.ttf differ diff --git a/layout/reftests/text-svgglyphs/resources/svg-bitmap.ttx b/layout/reftests/text-svgglyphs/resources/svg-bitmap.ttx new file mode 100644 index 0000000000..cd3e9f4c5c --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/svg-bitmap.ttx @@ -0,0 +1,253 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SVG-Bitmap + + + Regular + + + SVG-Bitmap-Regular:v1.0 + + + SVG-Bitmap Regular + + + Version 1.0 + + + SVG-Bitmap-Regular + + + + + + + + + + + + + + + + + + + <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="glyph4" viewBox="0 0 1000 1000"><image x="0" y="-750" width="1000" height="1000" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAAXNSR0IArs4c6QAAAChJREFUSMftzUENAAAIBKDT/p01hQ83KEBNbnUEAoFAIBAIBALBk2ABo8QBP1gd7ycAAAAASUVORK5CYII="/></svg> + + + <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="glyph5" viewBox="0 0 1000 1000"><image x="0" y="-750" width="1000" height="1000" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAAXNSR0IArs4c6QAAAChJREFUSMftzUENAAAIBKDT/p01hQ83KEDN5FQnAoFAIBAIBAKB4EewtloCPhS2RvMAAAAASUVORK5CYII="/></svg> + + + <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="glyph6" viewBox="0 0 1000 1000"><image x="0" y="-750" width="1000" height="1000" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAAXNSR0IArs4c6QAAAChJREFUSMftzUEBAAAEBLCjf2dK8NsKrJLJp84zgUAgEAgEAoFAcGUBocYBP+pqhN4AAAAASUVORK5CYII="/></svg> + + + + diff --git a/layout/reftests/text-svgglyphs/resources/svg-glyph-extents.otf b/layout/reftests/text-svgglyphs/resources/svg-glyph-extents.otf new file mode 100644 index 0000000000..1083f397f6 Binary files /dev/null and b/layout/reftests/text-svgglyphs/resources/svg-glyph-extents.otf differ diff --git a/layout/reftests/text-svgglyphs/resources/svg-gz.ttf b/layout/reftests/text-svgglyphs/resources/svg-gz.ttf new file mode 100644 index 0000000000..3a9660224a Binary files /dev/null and b/layout/reftests/text-svgglyphs/resources/svg-gz.ttf differ diff --git a/layout/reftests/text-svgglyphs/resources/svg.woff b/layout/reftests/text-svgglyphs/resources/svg.woff new file mode 100644 index 0000000000..6deee1460d Binary files /dev/null and b/layout/reftests/text-svgglyphs/resources/svg.woff differ diff --git a/layout/reftests/text-svgglyphs/svg-glyph-basic-disabled.svg b/layout/reftests/text-svgglyphs/svg-glyph-basic-disabled.svg new file mode 100644 index 0000000000..493a9260b7 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-basic-disabled.svg @@ -0,0 +1,27 @@ + + + + + + L + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-basic-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-basic-ref.svg new file mode 100644 index 0000000000..205529a50e --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-basic-ref.svg @@ -0,0 +1,8 @@ + + + + + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-basic.svg b/layout/reftests/text-svgglyphs/svg-glyph-basic.svg new file mode 100644 index 0000000000..6eea7d986c --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-basic.svg @@ -0,0 +1,25 @@ + + + + + + L + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-cachedopacity-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-cachedopacity-ref.svg new file mode 100644 index 0000000000..944ad2efc6 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-cachedopacity-ref.svg @@ -0,0 +1,6 @@ + + + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-cachedopacity.svg b/layout/reftests/text-svgglyphs/svg-glyph-cachedopacity.svg new file mode 100644 index 0000000000..60b11344c8 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-cachedopacity.svg @@ -0,0 +1,20 @@ + + + + + Y + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-compressed-ref.html b/layout/reftests/text-svgglyphs/svg-glyph-compressed-ref.html new file mode 100644 index 0000000000..3325c05f22 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-compressed-ref.html @@ -0,0 +1,13 @@ + +Test for compressed SVG glyphs + +
abcdefg
+
LMNOPQR
diff --git a/layout/reftests/text-svgglyphs/svg-glyph-compressed.html b/layout/reftests/text-svgglyphs/svg-glyph-compressed.html new file mode 100644 index 0000000000..0c51a54b12 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-compressed.html @@ -0,0 +1,13 @@ + +Test for compressed SVG glyphs + +
abcdefg
+
LMNOPQR
diff --git a/layout/reftests/text-svgglyphs/svg-glyph-direct-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-direct-ref.svg new file mode 100644 index 0000000000..67a5fb8d23 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-direct-ref.svg @@ -0,0 +1,27 @@ + + + Reference for SVG glyphs being painted when painting properties are simple + + + + + + + + + L + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-direct.svg b/layout/reftests/text-svgglyphs/svg-glyph-direct.svg new file mode 100644 index 0000000000..c1e38a2cee --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-direct.svg @@ -0,0 +1,19 @@ + + + Test for SVG glyphs being painted when painting properties are simple + + + + L + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-extents-ref.html b/layout/reftests/text-svgglyphs/svg-glyph-extents-ref.html new file mode 100644 index 0000000000..bd9847928b --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-extents-ref.html @@ -0,0 +1,27 @@ + + + + + + + +
A
+
B
+
C
+
D
+ + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-extents.html b/layout/reftests/text-svgglyphs/svg-glyph-extents.html new file mode 100644 index 0000000000..6d7060aada --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-extents.html @@ -0,0 +1,50 @@ + + + + + + + + +
A
+
B
+
C
+
D
+ + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-html-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-html-ref.svg new file mode 100644 index 0000000000..6360240ff8 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-html-ref.svg @@ -0,0 +1,11 @@ + + Reference for SVG glyphs being used in HTML content + + b + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-html.html b/layout/reftests/text-svgglyphs/svg-glyph-html.html new file mode 100644 index 0000000000..5d4298f6df --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-html.html @@ -0,0 +1,12 @@ + +Test for SVG glyphs being used in HTML content + +
b
diff --git a/layout/reftests/text-svgglyphs/svg-glyph-invalid-ids-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-invalid-ids-ref.svg new file mode 100644 index 0000000000..8666756e4e --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-invalid-ids-ref.svg @@ -0,0 +1,6 @@ + + + + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-invalid-ids.svg b/layout/reftests/text-svgglyphs/svg-glyph-invalid-ids.svg new file mode 100644 index 0000000000..25813f2972 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-invalid-ids.svg @@ -0,0 +1,22 @@ + + + + + M + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-invalid-ref.html b/layout/reftests/text-svgglyphs/svg-glyph-invalid-ref.html new file mode 100644 index 0000000000..632e8f2ca8 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-invalid-ref.html @@ -0,0 +1,18 @@ + + + Reference for test that invalid XML in the 'SVG ' table is rejected + + + + LML︁ + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-invalid.html b/layout/reftests/text-svgglyphs/svg-glyph-invalid.html new file mode 100644 index 0000000000..3c785d02f7 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-invalid.html @@ -0,0 +1,23 @@ + + + Test that invalid XML in the 'SVG ' table is rejected + + + + + LML︁ + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-mask-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-mask-ref.svg new file mode 100644 index 0000000000..4f3509c0dc --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-mask-ref.svg @@ -0,0 +1,15 @@ + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-mask.svg b/layout/reftests/text-svgglyphs/svg-glyph-mask.svg new file mode 100644 index 0000000000..afda2f0908 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-mask.svg @@ -0,0 +1,12 @@ + + + + L + + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-objectfill-solid-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-objectfill-solid-ref.svg new file mode 100644 index 0000000000..dbaf7f5e15 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-objectfill-solid-ref.svg @@ -0,0 +1,4 @@ + + + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-objectfill-solid.svg b/layout/reftests/text-svgglyphs/svg-glyph-objectfill-solid.svg new file mode 100644 index 0000000000..72b57b30ba --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-objectfill-solid.svg @@ -0,0 +1,27 @@ + + + + + + + N + + + O + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-objectgradient-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-objectgradient-ref.svg new file mode 100644 index 0000000000..91ebb683da --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-objectgradient-ref.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-objectgradient-zoom-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-objectgradient-zoom-ref.svg new file mode 100644 index 0000000000..95f3d1bb70 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-objectgradient-zoom-ref.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-objectgradient-zoom.svg b/layout/reftests/text-svgglyphs/svg-glyph-objectgradient-zoom.svg new file mode 100644 index 0000000000..cebc4fb04c --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-objectgradient-zoom.svg @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + N + O + P + Q + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-objectgradient.svg b/layout/reftests/text-svgglyphs/svg-glyph-objectgradient.svg new file mode 100644 index 0000000000..97f10bda4d --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-objectgradient.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + N + O + P + Q + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-objectopacity-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-objectopacity-ref.svg new file mode 100644 index 0000000000..8dfb53aced --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-objectopacity-ref.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-objectopacity.svg b/layout/reftests/text-svgglyphs/svg-glyph-objectopacity.svg new file mode 100644 index 0000000000..c323640d47 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-objectopacity.svg @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + R + S + T + U + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-objectopacity2-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-objectopacity2-ref.svg new file mode 100644 index 0000000000..6a261afdbd --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-objectopacity2-ref.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-objectopacity2.svg b/layout/reftests/text-svgglyphs/svg-glyph-objectopacity2.svg new file mode 100644 index 0000000000..40e4fadf00 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-objectopacity2.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + R + S + T + U + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-objectpattern-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-objectpattern-ref.svg new file mode 100644 index 0000000000..e12e60d1b2 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-objectpattern-ref.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-objectpattern.svg b/layout/reftests/text-svgglyphs/svg-glyph-objectpattern.svg new file mode 100644 index 0000000000..475165cd40 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-objectpattern.svg @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + N + O + P + Q + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-objectstroke-solid-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-objectstroke-solid-ref.svg new file mode 100644 index 0000000000..797357537c --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-objectstroke-solid-ref.svg @@ -0,0 +1,6 @@ + + + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-objectstroke-solid.svg b/layout/reftests/text-svgglyphs/svg-glyph-objectstroke-solid.svg new file mode 100644 index 0000000000..8e1088df73 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-objectstroke-solid.svg @@ -0,0 +1,27 @@ + + + + + + + P + + + Q + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-objectvalue-150-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-objectvalue-150-ref.svg new file mode 100644 index 0000000000..561b294a93 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-objectvalue-150-ref.svg @@ -0,0 +1,13 @@ + + + + + + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-objectvalue-150.svg b/layout/reftests/text-svgglyphs/svg-glyph-objectvalue-150.svg new file mode 100644 index 0000000000..4b687aa178 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-objectvalue-150.svg @@ -0,0 +1,21 @@ + + + a + b + c + d + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-objectvalue-75-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-objectvalue-75-ref.svg new file mode 100644 index 0000000000..c47b309af6 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-objectvalue-75-ref.svg @@ -0,0 +1,13 @@ + + + + + + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-objectvalue-75.svg b/layout/reftests/text-svgglyphs/svg-glyph-objectvalue-75.svg new file mode 100644 index 0000000000..eaa9d37440 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-objectvalue-75.svg @@ -0,0 +1,21 @@ + + + a + b + c + d + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-objectvalue-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-objectvalue-ref.svg new file mode 100644 index 0000000000..73e006f353 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-objectvalue-ref.svg @@ -0,0 +1,13 @@ + + + + + + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-objectvalue.svg b/layout/reftests/text-svgglyphs/svg-glyph-objectvalue.svg new file mode 100644 index 0000000000..1a94b43554 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-objectvalue.svg @@ -0,0 +1,21 @@ + + + a + b + c + d + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-paint-server-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-paint-server-ref.svg new file mode 100644 index 0000000000..dde80a92fa --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-paint-server-ref.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-paint-server.svg b/layout/reftests/text-svgglyphs/svg-glyph-paint-server.svg new file mode 100644 index 0000000000..4e3bdd6772 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-paint-server.svg @@ -0,0 +1,21 @@ + + + + + e + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-paintnone-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-paintnone-ref.svg new file mode 100644 index 0000000000..cde840eb4e --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-paintnone-ref.svg @@ -0,0 +1,17 @@ + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-paintnone.svg b/layout/reftests/text-svgglyphs/svg-glyph-paintnone.svg new file mode 100644 index 0000000000..7b8d01d87c --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-paintnone.svg @@ -0,0 +1,25 @@ + + + + W + W + X + X + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-positioning-disabled.svg b/layout/reftests/text-svgglyphs/svg-glyph-positioning-disabled.svg new file mode 100644 index 0000000000..69418fde8c --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-positioning-disabled.svg @@ -0,0 +1,25 @@ + + + + + LLL + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-positioning-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-positioning-ref.svg new file mode 100644 index 0000000000..10e8ff1161 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-positioning-ref.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-positioning.svg b/layout/reftests/text-svgglyphs/svg-glyph-positioning.svg new file mode 100644 index 0000000000..a16056a244 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-positioning.svg @@ -0,0 +1,23 @@ + + + + + LLL + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-transform-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-transform-ref.svg new file mode 100644 index 0000000000..759e06ae42 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-transform-ref.svg @@ -0,0 +1,48 @@ + + + + + g + + + g + + + g + + + + g + + + g + + + g + + + + g + + + + q + + + q + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-transform.svg b/layout/reftests/text-svgglyphs/svg-glyph-transform.svg new file mode 100644 index 0000000000..933dea3725 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-transform.svg @@ -0,0 +1,48 @@ + + + + + h + + + i + + + j + + + + k + + + l + + + m + + + + n + + + + o + + + p + + diff --git a/layout/reftests/text-svgglyphs/svg-in-ot-bitmap-1-ref.html b/layout/reftests/text-svgglyphs/svg-in-ot-bitmap-1-ref.html new file mode 100644 index 0000000000..c93fc86c94 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-in-ot-bitmap-1-ref.html @@ -0,0 +1,30 @@ + + + + + SVG-in-OT bitmap issue + + + +
+ x x +
+ + diff --git a/layout/reftests/text-svgglyphs/svg-in-ot-bitmap-1.html b/layout/reftests/text-svgglyphs/svg-in-ot-bitmap-1.html new file mode 100644 index 0000000000..6f8055ebd1 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-in-ot-bitmap-1.html @@ -0,0 +1,33 @@ + + + + + SVG-in-OT bitmap issue + + + + + + x ABC x + + + -- cgit v1.2.3