Skip to content

Commit cc9d852

Browse files
committed
[css-ui-3][css-ui-4] Broaden which elements ''resize'' applies to
1 parent 445633f commit cc9d852

File tree

3 files changed

+71
-5
lines changed

3 files changed

+71
-5
lines changed

css-ui-4/Overview.bs

+14
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,17 @@ of Cascading Style Sheets, level 2, revision 1 [[CSS21]]
108108

109109
Issue: Add final level 3 content
110110

111+
In addition to elements
112+
whose computed 'overflow' value
113+
is something other than ''visible'',
114+
the 'resize' property also applies
115+
regardless of the value of the ''overflow'' property,
116+
to:
117+
<ul>
118+
<li>Replaced elements representing images or videos, such as <{img}>, <{video}>, <{picture}>, <{svg}>, <{object}>, or <{canvas}>.
119+
<li>The <{iframe}> element.
120+
</ul>
121+
111122
<h3 id="text-overflow"> Overflow Ellipsis: the 'text-overflow' property</h3>
112123

113124
Issue: Add final level 3 content
@@ -987,6 +998,9 @@ This appendix describes functional changes from the
987998
<ul>
988999
<li>The caret-animation property have been removed.
9891000
It may be reintroduced later given sufficient evidence for use cases.
1001+
<li>The ''resize'' property now also applies to
1002+
replaced elements representing images or videos,
1003+
and to iframes.
9901004
</ul>
9911005

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

css-ui/Overview.bs

+14-1
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,8 @@ and if so, along which axis/axes.
515515
<tr><th>Name:</th><td><dfn>resize</dfn></td></tr>
516516
<tr><th>Value: </th><td>none | both | horizontal | vertical</td></tr>
517517
<tr><th>Initial:</th><td>none</td></tr>
518-
<tr><th>Applies to:</th><td>elements with 'overflow' other than visible</td></tr>
518+
<tr><th>Applies to:</th><td>elements with 'overflow' other than visible,
519+
and optionally replaced elements representing images or videos, and iframes</td></tr>
519520
<tr><th>Inherited:</th><td>no</td></tr>
520521
<tr><th>Percentages:</th><td>N/A</td></tr>
521522
<tr><th>Media:</th><td>visual</td></tr>
@@ -554,6 +555,14 @@ to determine the size of the element.
554555
The 'resize' property applies to elements
555556
whose computed 'overflow' value
556557
is something other than ''visible''.
558+
UAs may also apply it,
559+
regardless of the value of the ''overflow'' property,
560+
to:
561+
<ul>
562+
<li>Replaced elements representing images or videos, such as <{img}>, <{video}>, <{picture}>, <{svg}>, <{object}>, or <{canvas}>.
563+
<li>The <{iframe}> element.
564+
</ul>
565+
557566

558567
The effect of the 'resize' property on generated content is undefined. Implementations should not apply the 'resize' property to generated content.
559568

@@ -1528,6 +1537,10 @@ This appendix describes changes from the
15281537
<li>Editorial and markup tweaks
15291538
<li>Clarify that cursor selection is based on hit testing
15301539
<li>Clean-up default style sheet additions for HTML
1540+
<li>Optionally allow the ''resize'' property to apply to
1541+
replaced elements representing images or videos
1542+
and to iframes,
1543+
for compatibility with level 4.
15311544
</ul>
15321545

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

css-ui/Overview.html

+43-4
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
<div class="head">
115115
<p data-fill-with="logo"><a class="logo" href="http://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/Icons/w3c_home" width="72"> </a> </p>
116116
<h1 class="p-name no-ref" id="title">CSS Basic User Interface Module Level 3 (CSS3 UI)</h1>
117-
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2015-09-25">25 September 2015</time></span></h2>
117+
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2015-09-29">29 September 2015</time></span></h2>
118118
<div data-fill-with="spec-metadata">
119119
<dl>
120120
<dt>This version:
@@ -736,7 +736,8 @@ <h3 class="heading settled" data-level="5.1" id="resize"><span class="secno">5.1
736736
<td>none
737737
<tr>
738738
<th>Applies to:
739-
<td>elements with <a class="property" data-link-type="propdesc" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">overflow</a> other than visible
739+
<td>elements with <a class="property" data-link-type="propdesc" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">overflow</a> other than visible,
740+
and optionally replaced elements representing images or videos, and iframes
740741
<tr>
741742
<th>Inherited:
742743
<td>no
@@ -780,7 +781,14 @@ <h3 class="heading settled" data-level="5.1" id="resize"><span class="secno">5.1
780781
to determine the size of the element.</p>
781782
<p>The <a class="property" data-link-type="propdesc" href="#propdef-resize">resize</a> property applies to elements
782783
whose computed <a class="property" data-link-type="propdesc" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">overflow</a> value
783-
is something other than <a class="css" data-link-type="maybe" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">visible</a>.</p>
784+
is something other than <a class="css" data-link-type="maybe" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">visible</a>.
785+
UAs may also apply it,
786+
regardless of the value of the <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-overflow-3/#valdef-continue-overflow">overflow</a> property,
787+
to:</p>
788+
<ul>
789+
<li>Replaced elements representing images or videos, such as <code><a data-link-type="element" href="https://html.spec.whatwg.org/multipage/embedded-content.html#the-img-element">img</a></code>, <code><a data-link-type="element" href="https://html.spec.whatwg.org/multipage/embedded-content.html#video">video</a></code>, <code><a data-link-type="element" href="https://html.spec.whatwg.org/multipage/embedded-content.html#the-picture-element">picture</a></code>, <code><a data-link-type="element" href="https://svgwg.org/svg2-draft/struct.html#NewDocument">svg</a></code>, <code><a data-link-type="element" href="https://html.spec.whatwg.org/multipage/embedded-content.html#the-object-element">object</a></code>, or <code><a data-link-type="element" href="https://html.spec.whatwg.org/multipage/scripting.html#canvas">canvas</a></code>.
790+
<li>The <code><a data-link-type="element" href="https://html.spec.whatwg.org/multipage/embedded-content.html#the-iframe-element">iframe</a></code> element.
791+
</ul>
784792
<p>The effect of the <a class="property" data-link-type="propdesc" href="#propdef-resize">resize</a> property on generated content is undefined. Implementations should not apply the <a class="property" data-link-type="propdesc" href="#propdef-resize">resize</a> property to generated content.</p>
785793
<p class="note" role="note">Note: the <a class="property" data-link-type="propdesc" href="#propdef-resize">resize</a> property may apply to generated content in the future if there is implementation of <a href="http://dev.w3.org/csswg/css-pseudo/#CSSPseudoElement-interface">Interface CSSPseudoElement</a>.</p>
786794
<p>When an element is resized by the user,
@@ -1511,6 +1519,10 @@ <h2 class="no-num heading settled" id="changes"><span class="content">Appendix B
15111519
<li>Editorial and markup tweaks
15121520
<li>Clarify that cursor selection is based on hit testing
15131521
<li>Clean-up default style sheet additions for HTML
1522+
<li>Optionally allowed the <span class="css">resize</span> property to apply to
1523+
replaced elements representing images or videos
1524+
and to iframes,
1525+
for compatibility with level 4.
15141526
</ul>
15151527
<h2 class="no-num heading settled" id="security-privacy-considerations"><span class="content">Appendix C. Considerations for Security and Privacy</span><a class="self-link" href="#security-privacy-considerations"></a></h2>
15161528
<p>This appendix is <em>informative</em>.</p>
@@ -1862,6 +1874,11 @@ <h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="con
18621874
<li><a href="https://drafts.csswg.org/css-images-3/#default-object-size">default object size</a>
18631875
<li><a href="https://drafts.csswg.org/css-images-3/#default-sizing-algorithm">default sizing algorithm</a>
18641876
</ul>
1877+
<li>
1878+
<a data-link-type="biblio" href="#biblio-css-overflow-3">[css-overflow-3]</a> defines the following terms:
1879+
<ul>
1880+
<li><a href="https://drafts.csswg.org/css-overflow-3/#valdef-continue-overflow">overflow</a>
1881+
</ul>
18651882
<li>
18661883
<a data-link-type="biblio" href="#biblio-css-values-3">[css-values]</a> defines the following terms:
18671884
<ul>
@@ -1901,6 +1918,21 @@ <h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="con
19011918
<li><a href="https://drafts.csswg.org/css2/visufx.html#propdef-visibility">visibility</a>
19021919
<li><a href="https://drafts.csswg.org/css2/visudet.html#propdef-width">width</a>
19031920
</ul>
1921+
<li>
1922+
<a data-link-type="biblio" href="#biblio-html">[HTML]</a> defines the following terms:
1923+
<ul>
1924+
<li><a href="https://html.spec.whatwg.org/multipage/scripting.html#canvas">canvas</a>
1925+
<li><a href="https://html.spec.whatwg.org/multipage/embedded-content.html#the-iframe-element">iframe</a>
1926+
<li><a href="https://html.spec.whatwg.org/multipage/embedded-content.html#the-img-element">img</a>
1927+
<li><a href="https://html.spec.whatwg.org/multipage/embedded-content.html#the-object-element">object</a>
1928+
<li><a href="https://html.spec.whatwg.org/multipage/embedded-content.html#the-picture-element">picture</a>
1929+
<li><a href="https://html.spec.whatwg.org/multipage/embedded-content.html#video">video</a>
1930+
</ul>
1931+
<li>
1932+
<a data-link-type="biblio" href="#biblio-svg2">[SVG2]</a> defines the following terms:
1933+
<ul>
1934+
<li><a href="https://svgwg.org/svg2-draft/struct.html#NewDocument">svg</a>
1935+
</ul>
19041936
</ul>
19051937
<h2 class="no-num heading settled" id="references"><span class="content">References</span><a class="self-link" href="#references"></a></h2>
19061938
<h3 class="no-num heading settled" id="normative"><span class="content">Normative References</span><a class="self-link" href="#normative"></a></h3>
@@ -1911,10 +1943,14 @@ <h3 class="no-num heading settled" id="normative"><span class="content">Normativ
19111943
<dd>Bert Bos; Elika Etemad; Brad Kemper. <a href="http://www.w3.org/TR/css3-background/">CSS Backgrounds and Borders Module Level 3</a>. 9 September 2014. CR. URL: <a href="http://www.w3.org/TR/css3-background/">http://www.w3.org/TR/css3-background/</a>
19121944
<dt id="biblio-css3color"><a class="self-link" href="#biblio-css3color"></a>[CSS3COLOR]
19131945
<dd>Tantek Çelik; Chris Lilley; David Baron. <a href="http://www.w3.org/TR/css3-color">CSS Color Module Level 3</a>. 7 June 2011. REC. URL: <a href="http://www.w3.org/TR/css3-color">http://www.w3.org/TR/css3-color</a>
1946+
<dt id="biblio-html"><a class="self-link" href="#biblio-html"></a>[HTML]
1947+
<dd>Ian Hickson. <a href="https://html.spec.whatwg.org/multipage/">HTML Standard</a>. Living Standard. URL: <a href="https://html.spec.whatwg.org/multipage/">https://html.spec.whatwg.org/multipage/</a>
19141948
<dt id="biblio-png"><a class="self-link" href="#biblio-png"></a>[PNG]
19151949
<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>
19161950
<dt id="biblio-svg"><a class="self-link" href="#biblio-svg"></a>[SVG]
19171951
<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>
1952+
<dt id="biblio-svg2"><a class="self-link" href="#biblio-svg2"></a>[SVG2]
1953+
<dd>Nikos Andronikos; et al. <a href="http://www.w3.org/TR/SVG2/">Scalable Vector Graphics (SVG) 2</a>. 15 September 2015. WD. URL: <a href="http://www.w3.org/TR/SVG2/">http://www.w3.org/TR/SVG2/</a>
19181954
<dt id="biblio-uax29"><a class="self-link" href="#biblio-uax29"></a>[UAX29]
19191955
<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>
19201956
<dt id="biblio-css-backgrounds-3"><a class="self-link" href="#biblio-css-backgrounds-3"></a>[CSS-BACKGROUNDS-3]
@@ -1923,6 +1959,8 @@ <h3 class="no-num heading settled" id="normative"><span class="content">Normativ
19231959
<dd>CSS Color Module Level 3 URL: <a href="http://www.w3.org/TR/css3-color/">http://www.w3.org/TR/css3-color/</a>
19241960
<dt id="biblio-css-images-3"><a class="self-link" href="#biblio-css-images-3"></a>[CSS-IMAGES-3]
19251961
<dd>CSS Image Values and Replaced Content Module Level 3 URL: <a href="http://www.w3.org/TR/css3-images/">http://www.w3.org/TR/css3-images/</a>
1962+
<dt id="biblio-css-overflow-3"><a class="self-link" href="#biblio-css-overflow-3"></a>[CSS-OVERFLOW-3]
1963+
<dd>David Baron. <a href="http://www.w3.org/TR/css-overflow-3/">CSS Overflow Module Level 3</a>. 18 April 2013. WD. URL: <a href="http://www.w3.org/TR/css-overflow-3/">http://www.w3.org/TR/css-overflow-3/</a>
19261964
<dt id="biblio-css-values"><a class="self-link" href="#biblio-css-values"></a>[CSS-VALUES]
19271965
<dd>Tab Atkins Jr.; Elika Etemad. <a href="http://www.w3.org/TR/css-values/">CSS Values and Units Module Level 3</a>. 11 June 2015. CR. URL: <a href="http://www.w3.org/TR/css-values/">http://www.w3.org/TR/css-values/</a>
19281966
<dt id="biblio-css-writing-modes-3"><a class="self-link" href="#biblio-css-writing-modes-3"></a>[CSS-WRITING-MODES-3]
@@ -2033,7 +2071,8 @@ <h2 class="no-num heading settled" id="property-index"><span class="content">Pro
20332071
<th scope="row"><a class="css" data-link-type="property" href="#propdef-resize">resize</a>
20342072
<td>none | both | horizontal | vertical
20352073
<td>none
2036-
<td>elements with overflow other than visible
2074+
<td>elements with overflow other than visible,
2075+
and optionally replaced elements representing images or videos, and iframes
20372076
<td>no
20382077
<td>N/A
20392078
<td>visual

0 commit comments

Comments
 (0)