Closed Bug 1770645 Opened 2 years ago Closed 2 years ago

SVG 2 proporties don’t work with number values

Categories

(Core :: SVG, defect)

Firefox 100
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: gunnar, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:100.0) Gecko/20100101 Firefox/100.0

Steps to reproduce:

No radius given in SVG, but with CSS like circle { r: 1 }
See codepen https://codepen.io/gunnarbittersmann/pen/QWQMKYw

Actual results:

Circle not rendered.

Expected results:

Circle should be rendered, as is with length value circle { r: 1px }.

This might be the same with other properties which are new with SVG 2 (attributes only before).

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

There's nothing in https://www.w3.org/TR/SVG2/geometry.html#X and co that says this should work differently to any other css length, so I think Firefox is correct.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.