Skip to content

Commit 5dcad30

Browse files
committed
[css-ui-3] Make non intrinsically sized SVG support optional
Closes #1813
1 parent 0554dba commit 5dcad30

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

css-ui/Overview.bs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -960,21 +960,26 @@ Conforming User Agents may, instead of <<url>>, support <<image>> which is a sup
960960
The UA must support the following image file formats:
961961
<ul>
962962
<li>PNG, as defined in [[!PNG]]
963-
<li>SVG, as defined in [[!SVG11]], in <a href="https://www.w3.org/TR/SVG2/conform.html#secure-static-mode">secure static mode</a> [[!SVG2]]
963+
<li>SVG, as defined in [[!SVG11]], in <a href="https://www.w3.org/TR/SVG2/conform.html#secure-static-mode">secure static mode</a> [[!SVG2]], if it has an intrinsic size.
964964
<li>any other non-animated image file format that they support
965965
for <<image>> in other properties,
966966
such as the the 'background-image' property
967967
</ul>
968968

969969
In addition, the UA should support the following image file formats:
970970
<ul>
971-
<li>SVG, as defined in [[!SVG11]], in <a href="https://www.w3.org/TR/SVG2/conform.html#secure-animated-mode">secure animated mode</a> [[!SVG2]]
971+
<li>SVG, as defined in [[!SVG11]], in <a href="https://www.w3.org/TR/SVG2/conform.html#secure-animated-mode">secure animated mode</a> [[!SVG2]], if it has an intrinsic size.
972972
<li>any other animated image file format that they support
973973
for <<image>> in other properties,
974974
such as the the 'background-image' property
975975
</ul>
976976

977-
The UA may also support additional file formats.
977+
The UA may also support additional file formats, including SVG, as defined in [[!SVG11]], in secure static mode or secure animated mode [[!SVG2]], even if it does not have an intrinsic size.
978+
979+
Note: The CSS Working group initially indented support for all SVG,
980+
intrinsically sized or not.
981+
Support for non intrinsically sized SVG was downgraded from mandatory to optional due
982+
to lack of implementations.
978983

979984
Note: At the time of writing this specification (spring 2015),
980985
the only file formats supported for cursors in common desktop browsers are
@@ -1376,6 +1381,7 @@ This appendix describes changes from the
13761381
<li>Add informative link to HTML about special handling of 'cursor' over image maps
13771382
<li>Clarify (as a SHOULD) the implications of text-overflow on pointer events to capture implementor consensus.
13781383
<li>Clarify that UAs may ignore the cursor property to reflect the UA's UI state
1384+
<li>Allow, but stop requiring support for SVG images without intrinsic sizes for cursors
13791385
</ul>
13801386

13811387
<h2 class="no-num" id="security-privacy-considerations">Appendix C. Considerations for Security and Privacy</h2>

css-ui/issues-2017-2.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,12 @@ Comment: https://github.com/w3c/csswg-drafts/issues/1691
6565
Response: https://github.com/w3c/csswg-drafts/issues/1691#issuecomment-323391476
6666
Closed: Accepted
6767
Resolved: https://github.com/w3c/csswg-drafts/issues/1691#issuecomment-324391129
68+
----
69+
Issue 9.
70+
Summary: Stop mandating support for non fixed size SVG as cursors
71+
From: Florian Rivoal
72+
Comment: https://github.com/w3c/csswg-drafts/issues/1813
73+
Comment: https://github.com/w3c/csswg-drafts/issues/1813#issuecomment-329298504
74+
Comment: https://github.com/w3c/csswg-drafts/issues/1813#issuecomment-329701978
75+
Resolved: https://github.com/w3c/csswg-drafts/issues/1813#issuecomment-330912545
76+
Closed: Accepted

0 commit comments

Comments
 (0)