Closed Bug 1903352 Opened 5 months ago Closed 5 months ago

SVG attribute values should not be zoomed

Categories

(Core :: SVG, defect)

defect

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox127 --- unaffected
firefox128 --- fixed
firefox129 --- fixed

People

(Reporter: pdr, Assigned: longsonr)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Steps to reproduce:

Gecko recently implemented the CSS zoom property (https://bugzilla.mozilla.org/show_bug.cgi?id=390936), but zoom is incorrectly reflected in SVG attribute values. Like computed style, zoom should not be reflected in SVG attributes. One reason for this is to support round-tripping.

Actual results:

The attached testcase displays:
svg width attribute value: 200
rect width attribute value: 50

Expected results:

The attached testcase should display (chromium, webkit):
svg width attribute value: 100
rect width attribute value: 25

The Bugbug bot thinks this bug should belong to the 'Core::SVG' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → SVG
Product: Firefox → Core
Blocks: csszoom
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: -- → S3
Keywords: regression
Regressed by: 1899695

Set release status flags based on info from the regressing bug 1899695

:emilio, since you are the author of the regressor, bug 1899695, could you take a look?

For more information, please visit BugBot documentation.

Seems robert is on it, thanks!

Assignee: nobody → longsonr
Flags: needinfo?(emilio)
Pushed by longsonr@gmail.com: https://hg.mozilla.org/integration/autoland/rev/031c8a5d110b SVG attribute values should not be zoomed r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/46839 for changes under testing/web-platform/tests

Backed out as requested for causing android failures.

Flags: needinfo?(longsonr)
Upstream PR was closed without merging
Pushed by longsonr@gmail.com: https://hg.mozilla.org/integration/autoland/rev/1a19ddb66a26 SVG attribute values should not be zoomed r=emilio
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
Upstream PR merged by moz-wptsync-bot
Upstream PR merged by moz-wptsync-bot

The patch landed in nightly and beta is affected.
:longsonr, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox128 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(longsonr)

Comment on attachment 9408459 [details]
Bug 1903352 - SVG attribute values should not be zoomed r=emilio

Beta/Release Uplift Approval Request

  • User impact if declined: SVG DOM does not work correctly in the presence of CSS zoom
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce: There's a testcase in this bug
  • List of other uplifts needed: None
  • Risk to taking this patch: Medium
  • Why is the change risky/not risky? (and alternatives if risky): We seem to have had quite a few problems with csszoom regressions with websites assuming things they shouldn't.
  • String changes made/needed: none
  • Is Android affected?: Yes
Flags: needinfo?(longsonr)
Attachment #9408459 - Flags: approval-mozilla-beta?

Comment on attachment 9408459 [details]
Bug 1903352 - SVG attribute values should not be zoomed r=emilio

Approved for 128.0b7.

Attachment #9408459 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: