[wpt-sync] Sync PR 63342 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=278868
Categories
(Core :: SVG, task, P4)
Tracking
()
| 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*supportSVG 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>
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=101431
| Assignee | ||
Comment 2•1 month ago
|
||
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
- /svg/text/reftests/text-bidi-controls-anchors-2.svg [wpt.fyi]:
FAIL[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],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /svg/text/reftests/text-complex-001.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-complex-002.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-inline-size-001.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-inline-size-002.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-inline-size-003.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-inline-size-005.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-inline-size-006.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-inline-size-007.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-inline-size-101.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-inline-size-201.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-multiline-001.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-multiline-002.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-multiline-003.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-shape-inside-001.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-shape-inside-002.svg [wpt.fyi]:
FAIL - /svg/text/reftests/textLength-list-x-spacingAndGlyphs.svg [wpt.fyi]:
FAIL - /svg/text/reftests/textpath-pathlength-css-display-none.tentative.svg [wpt.fyi]:
FAIL - /svg/text/reftests/textpath-pathlength-zero-offset-percentage.svg [wpt.fyi]:
FAIL - /svg/text/reftests/textpath-shape-001.svg [wpt.fyi]:
FAIL - /svg/text/reftests/textpath-side-001.svg [wpt.fyi]:
FAIL[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],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /svg/text/reftests/textpath-side-003.svg [wpt.fyi]:
FAIL[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-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt] - /svg/text/reftests/textpath-side-005.svg [wpt.fyi]:
FAIL - /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]
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]
Comment 4•1 month ago
|
||
| bugherder | ||
Description
•