WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
287629
[GTK][WPE] <lang-attribute-affects-rendering.html> fails
https://bugs.webkit.org/show_bug.cgi?id=287629
Summary
[GTK][WPE] <lang-attribute-affects-rendering.html> fails
Deleted User
Reported
2025-02-13 05:38:48 PST
https://github.com/web-platform-tests/wpt/blob/1a5b13545a/css/css-fonts/lang-attribute-affects-rendering.html
It only fails for GTK:
https://wpt.fyi/results/css?label=master&product=chrome%5Bexperimental%5D&product=edge%5Bexperimental%5D&product=firefox%5Bexperimental%5D&product=safari%5Bexperimental%5D&product=webkitgtk&aligned&q=%2Fcss%2Fcss-fonts%2Flang-attribute-affects-rendering.html
.
Attachments
Add attachment
proposed patch, testcase, etc.
Deleted User
Comment 1
2025-02-13 06:01:03 PST
Some analysis, read the test-case for context: -
https://searchfox.org/wubkat/rev/eb60a003e2487c2a8f34aaf8ce8f5d5af280ed55/Source/WebCore/platform/graphics/ComplexTextController.cpp#358
is called for "fi". - `m_font.fontDescription().computedLocale()` is "en" ("tr" for the -ref.html file). That's expected. - `FontCascade::fontForCombiningCharacterSequence` (
https://searchfox.org/wubkat/rev/eb60a003e2487c2a8f34aaf8ce8f5d5af280ed55/Source/WebCore/platform/graphics/FontCascade.h#208
) corresponds to different implementations:
https://searchfox.org/wubkat/search?q=fontForCombiningCharacterSequence&redirect=false
- Since the test passes for Safari, perhaps the implementation for Skia, which is used by GTK, is buggy:
https://searchfox.org/wubkat/rev/eb60a003e2487c2a8f34aaf8ce8f5d5af280ed55/Source/WebCore/platform/graphics/skia/FontCascadeSkia.cpp#132
Deleted User
Comment 2
2025-02-17 01:46:48 PST
Continued analysis:
https://searchfox.org/wubkat/rev/dd523ddb28deecac34400360788b2ba9cee771af/Source/WebCore/platform/graphics/ComplexTextController.cpp#462
is called. Safari and GTK use different implementations of that method. The test passes with Safari. Presumably, because of <
https://searchfox.org/wubkat/rev/dd523ddb28deecac34400360788b2ba9cee771af/Source/WebCore/platform/graphics/coretext/ComplexTextControllerCoreText.mm#200
>. The bug/missing functionality for GTK is presumably in the GTK-specific implementation: <
https://searchfox.org/wubkat/rev/dd523ddb28deecac34400360788b2ba9cee771af/Source/WebCore/platform/graphics/skia/ComplexTextControllerSkia.cpp#153
>.
Deleted User
Comment 3
2025-02-17 02:41:18 PST
`hb_language_t` (
https://harfbuzz.github.io/harfbuzz-hb-common.html#hb-language-t
) might need to be set.
Deleted User
Comment 4
2025-02-18 07:39:28 PST
Pull request:
https://github.com/WebKit/WebKit/pull/40761
EWS
Comment 5
2025-03-06 05:00:32 PST
Committed
291691@main
(c30953f1f00c): <
https://commits.webkit.org/291691@main
> Reviewed commits have been landed. Closing PR #40761 and removing active labels.
Radar WebKit Bug Importer
Comment 6
2025-03-06 05:01:17 PST
<
rdar://problem/146381919
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug