Closed Bug 1904891 Opened 7 months ago Closed 7 months ago

support viewport and screen options for non-scaling-stroke

Categories

(Core :: SVG, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: longsonr, Assigned: longsonr)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

prior to this bug we supported vector-effect: none; and vector-effect: non-scaling-stroke;

Post this bug we support

vector-effect: none;
vector-effect: non-scaling-stroke;
vector-effect: non-scaling-stroke viewport;
vector-effect: non-scaling-stroke screen;

vector-effect: non-scaling-stroke viewport; is identical to vector-effect: non-scaling-stroke;

The screen option has an effect in nested <svg> i.e.

<svg viewBox="0 0 100 100">
<svg viewBox="0 0 200 200">
<rect vector-effect="non-scaling-stroke screen" .../>
</svg>
</svg>

With viewport we invert scaling from the rect to the inner <svg> only. With screen we invert all scaling to the root <svg> element.

Assignee: nobody → longsonr
Status: NEW → ASSIGNED
Pushed by longsonr@gmail.com: https://hg.mozilla.org/integration/autoland/rev/566ae05e7eec Support viewport and screen options for non-scaling-stroke r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/46986 for changes under testing/web-platform/tests

Can you send an intent to prototype and ship for this? Thanks!

Flags: needinfo?(longsonr)
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
Blocks: svg2
Keywords: dev-doc-needed
Upstream PR merged by moz-wptsync-bot
See Also: → 1903546
Keywords: dev-doc-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: