Skip to content

Commit 807295f

Browse files
committed
[css-backgrounds-3] Restore text deleted in 99928ab goddamit Tab review your 'fix markup' diffs #4667
1 parent 57e2680 commit 807295f

File tree

1 file changed

+140
-1
lines changed

1 file changed

+140
-1
lines changed

css-backgrounds-3/Overview.bs

Lines changed: 140 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,14 @@ there is a second step. The UA must scale the image in that dimension
10301030
the background positioning area. In the case of the width (height is
10311031
analogous):
10321032

1033+
<blockquote>
1034+
<p>If <var>X</var> &ne; 0 is the width of the image after step one
1035+
and <var>W</var> is the width of the background positioning area,
1036+
then the rounded width
1037+
<var>X'</var> = <var>W</var> / round(<var>W</var> / <var>X</var>)
1038+
where round() is a function that returns the nearest natural number
1039+
(integer greater than zero).
1040+
</blockquote>
10331041

10341042
<p>If 'background-repeat' is ''background-repeat/round'' for one dimension only and if
10351043
'background-size' is ''background-size/auto'' for the other dimension, then there is a third
@@ -2610,7 +2618,8 @@ inline tables that have 'border-collapse' set to
26102618
''border-collapse/collapse''. However, this specification does not define how such an
26112619
image border is rendered. In particular, it does not define how the
26122620
image border interacts with the borders of cells, rows and row groups
2613-
at the edges of the table (see <a href="https://www.w3.org/TR/2011/REC-CSS2-20110607/tables.html#border-conflict-resolution">border conflict resolution</a> in [[!CSS2]]).
2621+
at the edges of the table
2622+
(see <a href="https://www.w3.org/TR/2011/REC-CSS2-20110607/tables.html#border-conflict-resolution">border conflict resolution</a> in [[!CSS2]]).
26142623

26152624
<p>It is expected that a future specification will define the
26162625
rendering. It is recommended that UAs do not apply border images to
@@ -2982,6 +2991,29 @@ Changes</h2>
29822991
Changes since the 17 October 2017 Candidate Recommendation</h3>
29832992

29842993
<ul>
2994+
<li>
2995+
Inverted order of <<shadow>> grammar to match browser serialization and 'text-shadow'/''drop-shadow()''.
2996+
(<a href="https://github.com/w3c/csswg-drafts/issues/2305">Issue 2305</a>)
2997+
<blockquote>
2998+
<pre><<shadow>> = <del>inset</del><ins><<color>></ins>? &amp;&amp; <<length>>{2,4} &amp;&amp; <del><<color>></del><ins>inset</ins>?</pre>
2999+
</blockquote>
3000+
<li>
3001+
Spread radius adjustment is only applied to outer shadows (and positive margins)--
3002+
i.e. cases where the radius of curvature grows, rather than shrinks.
3003+
(<a href="https://github.com/w3c/csswg-drafts/issues/1900">Issue 1900</a>)
3004+
<blockquote>
3005+
<p>To preserve the box's shape when spread is applied,
3006+
the corner radii of the shadow are also increased (decreased, for inner shadows)
3007+
from the border-box radii by adding (subtracting)
3008+
the <i>spread distance</i> (and flooring at zero).
3009+
However, in order to create a sharper corner when the border radius is small
3010+
<ins>(and thus ensure continuity between round and sharp corners)</ins>,
3011+
when the <i>border radius</i> is less than the <i>spread distance</i>,
3012+
the <i>spread distance</i> <ins>of an outer shadow</ins>
3013+
is multiplied by the proportion 1 + (<var>r</var>-1)<sup>3</sup>,
3014+
where <var>r</var> is the ratio of the border radius to the <i>spread distance</i>,
3015+
in calculating the corner radii of the spread shadow shape.
3016+
</blockquote>
29853017
<li>
29863018
Clarified that an omitted <<color>> in a <<shadow>> defaults to ''currentColor'',
29873019
not some mysterious unnamed value with the same behavior.
@@ -3106,6 +3138,113 @@ Changes Since the 15 February 2011 Candidate Recommendation</h3>
31063138
<a href="https://www.w3.org/TR/2011/CR-css3-background-20110215/">15 February 2011
31073139
Candidate Recommendation</a>:
31083140

3141+
<ul>
3142+
<li><a href="#the-background-size">Section 3.9</a>:
3143+
Defined what happens if 'background-size' has two ''background-size/auto'' values
3144+
and the image is missing an intrinsic dimension.
3145+
<blockquote>
3146+
<p>If both values are ''background-size/auto'' then the intrinsic width and/or
3147+
height of the image should be used, if any<ins>, the missing
3148+
dimension (if any) behaving as ‘auto’ as described above</ins>.
3149+
</blockquote>
3150+
<li><a href="#corner-transitions">Section 5.4</a>:
3151+
Made center of <a href="#corner-transitions">color and style transitions</a>
3152+
undefined (within certain limits) on corner joins, since previous definition
3153+
was wrong.
3154+
<blockquote>
3155+
<p><del>The center of color and style transitions between
3156+
adjoining borders is at the point on the curve that is at an angle
3157+
that is proportional to the ratio of the border widths. For
3158+
example, if the top and right border widths are equal, that point
3159+
is at a 45° angle from the horizontal, and if the top is twice the
3160+
width of the right the point is at a 30° angle from the
3161+
horizontal. The line demarcating this transition is drawn between
3162+
the point at that angle on the outer arc and the point at that
3163+
angle on the inner arc.</del>
3164+
<p><ins>If one of these borders is zero-width, then the other
3165+
border takes up the entire transitional area. Otherwise, the
3166+
center of color and style transitions between adjoining borders
3167+
must be proportional to the ratio of the border widths such that a
3168+
function of its location is continuous with respect to this ratio.
3169+
However it is not defined what these transitions look like or how
3170+
&ldquo;proportional&rdquo; maps to a point on the curve.</ins>
3171+
</blockquote>
3172+
<li><a href="#the-border-image-slice">Section 6.2</a>:
3173+
Defined <a href="#the-border-image-slice">slicing of border images</a>
3174+
that must be sized first to determine slice positions.
3175+
Added:
3176+
<blockquote>
3177+
<p><ins>If the image must be sized to determine the slices (for
3178+
example, for SVG images with no intrinsic size), then it is sized
3179+
as for an auto-sized background, using the border image area as
3180+
the default object size in place of the background positioning
3181+
area.</ins>
3182+
</blockquote>
3183+
<li><a href="#misc">Section 7.1</a>
3184+
Optionally added bidi-imposed breaks to the types of breaks affected by
3185+
'box-decoration-break'.
3186+
Added:
3187+
<blockquote>
3188+
<p><ins>UAs may also apply ‘box-decoration-break’ to control
3189+
rendering at bidi-imposed breaks, i.e. when bidi reordering causes
3190+
an inline to split into non-contiguous fragments. Otherwise such
3191+
breaks are always handled as ‘slice’.</ins>
3192+
</blockquote>
3193+
<li><a href="#the-box-shadow">Section 7.2</a>:
3194+
Defined the default color of 'box-shadow'.
3195+
<blockquote>
3196+
<p>The color is the color of the shadow. <ins>If the color is
3197+
absent, the used color is taken from the ‘color’ property.</ins>
3198+
</blockquote>
3199+
<li><a href="#the-background-position">Section 3.6</a>:
3200+
Clarified computed value of 'background-position'.
3201+
<blockquote>
3202+
<p><del>If one or two values are specified, for a &lt;length> the
3203+
absolute length, otherwise a percentage. If three or four values
3204+
are specified, two pairs of a keyword plus a length or
3205+
percentage.</del> <ins>Two keywords representing the origin and
3206+
two offsets from that origin, each given as an absolute length (if
3207+
given a <<length>>), otherwise as a percentage.</ins>
3208+
</blockquote>
3209+
<p>Changed <del>Equivalent</del> to <ins>Computes</ins> in
3210+
definition of keywords.
3211+
<li><a href="#animations">Section 2.3</a> (and all property definitions):
3212+
Added a section about expected an expected animations module.
3213+
Added "Animatable" line to property definition tables.
3214+
<li><a href="#the-background-position">Section 3.6</a>:
3215+
Renamed &lt;bg-position&gt; production to <i>&lt;position&gt;</i> for
3216+
easier re-use in other specifications and recast the grammar to be more
3217+
verbose but easier to understand.
3218+
<blockquote>
3219+
<pre class=prod>
3220+
<del>bg-position</del><ins>&lt;position&gt;</ins> = [
3221+
[ <ins>left | center | right |</ins> top | bottom <ins>| <<length-percentage>></ins> ]
3222+
|
3223+
[ left | center | right | <<length-percentage>> ]
3224+
[ top | center | bottom | <<length-percentage>> ]<del>?</del>
3225+
|
3226+
[ center | [ left | right ] <<length-percentage>>? ] &amp;&amp;
3227+
[ center | [ top | bottom ] <<length-percentage>>? ]
3228+
]
3229+
</pre>
3230+
</blockquote>
3231+
<li><a href="#the-border-image-repeat">Section 6.5</a>:
3232+
Added ''border-image-repeat/space'' keyword to 'border-image-repeat' property value table:
3233+
it was included in the list of allowable values, but not in the syntax
3234+
definition.
3235+
<blockquote>
3236+
<p>[ stretch | repeat | round <ins>| space</ins> ]{1,2}
3237+
</blockquote>
3238+
<li><a href="#corner-overlap">Section 5.5</a>:
3239+
Corrected math error in border-radius example.
3240+
<blockquote>
3241+
<p>The height (2.5em) is enough for the specified radii (0.5em
3242+
plus <del>2.5em</del> <ins>2.0em</ins>).
3243+
</blockquote>
3244+
<li><a href="#the-border-width">Section 4.3</a>:
3245+
Marked Percentages field as N/A for 'border-width', since they are not
3246+
included in the property.
3247+
</ul>
31093248

31103249
<h3 id="changes-2009">
31113250
Changes Since the 17 December 2009 Candidate Recommendation</h3>

0 commit comments

Comments
 (0)