Closed Bug 2079292 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63342 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=278868

Categories

(Core :: SVG, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63342 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63342
Details from upstream follow.

Karl Dubost <karlcow@apple.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=278868

WebKit export from bug: [SVG2] Remove *Glyph* support

<pre>
[SVG2] Remove *Glyph* support

SVG 2 removed altGlyph, altGlyphDef, altGlyphItem and glyphRef, and
dropped SVG fonts with glyph and missing-glyph.
<a href="https://w3c.github.io/svgwg/svg2-draft/changes.html#text">https://w3c.github.io/svgwg/svg2-draft/changes.html#text</a>
<a href="https://w3c.github.io/svgwg/svg2-draft/changes.html#fonts">https://w3c.github.io/svgwg/svg2-draft/changes.html#fonts</a>

Their JavaScript interfaces were already removed in <a href="https://commits.webkit.org/255702@main">255702@main</a>. This
removes the six C++ classes behind them.

The only visible change is altGlyph. WebKit drew its text as a tspan.
Firefox and Chrome draw nothing. SVG 2 says an element inside text
that is not a text content child or an a element has display: none.
<a href="https://w3c.github.io/svgwg/svg2-draft/text.html#TextLayoutAlgorithm">https://w3c.github.io/svgwg/svg2-draft/text.html#TextLayoutAlgorithm</a>

The tag names stay in svgtags.in as SVGUnknownElement, as done for
animateColor in <a href="https://commits.webkit.org/276683@main">276683@main</a>. The HTML parser still needs them to fix
the case of altGlyph, altGlyphDef, altGlyphItem and glyphRef, and
missing-glyph is still a reserved custom element name.

SVG fonts keep working. The SVG to OpenType converter now finds glyph
and missing-glyph by tag name instead of by class, which selects the
same elements as before.

Tests about altGlyph itself are removed, and so is a glyphRef crash
test whose class no longer exists. Two text layout crash tests use
tspan instead of altGlyph, which ran the same renderer.

The new test is marked flaky on mac: EWS sometimes captures a blank
white snapshot, of the test or of its reference.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=278868">https://bugs.webkit.org/show_bug.cgi?id=278868</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/322845@main">https://commits.webkit.org/322845@main</a>
</pre>

Component: web-platform-tests → SVG
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 82 tests

Status Summary

Firefox

PASS: 1[GitHub] 2[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 59[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 60[Gecko-windows11-64-25h2-debug] 61[Gecko-windows11-64-25h2-opt] 62[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 20[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 21[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 23[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]

Chrome

PASS: 1

Safari

FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

  • /svg/text/reftests/transform-dynamic-change.html [wpt.fyi]: PASS [Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-opt], SKIP [Gecko-windows11-64-25h2-debug]
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.