[wpt-sync] Sync PR 53186 - WPTs for different CSS values of `width` and `height` for SVG elements
Categories
(Core :: SVG, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox143 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 53186 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/53186
Details from upstream follow.
Divyansh Mangal <dmangal@microsoft.com> wrote:
WPTs for different CSS values of
widthandheightfor SVG elementsThis PR adds Web Platform Tests (WPTs) to verify the behavior of various CSS width and height values—such as auto, calc-size(), calc(), Ems, fit-content, inherit, initial, max-content, min-content, percent, Rems, stretch and viewport units like vw/vh—when applied to SVG elements.
These tests aim to ensure consistent rendering across browsers and clarify expected layout behavior for SVGs styled with modern CSS sizing keywords.Defined Behavior
Absolute units:
These include units like px, pt, pc, cm, mm, in. Absolute values are defined in the specificationRelative units
These include units like em, rem, %, ex, ch, lh, rlh. Relative values are defined in the specification (though only % in mentioned in the specification)Special keyword:
These include keywords like auto, initial, inherit, unset, revert, revert-layer. Their behavior is also defined in the SVG specification (though only auto and inherit is mentioned in the specification). Other values like initial, revert, unset etc. are not mentioned but their behavior seems to be consistent.Undefined Behavior
Viewport relative units:
These include units like vw, vh, vmin, vmax, svw, svh, lvw, lvh, dvw, dvh. These units/values depend on the viewport on where the element is defined. The specification does not explicitly mention what viewport which respect to which their values should be resolved.Intrinsic sizing keywords:
These include keywords like min-content, max-content, fit-content, stretch. These units depend on CSS box model for their computation and hence their behavior is ambiguous for elements likerect,circle, nestedsvgelements etc.Calculated values:
These include functions like calc(), min(), max(), clamp(), calc-size().An issue for this is raised for the new expectations to be discussed.
https://github.com/w3c/csswg-drafts/issues/12376
| Assignee | ||
Updated•11 months ago
|
| Assignee | ||
Comment 1•11 months ago
|
||
| Assignee | ||
Comment 2•11 months ago
|
||
CI Results
Ran 7 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 15 tests
Status Summary
Firefox
PASS: 1
FAIL: 14
Chrome
PASS: 7
FAIL: 8
Safari
FAIL: 15
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /svg/styling/nested-svg-sizing-auto.tentative.svg [wpt.fyi]:
FAIL(Chrome:PASS, Safari:FAIL) - /svg/styling/nested-svg-sizing-calc-size.tentative.svg [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL) - /svg/styling/nested-svg-sizing-calc.tentative.svg [wpt.fyi]:
FAIL(Chrome:PASS, Safari:FAIL) - /svg/styling/nested-svg-sizing-ems.tentative.svg [wpt.fyi]:
FAIL(Chrome:PASS, Safari:FAIL) - /svg/styling/nested-svg-sizing-fit-content.tentative.svg [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL) - /svg/styling/nested-svg-sizing-inherit.tentative.svg [wpt.fyi]:
FAIL(Chrome:PASS, Safari:FAIL) - /svg/styling/nested-svg-sizing-initial.tentative.svg [wpt.fyi]:
FAIL(Chrome:PASS, Safari:FAIL) - /svg/styling/nested-svg-sizing-max-content.tentative.svg [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL) - /svg/styling/nested-svg-sizing-min-content.tentative.svg [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL) - /svg/styling/nested-svg-sizing-percent.tentative.svg [wpt.fyi]:
FAIL(Chrome:PASS, Safari:FAIL) - /svg/styling/nested-svg-sizing-rems.tentative.svg [wpt.fyi]:
FAIL(Chrome:PASS, Safari:FAIL) - /svg/styling/nested-svg-sizing-stretch.tentative.svg [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL) - /svg/styling/nested-svg-sizing-viewport-units-with-ICB.tentative.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL) - /svg/styling/nested-svg-sizing-viewport-units.tentative.svg [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL)
Comment 4•11 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/87734dc33703
https://hg.mozilla.org/mozilla-central/rev/66cce00d2887
Description
•