Bug 253937 - Container query units should work inside SVG attributes
Summary: Container query units should work inside SVG attributes
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: https://wpt.fyi/results/css/css-conta...
Keywords: InRadar, WPTImpact
Depends on: 258003
Blocks:
  Show dependency treegraph
 
Reported: 2023-03-14 23:23 PDT by Tim Nguyen (:ntim)
Modified: 2024-04-23 00:49 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Radar WebKit Bug Importer 2023-03-14 23:25:00 PDT
<rdar://problem/106739462>
Comment 2 Antti Koivisto 2023-08-23 16:28:57 PDT
Currently our SVGLength code only supports unit types defined in SVGLengthType enum:

enum class SVGLengthType : uint8_t {
    Unknown = 0,
    Number,
    Percentage,
    Ems,
    Exs,
    Pixels,
    Centimeters,
    Millimeters,
    Inches,
    Points,
    Picas
};

Per spec (https://svgwg.org/svg2-draft/types.html#InterfaceSVGLength) other types can be supported too. This is not a container unit specific issue but a general SVG issue.