Closed Bug 2095502 Opened 10 days ago Closed 8 days ago

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

Categories

(Core :: SVG, task, P4)

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Karl Dubost <k_dubost@apple.com> wrote:

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

WebKit export from bug: [<!---->SVG2]<!----> Support SVGSVGElement'<!---->s transform attribute

<pre>
WPT: add coverage for the transform attribute on the outermost svg element

Nothing covered the transform attribute on an outermost svg element
inline in an HTML document:

 &lt;svg width=&quot;200&quot; height=&quot;100&quot; transform=&quot;scale(0.5)&quot;&gt;
   &lt;rect width=&quot;200&quot; height=&quot;100&quot; fill=&quot;green&quot;/&gt;
 &lt;/svg&gt;

Firefox and Chrome shrink the element's box to 100x50, the same as
transform: scale(0.5) in CSS. Before <a href="https://commits.webkit.org/321441@main">321441@main</a>, WebKit ignored the
attribute, and the layer-based engine shrank the content but left the
box. The scale test separates those three, and both scale variants
point at one reference that contains no transform, so neither can hide
a failure in the other.

transform is a presentation attribute on any element in the SVG
namespace except pattern and the gradients, so it maps on svg:
<a href="https://w3c.github.io/svgwg/svg2-draft/styling.html#PresentationAttributes">https://w3c.github.io/svgwg/svg2-draft/styling.html#PresentationAttributes</a>

All three tests pass since <a href="https://commits.webkit.org/321441@main">321441@main</a>. The CSS one passing is what
shows the references are right. The four inner svg reftests in that
directory still fail and carried no bug number. They are 107394 too,
so they now say so.

run-webkit-tests over that directory: 53 tests, all as expected.

This will be exported to WPT.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=107394">https://bugs.webkit.org/show_bug.cgi?id=107394</a>
</pre>

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

CI Results

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

Total 3 tests

Status Summary

Firefox

PASS: 3

Chrome

PASS: 3

Safari

PASS: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Status: NEW → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.