gecko-dev/dom/svg
Boris Chiou 86adb0bd63 Bug 1823463 - Render clip-path:shape(). r=emilio
Update clip-path-shape-003.html and clip-path-shape-004.html because
1. Per SVG2 spec, we don't accept comma among commands, so I remove them.
2. Basically, these two tests want to test the result of `shape()`
   should be identical to the result of `path()`. However, I noticed the
   original tests which put a `clip-path:path()` with `position:absolutely`
   may have a fuzzy result if the path has some curves there. This may be
   caused by anti-alias together with absoultely positioned element
   (note: perhaps there are some floating point calculation in layout for
   this, so the final rendering coordinates may have some fractions).
   Therefore, I drop the absolutely positioned element, and just test
   that if the result of `shape()` is identical to the result of `path()`.

Also, add two more tests for different reference-boxes together with
the usage of `shape()` (to make sure we resolve percentage values properly).

Differential Revision: https://phabricator.services.mozilla.com/D202884
2024-03-18 21:20:29 +00:00
..
crashtests
test Bug 1610093 - Fix getScreenCTM when parent is transformed. r=emilio 2024-03-18 11:17:51 +00:00
DOMSVGAngle.cpp
DOMSVGAngle.h
DOMSVGAnimatedAngle.cpp
DOMSVGAnimatedAngle.h
DOMSVGAnimatedBoolean.cpp
DOMSVGAnimatedBoolean.h
DOMSVGAnimatedEnumeration.cpp
DOMSVGAnimatedEnumeration.h
DOMSVGAnimatedInteger.cpp
DOMSVGAnimatedInteger.h
DOMSVGAnimatedLength.cpp
DOMSVGAnimatedLength.h
DOMSVGAnimatedLengthList.cpp
DOMSVGAnimatedLengthList.h
DOMSVGAnimatedNumber.cpp
DOMSVGAnimatedNumber.h
DOMSVGAnimatedNumberList.cpp
DOMSVGAnimatedNumberList.h
DOMSVGAnimatedString.cpp
DOMSVGAnimatedString.h
DOMSVGAnimatedTransformList.cpp
DOMSVGAnimatedTransformList.h
DOMSVGLength.cpp
DOMSVGLength.h
DOMSVGLengthList.cpp
DOMSVGLengthList.h
DOMSVGNumber.cpp
DOMSVGNumber.h
DOMSVGNumberList.cpp
DOMSVGNumberList.h
DOMSVGPathSeg.cpp
DOMSVGPathSeg.h
DOMSVGPathSegList.cpp
DOMSVGPathSegList.h
DOMSVGPoint.cpp
DOMSVGPoint.h
DOMSVGPointList.cpp
DOMSVGPointList.h
DOMSVGStringList.cpp
DOMSVGStringList.h
DOMSVGTransform.cpp
DOMSVGTransform.h
DOMSVGTransformList.cpp
DOMSVGTransformList.h
moz.build
SVGAElement.cpp
SVGAElement.h
SVGAnimatedBoolean.cpp
SVGAnimatedBoolean.h
SVGAnimatedClass.cpp
SVGAnimatedClass.h
SVGAnimatedClassOrString.cpp
SVGAnimatedClassOrString.h
SVGAnimatedEnumeration.cpp
SVGAnimatedEnumeration.h
SVGAnimatedInteger.cpp
SVGAnimatedInteger.h
SVGAnimatedIntegerPair.cpp
SVGAnimatedIntegerPair.h
SVGAnimatedLength.cpp
SVGAnimatedLength.h
SVGAnimatedLengthList.cpp
SVGAnimatedLengthList.h
SVGAnimatedNumber.cpp
SVGAnimatedNumber.h
SVGAnimatedNumberList.cpp
SVGAnimatedNumberList.h
SVGAnimatedNumberPair.cpp
SVGAnimatedNumberPair.h
SVGAnimatedOrient.cpp
SVGAnimatedOrient.h
SVGAnimatedPathSegList.cpp
SVGAnimatedPathSegList.h
SVGAnimatedPointList.cpp
SVGAnimatedPointList.h
SVGAnimatedPreserveAspectRatio.cpp
SVGAnimatedPreserveAspectRatio.h
SVGAnimatedRect.cpp
SVGAnimatedRect.h
SVGAnimatedString.cpp
SVGAnimatedString.h
SVGAnimatedTransformList.cpp
SVGAnimatedTransformList.h
SVGAnimatedViewBox.cpp
SVGAnimatedViewBox.h
SVGAnimateElement.cpp
SVGAnimateElement.h
SVGAnimateMotionElement.cpp
SVGAnimateMotionElement.h
SVGAnimateTransformElement.cpp
SVGAnimateTransformElement.h
SVGAnimationElement.cpp
SVGAnimationElement.h
SVGAttrTearoffTable.h
SVGAttrValueWrapper.cpp
SVGAttrValueWrapper.h
SVGCircleElement.cpp
SVGCircleElement.h
SVGClipPathElement.cpp
SVGClipPathElement.h
SVGComponentTransferFunctionElement.h
SVGContentUtils.cpp Bug 1610093 - Fix getScreenCTM when parent is transformed. r=emilio 2024-03-18 11:17:51 +00:00
SVGContentUtils.h
SVGDataParser.cpp
SVGDataParser.h
SVGDefsElement.cpp
SVGDefsElement.h
SVGDescElement.cpp
SVGDescElement.h
SVGDocument.cpp
SVGDocument.h
SVGElement.cpp
SVGElement.h
SVGElementFactory.cpp
SVGElementFactory.h
SVGEllipseElement.cpp
SVGEllipseElement.h
SVGFEBlendElement.cpp
SVGFEBlendElement.h
SVGFEColorMatrixElement.cpp
SVGFEColorMatrixElement.h
SVGFEComponentTransferElement.cpp
SVGFEComponentTransferElement.h
SVGFECompositeElement.cpp
SVGFECompositeElement.h
SVGFEConvolveMatrixElement.cpp
SVGFEConvolveMatrixElement.h
SVGFEDiffuseLightingElement.cpp
SVGFEDiffuseLightingElement.h
SVGFEDisplacementMapElement.cpp
SVGFEDisplacementMapElement.h
SVGFEDistantLightElement.cpp
SVGFEDistantLightElement.h
SVGFEDropShadowElement.cpp
SVGFEDropShadowElement.h
SVGFEFloodElement.cpp
SVGFEFloodElement.h
SVGFEGaussianBlurElement.cpp
SVGFEGaussianBlurElement.h
SVGFEImageElement.cpp
SVGFEImageElement.h
SVGFEMergeElement.cpp
SVGFEMergeElement.h
SVGFEMergeNodeElement.cpp
SVGFEMergeNodeElement.h
SVGFEMorphologyElement.cpp
SVGFEMorphologyElement.h
SVGFEOffsetElement.cpp
SVGFEOffsetElement.h
SVGFEPointLightElement.cpp
SVGFEPointLightElement.h
SVGFESpecularLightingElement.cpp
SVGFESpecularLightingElement.h
SVGFESpotLightElement.cpp
SVGFESpotLightElement.h
SVGFETileElement.cpp
SVGFETileElement.h
SVGFETurbulenceElement.cpp
SVGFETurbulenceElement.h
SVGFilterElement.cpp
SVGFilterElement.h
SVGFilters.cpp
SVGFilters.h
SVGForeignObjectElement.cpp
SVGForeignObjectElement.h
SVGFragmentIdentifier.cpp
SVGFragmentIdentifier.h
SVGGElement.cpp
SVGGElement.h
SVGGeometryElement.cpp
SVGGeometryElement.h
SVGGeometryProperty.cpp
SVGGeometryProperty.h
SVGGradientElement.cpp
SVGGradientElement.h
SVGGraphicsElement.cpp
SVGGraphicsElement.h
SVGImageElement.cpp
SVGImageElement.h
SVGIntegerPairSMILType.cpp
SVGIntegerPairSMILType.h
SVGLength.cpp
SVGLength.h
SVGLengthList.cpp
SVGLengthList.h
SVGLengthListSMILType.cpp
SVGLengthListSMILType.h
SVGLengthSMILType.cpp
SVGLengthSMILType.h
SVGLineElement.cpp
SVGLineElement.h
SVGMarkerElement.cpp
SVGMarkerElement.h
SVGMaskElement.cpp
SVGMaskElement.h
SVGMatrix.cpp
SVGMatrix.h
SVGMetadataElement.cpp
SVGMetadataElement.h
SVGMotionSMILAnimationFunction.cpp
SVGMotionSMILAnimationFunction.h
SVGMotionSMILAttr.cpp
SVGMotionSMILAttr.h
SVGMotionSMILPathUtils.cpp
SVGMotionSMILPathUtils.h
SVGMotionSMILType.cpp
SVGMotionSMILType.h
SVGMPathElement.cpp
SVGMPathElement.h
SVGNumberList.cpp
SVGNumberList.h
SVGNumberListSMILType.cpp
SVGNumberListSMILType.h
SVGNumberPairSMILType.cpp
SVGNumberPairSMILType.h
SVGOrientSMILType.cpp
SVGOrientSMILType.h
SVGPathData.cpp Bug 1823463 - Render clip-path:shape(). r=emilio 2024-03-18 21:20:29 +00:00
SVGPathData.h Bug 1823463 - Render clip-path:shape(). r=emilio 2024-03-18 21:20:29 +00:00
SVGPathDataParser.cpp
SVGPathDataParser.h
SVGPathElement.cpp Bug 1823463 - Make PathCommand as the specialization of GenericShapeCommand. r=emilio 2024-03-18 21:20:29 +00:00
SVGPathElement.h
SVGPathSegListSMILType.cpp
SVGPathSegListSMILType.h
SVGPathSegUtils.cpp Bug 1823463 - Make PathCommand as the specialization of GenericShapeCommand. r=emilio 2024-03-18 21:20:29 +00:00
SVGPathSegUtils.h Bug 1823463 - Make PathCommand as the specialization of GenericShapeCommand. r=emilio 2024-03-18 21:20:29 +00:00
SVGPatternElement.cpp
SVGPatternElement.h
SVGPoint.h
SVGPointList.cpp
SVGPointList.h
SVGPointListSMILType.cpp
SVGPointListSMILType.h
SVGPolyElement.cpp
SVGPolyElement.h
SVGPolygonElement.cpp
SVGPolygonElement.h
SVGPolylineElement.cpp
SVGPolylineElement.h
SVGPreserveAspectRatio.cpp
SVGPreserveAspectRatio.h
SVGRect.cpp
SVGRect.h
SVGRectElement.cpp
SVGRectElement.h
SVGScriptElement.cpp
SVGScriptElement.h
SVGSetElement.cpp
SVGSetElement.h
SVGStopElement.cpp
SVGStopElement.h
SVGStringList.cpp
SVGStringList.h
SVGStyleElement.cpp
SVGStyleElement.h
SVGSVGElement.cpp
SVGSVGElement.h
SVGSwitchElement.cpp
SVGSwitchElement.h
SVGSymbolElement.cpp
SVGSymbolElement.h
SVGTagList.h
SVGTests.cpp
SVGTests.h
SVGTextContentElement.cpp
SVGTextContentElement.h
SVGTextElement.cpp
SVGTextElement.h
SVGTextPathElement.cpp
SVGTextPathElement.h
SVGTextPositioningElement.cpp
SVGTextPositioningElement.h
SVGTitleElement.cpp
SVGTitleElement.h
SVGTransform.cpp
SVGTransform.h
SVGTransformableElement.cpp
SVGTransformableElement.h
SVGTransformList.cpp
SVGTransformList.h
SVGTransformListParser.cpp
SVGTransformListParser.h
SVGTransformListSMILType.cpp
SVGTransformListSMILType.h
SVGTSpanElement.cpp
SVGTSpanElement.h
SVGUseElement.cpp
SVGUseElement.h
SVGViewBoxSMILType.cpp
SVGViewBoxSMILType.h
SVGViewElement.cpp
SVGViewElement.h
SVGViewportElement.cpp
SVGViewportElement.h