Skip to content

Commit f767f97

Browse files
committed
[css3-ui] Explicit file format requirements for 'cursor'
1 parent d053e03 commit f767f97

2 files changed

Lines changed: 79 additions & 1 deletion

File tree

css-ui/Overview.bs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,36 @@ If the user agent cannot handle any user-defined cursor,
985985
it must use the cursor keyword at the end of the list.
986986
Conforming User Agents may, instead of <<url>>, support <<image>> which is a superset.
987987

988+
The UA must support the following image file formats:
989+
<ul>
990+
<li>PNG, as defined in [[!PNG]]
991+
<li>SVG, as defined in [[!SVG]], in <a href="http://www.w3.org/TR/svg-integration/#secure-static-mode">secure static mode</a> [[!SVG-INTEGRATION]]
992+
<li>any other non-animated image file format that they support
993+
for <<image>> in other properties,
994+
such as the the 'background-image' property
995+
</ul>
996+
997+
In addition, the UA should support the following image file formats:
998+
<ul>
999+
<li>SVG, as defined in [[!SVG]], in <a href="http://www.w3.org/TR/svg-integration/#secure-animated-mode">secure animated mode</a> [[!SVG-INTEGRATION]]
1000+
<li>any other animated image file format that they support
1001+
for <<image>> in other properties,
1002+
such as the the 'background-image' property
1003+
</ul>
1004+
1005+
The UA may also support additional file formats.
1006+
1007+
Note: At the time of writing this specification,
1008+
the only file formats supported for cursors in all browsers are
1009+
the .ico and .cur file formats, as designed by Microsoft.
1010+
For compatibility with legacy content,
1011+
UAs are encouraged to support these,
1012+
even though the lack of an open specification
1013+
makes it impossible to have a normative requirement
1014+
about these formats.
1015+
Some information on these formats can be found
1016+
<a href="http://en.wikipedia.org/wiki/ICO_%28file_format%29">on wikipedia</a>.
1017+
9881018
The <a>default object size</a> for cursor images is
9891019
a UA-defined size that should be based on
9901020
the size of a typical cursor on the UA's operating system.

css-ui/Overview.html

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@
718718
<h1 class="p-name no-ref" id="title">CSS Basic User Interface Module Level 3 (CSS3 UI)</h1>
719719

720720
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft,
721-
<time class="dt-updated" datetime="2015-04-09">9 April 2015</time></span></h2>
721+
<time class="dt-updated" datetime="2015-04-10">10 April 2015</time></span></h2>
722722

723723
<div data-fill-with="spec-metadata">
724724
<dl>
@@ -2721,6 +2721,47 @@ <h4 class="heading settled" data-level="6.1.1" id="cursor"><span class="secno">6
27212721
Conforming User Agents may, instead of <a class="production css" data-link-type="type" href="http://dev.w3.org/csswg/css-values-3/#url-value" title="Expands to: ">&lt;url></a>, support <a class="production css" data-link-type="type" href="http://dev.w3.org/csswg/css-images-3/#typedef-image">&lt;image></a> which is a superset.
27222722

27232723

2724+
<p>The UA must support the following image file formats:</p>
2725+
2726+
<ul>
2727+
2728+
<li>PNG, as defined in <a data-link-type="biblio" href="#biblio-png">[PNG]</a>
2729+
2730+
<li>SVG, as defined in <a data-link-type="biblio" href="#biblio-svg">[SVG]</a>, in <a href="http://www.w3.org/TR/svg-integration/#secure-static-mode">secure static mode</a> <a data-link-type="biblio" href="#biblio-svg-integration">[SVG-INTEGRATION]</a>
2731+
2732+
<li>any other non-animated image file format that they support
2733+
for <a class="production css" data-link-type="type" href="http://dev.w3.org/csswg/css-images-3/#typedef-image" title="Expands to: ">&lt;image></a> in other properties,
2734+
such as the the <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-backgrounds-3/#background-image">background-image</a> property
2735+
</ul>
2736+
2737+
2738+
<p>In addition, the UA should support the following image file formats:</p>
2739+
2740+
<ul>
2741+
2742+
<li>SVG, as defined in <a data-link-type="biblio" href="#biblio-svg">[SVG]</a>, in <a href="http://www.w3.org/TR/svg-integration/#secure-animated-mode">secure animated mode</a> <a data-link-type="biblio" href="#biblio-svg-integration">[SVG-INTEGRATION]</a>
2743+
2744+
<li>any other animated image file format that they support
2745+
for <a class="production css" data-link-type="type" href="http://dev.w3.org/csswg/css-images-3/#typedef-image" title="Expands to: ">&lt;image></a> in other properties,
2746+
such as the the <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-backgrounds-3/#background-image">background-image</a> property
2747+
</ul>
2748+
2749+
2750+
<p>The UA may also support additional file formats.</p>
2751+
2752+
2753+
<p class="note" role="note">Note: At the time of writing this specification,
2754+
the only file formats supported for cursors in all browsers are
2755+
the .ico and .cur file formats, as designed by Microsoft.
2756+
For compatibility with legacy content,
2757+
UAs are encouraged to support these,
2758+
even though the lack of an open specification
2759+
makes it impossible to have a normative requirement
2760+
about these formats.
2761+
Some information on these formats can be found
2762+
<a href="http://en.wikipedia.org/wiki/ICO_%28file_format%29">on wikipedia</a>.</p>
2763+
2764+
27242765
<p>The <a data-link-type="dfn" href="http://dev.w3.org/csswg/css-images-3/#default-object-size">default object size</a> for cursor images is
27252766
a UA-defined size that should be based on
27262767
the size of a typical cursor on the UA’s operating system.</p>
@@ -4220,6 +4261,7 @@ <h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="con
42204261
<ul class="indexlist">
42214262
<li><a data-link-type="biblio" href="#biblio-css-backgrounds-3">[css-backgrounds-3]</a> defines the following terms:
42224263
<ul>
4264+
<li><a href="http://dev.w3.org/csswg/css-backgrounds-3/#background-image">background-image</a>
42234265
<li><a href="http://dev.w3.org/csswg/css-backgrounds-3/#border-bottom-width">border-bottom-width</a>
42244266
<li><a href="http://dev.w3.org/csswg/css-backgrounds-3/#border-left-width">border-left-width</a>
42254267
<li><a href="http://dev.w3.org/csswg/css-backgrounds-3/#border-radius">border-radius</a>
@@ -4309,6 +4351,10 @@ <h3 class="no-num heading settled" id="normative"><span class="content">Normativ
43094351
<dd>Bert Bos; Elika J. Etemad; Brad Kemper. <a href="http://www.w3.org/TR/2012/CR-css3-background-20120724/">CSS Backgrounds and Borders Module Level 3</a>. 24 July 2012. W3C Candidate Recommendation. (Work in progress.) URL: <a href="http://www.w3.org/TR/2012/CR-css3-background-20120724/">http://www.w3.org/TR/2012/CR-css3-background-20120724/</a>
43104352
<dt id="biblio-css3color"><a class="self-link" href="#biblio-css3color"></a>[CSS3COLOR]
43114353
<dd>Tantek Çelik; Chris Lilley; L. David Baron. <a href="http://www.w3.org/TR/2011/REC-css3-color-20110607">CSS Color Module Level 3</a>. 7 June 2011. W3C Recommendation. URL: <a href="http://www.w3.org/TR/2011/REC-css3-color-20110607">http://www.w3.org/TR/2011/REC-css3-color-20110607</a>
4354+
<dt id="biblio-png"><a class="self-link" href="#biblio-png"></a>[PNG]
4355+
<dd>Tom Lane. <a href="http://www.w3.org/TR/PNG">Portable Network Graphics (PNG) Specification (Second Edition)</a>. 10 November 2003. REC. URL: <a href="http://www.w3.org/TR/PNG">http://www.w3.org/TR/PNG</a>
4356+
<dt id="biblio-svg"><a class="self-link" href="#biblio-svg"></a>[SVG]
4357+
<dd>Jon Ferraiolo. <a href="http://www.w3.org/TR/SVG/">Scalable Vector Graphics (SVG) 1.0 Specification</a>. 4 September 2001. REC. URL: <a href="http://www.w3.org/TR/SVG/">http://www.w3.org/TR/SVG/</a>
43124358
<dt id="biblio-uax29"><a class="self-link" href="#biblio-uax29"></a>[UAX29]
43134359
<dd>Mark Davis. <a href="http://www.unicode.org/unicode/reports/tr29/tr29-9.html">Text Boundaries</a>. 25 March 2005. Unicode Standard Annex #29. URL: <a href="http://www.unicode.org/unicode/reports/tr29/tr29-9.html">http://www.unicode.org/unicode/reports/tr29/tr29-9.html</a>
43144360
<dt id="biblio-css-backgrounds-3"><a class="self-link" href="#biblio-css-backgrounds-3"></a>[CSS-BACKGROUNDS-3]
@@ -4331,6 +4377,8 @@ <h3 class="no-num heading settled" id="normative"><span class="content">Normativ
43314377
<dd>CSS Object Model Level 1 URL: <a href="http://www.w3.org/TR/cssom/">http://www.w3.org/TR/cssom/</a>
43324378
<dt id="biblio-rfc2119"><a class="self-link" href="#biblio-rfc2119"></a>[RFC2119]
43334379
<dd>S. Bradner. <a href="https://tools.ietf.org/html/rfc2119">Key words for use in RFCs to Indicate Requirement Levels</a>. March 1997. Best Current Practice. URL: <a href="https://tools.ietf.org/html/rfc2119">https://tools.ietf.org/html/rfc2119</a>
4380+
<dt id="biblio-svg-integration"><a class="self-link" href="#biblio-svg-integration"></a>[SVG-INTEGRATION]
4381+
<dd>Cameron McCormack; Doug Schepers; Dirk Schulze. <a href="http://www.w3.org/TR/svg-integration/">SVG Integration</a>. 17 April 2014. WD. URL: <a href="http://www.w3.org/TR/svg-integration/">http://www.w3.org/TR/svg-integration/</a>
43344382
</dl>
43354383
<h3 class="no-num heading settled" id="informative"><span class="content">Informative References</span><a class="self-link" href="#informative"></a></h3>
43364384
<dl>

0 commit comments

Comments
 (0)