Intent to ship screen and viewport options for vector-effect

482 views
Skip to first unread message

Robert Longson

unread,
Jul 3, 2024, 3:09:34 PM7/3/24
to dev-pl...@mozilla.org
Summary: vector-effect: non-scaling-stroke is supposed to support an additional optional argument that can be either viewport or screen. I.e.

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

vector-effect: non-scaling-stroke should be the same as vector-effect: non-scaling-stroke viewport

These options differ in the presence of nested <svg> elements.  Viewport uses the nearest ancestor <svg> element, screen uses all ancestor <svg> elements to determine the scaling to cancel.

Prior to Firefox 128 our implementation was incorrect but more closely matched screen than viewport. Implementing the screen option will offer users an option that more closely matches the functionality of Firefox < 128 if they still need that.


Sebastian Zartner

unread,
Jul 3, 2024, 6:16:19 PM7/3/24
to Robert Longson, dev-pl...@mozilla.org
For anyone wondering, the linked bug in Robert's mail is different from the link text.


Sebastian

--
You received this message because you are subscribed to the Google Groups "dev-pl...@mozilla.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dev-platform...@mozilla.org.
To view this discussion on the web visit https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/0e1c7f16-c85e-4a58-97e2-14b6d94c1f58n%40mozilla.org.

Robert Longson

unread,
Jul 16, 2024, 6:03:04 AM7/16/24
to Sebastian Zartner, dev-pl...@mozilla.org
In the end we decided not to implement screen or viewport support as we found an addendum to the SVG spec that removes them.
Reply all
Reply to author
Forward
0 new messages