haikuwebkit/LayoutTests/svg/dom
Myles C. Maxfield 2e35f7f8a9 [Cocoa] Stop treating the system font as a non-variable font
https://bugs.webkit.org/show_bug.cgi?id=228176

Reviewed by Sam Weinig.

Source/WebCore:

Modern versions of macOS and iOS can treat the system font as a variable font,
and be able to apply weights like "342" instead of just "300" or "400".

Tests: fast/text/variable-system-font-2.html
       fast/text/variable-system-font.html

* platform/graphics/cocoa/FontCacheCoreText.cpp:
(WebCore::preparePlatformFont):

Source/WTF:

* wtf/PlatformUse.h:

LayoutTests:

Update tests.

* fast/text/resources/Ahem-trak.ttf: Added. This is a font which has a trak table.
* fast/text/trak-optimizeLegibility-expected-mismatch.html: Added.
* fast/text/trak-optimizeLegibility-expected.txt: Removed.
* fast/text/trak-optimizeLegibility.html:
* fast/text/variable-system-font-2-expected-mismatch.html: Added.
* fast/text/variable-system-font-2.html: Added.
* fast/text/variable-system-font-expected-mismatch.html: Added.
* fast/text/variable-system-font.html: Added.
* svg/dom/altGlyph-dom-expected.txt:
* svg/dom/resources/altGlyph-dom.js:

Canonical link: https://commits.webkit.org/240715@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@281291 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-08-20 03:21:05 +00:00
..
SVGRectElement
SVGScriptElement
SVGStyleElement
resources [Cocoa] Stop treating the system font as a non-variable font 2021-08-20 03:21:05 +00:00
SVGAngle-expected.txt
SVGAngle.html
SVGAnimatedAngle-expected.txt
SVGAnimatedAngle.html
SVGAnimatedBoolean-expected.txt
SVGAnimatedBoolean.html
SVGAnimatedEnumeration-SVGClipPathElement-expected.txt
SVGAnimatedEnumeration-SVGClipPathElement.html
SVGAnimatedEnumeration-SVGComponentTransferFunctionElement-expected.txt
SVGAnimatedEnumeration-SVGComponentTransferFunctionElement.html
SVGAnimatedEnumeration-SVGFEBlendElement-expected.txt
SVGAnimatedEnumeration-SVGFEBlendElement.html
SVGAnimatedEnumeration-SVGFEColorMatrixElement-expected.txt
SVGAnimatedEnumeration-SVGFEColorMatrixElement.html
SVGAnimatedEnumeration-SVGFECompositeElement-expected.txt
SVGAnimatedEnumeration-SVGFECompositeElement.html
SVGAnimatedEnumeration-SVGFEConvolveMatrixElement-expected.txt
SVGAnimatedEnumeration-SVGFEConvolveMatrixElement.html
SVGAnimatedEnumeration-SVGFEDisplacementMapElement-expected.txt
SVGAnimatedEnumeration-SVGFEDisplacementMapElement.html
SVGAnimatedEnumeration-SVGFEMorphologyElement-expected.txt
SVGAnimatedEnumeration-SVGFEMorphologyElement.html
SVGAnimatedEnumeration-SVGFETurbulenceElement-expected.txt
SVGAnimatedEnumeration-SVGFETurbulenceElement.html
SVGAnimatedEnumeration-SVGFilterElement-expected.txt
SVGAnimatedEnumeration-SVGFilterElement.html
SVGAnimatedEnumeration-SVGGradientElement-expected.txt
SVGAnimatedEnumeration-SVGGradientElement.html
SVGAnimatedEnumeration-SVGMarkerElement-expected.txt
SVGAnimatedEnumeration-SVGMarkerElement.html
SVGAnimatedEnumeration-SVGMaskElement-expected.txt
SVGAnimatedEnumeration-SVGMaskElement.html
SVGAnimatedEnumeration-SVGPatternElement-expected.txt
SVGAnimatedEnumeration-SVGPatternElement.html
SVGAnimatedEnumeration-SVGTextContentElement-expected.txt
SVGAnimatedEnumeration-SVGTextContentElement.html
SVGAnimatedEnumeration-SVGTextPathElement-expected.txt
SVGAnimatedEnumeration-SVGTextPathElement.html
SVGAnimatedEnumeration-case-sensitive-expected.txt
SVGAnimatedEnumeration-case-sensitive.html
SVGAnimatedEnumeration-expected.txt
SVGAnimatedEnumeration.html
SVGAnimatedInteger-expected.txt
SVGAnimatedInteger.html
SVGAnimatedLength-expected.txt
SVGAnimatedLength.html
SVGAnimatedLengthList-expected.txt
SVGAnimatedLengthList.html
SVGAnimatedListPropertyTearOff-crash-2-expected.txt
SVGAnimatedListPropertyTearOff-crash-2.html
SVGAnimatedListPropertyTearOff-crash-expected.txt
SVGAnimatedListPropertyTearOff-crash.html
SVGAnimatedListPropertyTearOff-leak-expected.txt
SVGAnimatedListPropertyTearOff-leak.html
SVGAnimatedNumber-expected.txt
SVGAnimatedNumber.html
SVGAnimatedNumberList-expected.txt
SVGAnimatedNumberList.html
SVGAnimatedPreserveAspectRatio-expected.txt
SVGAnimatedPreserveAspectRatio.html
SVGAnimatedRect-expected.txt
SVGAnimatedRect.html
SVGDocument-createEvent-expected.txt
SVGDocument-createEvent.html
SVGElement-xmlbase-expected.txt
SVGElement-xmlbase.html
SVGException-obsolete-expected.txt
SVGException-obsolete.html
SVGFEFloodElement-filter-standard-attributes-expected.svg
SVGFEFloodElement-filter-standard-attributes.svg
SVGGeometry-circle-expected.txt
SVGGeometry-circle.xhtml
SVGGeometry-ellipse-expected.txt
SVGGeometry-ellipse.xhtml
SVGGeometry-isPointInFill-expected.txt
SVGGeometry-isPointInFill.xhtml
SVGGeometry-isPointInStroke-expected.txt
SVGGeometry-isPointInStroke.xhtml
SVGGeometry-line-expected.txt
SVGGeometry-line.xhtml
SVGGeometry-polygon-expected.txt
SVGGeometry-polygon.xhtml
SVGGeometry-polyline-expected.txt
SVGGeometry-polyline.xhtml
SVGGeometry-rect-expected.txt
SVGGeometry-rect.xhtml
SVGLength-expected.txt
SVGLength-px-expected.txt
SVGLength-px-with-context-expected.txt
SVGLength-px-with-context.html
SVGLength-px.html
SVGLength.html
SVGLengthList-appendItem-expected.txt
SVGLengthList-appendItem.xhtml
SVGLengthList-basics-expected.txt
SVGLengthList-basics.xhtml
SVGLengthList-getItem-expected.txt
SVGLengthList-getItem.xhtml
SVGLengthList-initialize-expected.txt
SVGLengthList-initialize.xhtml
SVGLengthList-insertItemBefore-expected.txt
SVGLengthList-insertItemBefore.xhtml
SVGLengthList-length-indexed-access-expected.txt
SVGLengthList-length-indexed-access.xhtml
SVGLengthList-replaceItem-expected.txt
SVGLengthList-replaceItem.xhtml
SVGLengthList-xml-dom-modifications-expected.txt
SVGLengthList-xml-dom-modifications.xhtml
SVGLocatable-getCTM-svg-root-expected.txt
SVGLocatable-getCTM-svg-root.html
SVGMatrix-expected.txt
SVGMatrix-interface-expected.txt
SVGMatrix-interface.xhtml
SVGMatrix.html
SVGNumber-expected.txt
SVGNumber.html
SVGNumberList-basics-expected.txt
SVGNumberList-basics.xhtml
SVGPathSegList-appendItem-expected.txt
SVGPathSegList-appendItem.xhtml
SVGPathSegList-clear-and-initialize-expected.txt
SVGPathSegList-clear-and-initialize.xhtml
SVGPathSegList-cloning.html
SVGPathSegList-crash-expected.txt
SVGPathSegList-crash.html
SVGPathSegList-insert-from-animating-animPathSegList-expected.txt
SVGPathSegList-insert-from-animating-animPathSegList.svg
SVGPathSegList-insertItemBefore-expected.txt
SVGPathSegList-insertItemBefore.xhtml
SVGPathSegList-length-indexed-access-expected.txt
SVGPathSegList-length-indexed-access.xhtml
SVGPathSegList-removeItem-expected.txt
SVGPathSegList-removeItem.xhtml
SVGPathSegList-replaceItem-expected.txt
SVGPathSegList-replaceItem.xhtml
SVGPathSegList-segment-modification-expected.txt
SVGPathSegList-segment-modification.svg
SVGPathSegList-xml-dom-synchronization-expected.txt
SVGPathSegList-xml-dom-synchronization.xhtml
SVGPathSegList-xml-dom-synchronization2-expected.txt
SVGPathSegList-xml-dom-synchronization2.xhtml
SVGPoint-expected.txt
SVGPoint.html
SVGPointList-basics-expected.txt
SVGPointList-basics.xhtml
SVGPolygonElement-baseVal-list-removal-crash-expected.txt
SVGPolygonElement-baseVal-list-removal-crash.html
SVGPreserveAspectRatio-expected.txt
SVGPreserveAspectRatio.html
SVGRect-expected.txt
SVGRect.html
SVGSVGElement-getElementById-expected.txt
SVGSVGElement-getElementById.html
SVGStringList-basics-expected.txt
SVGStringList-basics.xhtml
SVGStringList-expected.txt
SVGStringList.html
SVGStyledElement-pendingResource-crash-expected.txt
SVGStyledElement-pendingResource-crash.html
SVGTests-expected.txt
SVGTests.html
SVGTransform-expected.txt
SVGTransform.html
SVGTransformList-anim-read-only-expected.txt
SVGTransformList-anim-read-only.html
SVGTransformList-basics-expected.txt
SVGTransformList-basics.xhtml
SVGTransformList-empty-list-consolidation-expected.txt
SVGTransformList-empty-list-consolidation.html
SVGTransformList-expected.txt
SVGTransformList.html
SVGViewSpec-defaults-expected.txt
SVGViewSpec-defaults.html
SVGViewSpec-expected.txt
SVGViewSpec-invalid-ref-crash-expected.txt
SVGViewSpec-invalid-ref-crash.html
SVGViewSpec-multiple-views-expected.txt
SVGViewSpec-multiple-views.html
SVGViewSpec.html
altGlyph-dom-expected.txt [Cocoa] Stop treating the system font as a non-variable font 2021-08-20 03:21:05 +00:00
altGlyph-dom.xhtml
animated-tearoff-equality-expected.txt
animated-tearoff-equality.xhtml
animated-tearoff-lifespan-expected.txt
animated-tearoff-lifespan.xhtml
animated-tearoff-list-remove-target-expected.txt
animated-tearoff-list-remove-target.html
baseVal-animVal-crash-expected.txt
baseVal-animVal-crash.html
baseVal-animVal-list-crash-expected.txt
baseVal-animVal-list-crash.html
complex-svgView-specification-expected.html
complex-svgView-specification.html
css-animate-input-foucs-crash-expected.txt
css-animate-input-foucs-crash.html
css-transforms-expected.txt
css-transforms.xhtml
element-removed-while-inserting-parent-crash-expected.txt
element-removed-while-inserting-parent-crash.html
feFlood-no-in1-expected.txt
feFlood-no-in1.html
font-face-elements-expected.txt
font-face-elements.html
frame-related-api-during-load-expected.txt
frame-related-api-during-load.html
fuzz-path-parser-expected.txt
fuzz-path-parser.html
getElementsByTagName-localName-matching-expected.txt
getElementsByTagName-localName-matching.html
id-reflect-expected.txt
id-reflect.html
length-list-parser-expected.txt
length-list-parser.html
mutate-symbol-subtree-referenced-by-use-during-execCommand-expected.txt
mutate-symbol-subtree-referenced-by-use-during-execCommand.html
operatorAttribute-expected.txt
operatorAttribute.html
parent-view-layout-crash-expected.txt
parent-view-layout-crash.html
path-marker-removed-crash-expected.txt
path-marker-removed-crash.svg
path-parser-expected.txt
path-parser.html
path-pointAtLength-expected.txt
path-pointAtLength.html
path-segments-expected.txt
path-segments.html
path-totalLength-expected.txt
path-totalLength.html
points-parser-expected.txt
points-parser.html
preserve-aspect-ratio-parser-expected.txt
preserve-aspect-ratio-parser.html
replaceChild-document-crash-expected.txt
replaceChild-document-crash.html
reuse-pathseg-after-changing-d-expected.txt
reuse-pathseg-after-changing-d.html
set-currentScale-nonfinite-expected.txt
set-currentScale-nonfinite.html
smil-methods-expected.txt
smil-methods.svg
string-list-parser-expected.txt
string-list-parser.html
style-reflect-expected.txt
style-reflect.html
stylesheet-candidate-node-crash-main-expected.txt
stylesheet-candidate-node-crash-main.html
svg-element-attribute-js-null-expected.txt
svg-element-attribute-js-null.xhtml
svg-inline-text-display-block-crash-expected.txt
svg-inline-text-display-block-crash.html
svg-list-properties-parser-leading-trailing-spaces-expected.txt
svg-list-properties-parser-leading-trailing-spaces.html
svg-properties-detach-change-expected.txt
svg-properties-detach-change.html
svg-root-lengths-expected.txt
svg-root-lengths.html
svg-use-infinite-loop-cloning-expected.txt
svg-use-infinite-loop-cloning.html
svg2-inheritance-expected.txt
svg2-inheritance.html
svglist-exception-on-out-bounds-error-expected.txt
svglist-exception-on-out-bounds-error.html
svglist-insertItemBefore-appends-expected.txt
svglist-insertItemBefore-appends.html
svgpath-getPathSegAtLength-expected.txt
svgpath-getPathSegAtLength.html
svgpath-out-of-bounds-getPathSeg-expected.txt
svgpath-out-of-bounds-getPathSeg.html
symbol-embeddedAnimation-expected.txt
symbol-embeddedAnimation.svg
tag-case-sensitive-svg-in-html-expected.txt
tag-case-sensitive-svg-in-html.html
text-rotate-live-expected.txt
text-rotate-live.html
transform-parser-expected.txt
transform-parser.html
update-svg-use-shadow-tree-with-execCommand-expected.txt
update-svg-use-shadow-tree-with-execCommand.html
use-style-recalc-script-execute-crash-expected.txt
use-style-recalc-script-execute-crash.html
use-transform-expected.txt
use-transform.svg
valueAsString-null-expected.txt
valueAsString-null.html
viewport-container-crash-expected.txt
viewport-container-crash.svg
viewspec-parser-1-expected.txt
viewspec-parser-1.html
viewspec-parser-2-expected.txt
viewspec-parser-2.html
viewspec-parser-3-expected.txt
viewspec-parser-3.html
viewspec-parser-4-expected.txt
viewspec-parser-4.html
viewspec-parser-5-expected.txt
viewspec-parser-5.html
viewspec-parser-6-expected.txt
viewspec-parser-6.html
viewspec-parser-7-expected.txt
viewspec-parser-7.html
vkern-element-crash-expected.txt
vkern-element-crash.html