Skip to content

Commit 190246b

Browse files
authored
[css-ui-4] Fixed grammar and spelling mistakes (#11407)
1 parent d332721 commit 190246b

File tree

1 file changed

+47
-47
lines changed

1 file changed

+47
-47
lines changed

css-ui-4/Overview.bs

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -615,13 +615,13 @@ Resizing Boxes: the 'resize' property</h3>
615615
The effect of the 'resize' property on generated content is undefined.
616616
Implementations should not apply the 'resize' property to generated content.
617617

618-
Note: the 'resize' property may apply to generated content in the future
618+
Note: The 'resize' property may apply to generated content in the future
619619
if there is implementation of <a href="https://drafts.csswg.org/css-pseudo/#CSSPseudoElement-interface">Interface CSSPseudoElement</a>.
620620

621621
When an element is resized by the user,
622622
the user agent sets
623623
the 'width' and 'height' properties
624-
to px unit length values of the size indicated by the user,
624+
to px unit length values of the size indicated by the user
625625
in the element’s <a href="https://www.w3.org/TR/css-style-attr/#style-attribute">style attribute</a> DOM,
626626
replacing existing property declaration(s), if any,
627627
without ''!important'', if any.
@@ -631,15 +631,15 @@ Resizing Boxes: the 'resize' property</h3>
631631

632632
The precise direction of resizing
633633
(i.e. altering the top-left of the element or altering the bottom-right)
634-
may depend on a number of CSS layout factors
634+
may depend on a number of CSS layout factors,
635635
including whether the element is absolutely positioned,
636636
whether it is positioned using the 'right'
637637
and 'bottom' properties,
638638
whether the language of the element is right-to-left etc.
639639
The UA should consider the direction of resizing
640640
(as determined by CSS layout),
641-
as well as platform conventions and constraints when deciding
642-
how to convey the resizing mechanism to the user.
641+
as well as platform conventions and constraints,
642+
when deciding how to convey the resizing mechanism to the user.
643643

644644
The user agent must allow the user to resize the element
645645
with no other constraints than what is imposed by
@@ -794,7 +794,7 @@ Styling the Cursor: the 'cursor' property</h4>
794794
Note: The CSS Working Group initially intended support for all SVG,
795795
naturally sized or not.
796796
Support for non-naturally sized SVG was downgraded from mandatory to optional due
797-
to lack of implementations.
797+
to a lack of implementations.
798798

799799
Note: For a number of years,
800800
the only file formats supported for cursors in common desktop browsers were
@@ -897,7 +897,7 @@ Styling the Cursor: the 'cursor' property</h4>
897897
via the <a lt="User-Agent Origin">UA stylesheet</a>,
898898
using a normal (i.e. not ''!important'') declaration.
899899

900-
Authors should use pointer on links and may use on other interactive elements.
900+
Authors should use pointer on links and may use it on other interactive elements.
901901

902902
<dt style="cursor:progress"><dfn>progress</dfn>
903903
<dd>
@@ -940,7 +940,7 @@ Styling the Cursor: the 'cursor' property</h4>
940940

941941
<dt style="cursor:vertical-text"><dfn>vertical-text</dfn>
942942
<dd>
943-
Indicates vertical-text that may be selected.
943+
Indicates vertical text that may be selected.
944944
Often rendered as a horizontal I-beam.
945945
</dl>
946946

@@ -1019,7 +1019,7 @@ Styling the Cursor: the 'cursor' property</h4>
10191019

10201020
<dt style="cursor:all-scroll"><dfn>all-scroll</dfn>
10211021
<dd>
1022-
Indicates that the something can be scrolled in any direction.
1022+
Indicates that something can be scrolled in any direction.
10231023
Often rendered as arrows pointing up, down, left, and right with a dot in the middle.
10241024
</dl>
10251025

@@ -1030,8 +1030,8 @@ Styling the Cursor: the 'cursor' property</h4>
10301030
<span style="cursor:zoom-in"> <dfn>zoom-in</dfn></span>,
10311031
<span style="cursor:zoom-out"> <dfn>zoom-out</dfn></span>
10321032
<dd>
1033-
Indicates that something can be zoomed (magnified) in or out,
1034-
and often rendered as a magnifying glass with a "+" or "-" in the center of the glass,
1033+
Indicates that something can be zoomed (magnified) in or out.
1034+
Often rendered as a magnifying glass with a "+" or "-" in the center of the glass,
10351035
for ''zoom-in'' and ''zoom-out'' respectively.
10361036
</dl>
10371037
</dl>
@@ -1053,7 +1053,7 @@ Styling the Cursor: the 'cursor' property</h4>
10531053
to the next value and attempt to use the "hyper.cur" cursor.
10541054
If that cursor format was also not supported,
10551055
the UA could attempt to use the "hyper.png" cursor with the explicit hotspot.
1056-
Finally if the UA cannot load any of those image cursors, the UA would skip to the last value
1056+
Finally, if the UA cannot load any of those image cursors, the UA would skip to the last value
10571057
and render the ''pointer'' cursor.
10581058
</div>
10591059

@@ -1104,7 +1104,7 @@ Coloring the Insertion Caret: the 'caret-color' property</h4>
11041104

11051105
Note: When 'caret-shape' is ''caret-shape/block'',
11061106
ensuring good visibility and contrast
1107-
is best achieved with a UA determined color other than ''currentColor''.
1107+
is best achieved with a UA-determined color other than ''currentColor''.
11081108

11091109
<dt><<color>>
11101110
<dd>
@@ -1167,7 +1167,7 @@ Animation of the insertion caret: 'caret-animation'</h4>
11671167
<dd>
11681168
The UA must not animate the caret.
11691169

1170-
Note: This is only about UA driven animations of the caret.
1170+
Note: This is only about UA-driven animations of the caret.
11711171
When CSS animations are used to animate the caret color,
11721172
they apply normally.
11731173
</dl>
@@ -1197,7 +1197,7 @@ Animation of the insertion caret: 'caret-animation'</h4>
11971197
UAs that do not have an editable user stylesheet
11981198
should provide a setting to disable
11991199
<a href="https://www.w3.org/TR/WCAG20/#blinksdef">blinking</a>,
1200-
<a href="https://www.w3.org/TR/WCAG20/#flash-def">flashing</a>
1200+
<a href="https://www.w3.org/TR/WCAG20/#flash-def">flashing</a>,
12011201
and animated carets.
12021202
UAs that do have an editable user stylesheet may want to provide this setting as well.
12031203
See [[WCAG]] <a href="https://www.w3.org/TR/WCAG20/#time-limits-pause">Guideline 2.2</a>
@@ -1435,7 +1435,7 @@ Shape of the insertion caret: 'caret-shape'</h4>
14351435
Omitted values are set to their initial values.
14361436

14371437
<div class=example>
1438-
This example illustrates using the various caret related properties
1438+
This example illustrates using the various caret-related properties
14391439
in combination.
14401440
They are used here to simulate the appearance of the caret
14411441
on an old phosphor computer monitor.
@@ -1616,7 +1616,7 @@ Directional Focus Navigation: the 'nav-up', 'nav-right', 'nav-down', 'nav-left'
16161616
<h4 id="input-method-editor">
16171617
Obsolete: the ime-mode property</h4>
16181618

1619-
''ime-mode'' is a property somewhat implemented in some browsers,
1619+
''ime-mode'' is a property somewhat implemented in some browsers
16201620
that is problematic and officially obsoleted by this specification
16211621
and its predecessor [[CSS-UI-3]].
16221622

@@ -1627,7 +1627,7 @@ Obsolete: the ime-mode property</h4>
16271627

16281628
Authors must not use the ime-mode property.
16291629

1630-
Users may use the ime-mode property only for repair use-cases
1630+
Users may use the ime-mode property only for repair use cases
16311631
where they have to work around bad sites and legacy implementations,
16321632
e.g. with a user style sheet rule like:
16331633
<div class="example">
@@ -1696,7 +1696,7 @@ Controlling content selection</h3>
16961696
<em>This feature is at risk.</em>
16971697

16981698
Issue: if we allow user-select to change to a value other than ''user-select/none'',
1699-
we need to figure out what this means for copyability, and DOM APIs.
1699+
we need to figure out what this means for copyability and DOM APIs.
17001700

17011701
When generated content in pseudo-elements becomes selectable
17021702
through this mechanism,
@@ -1717,7 +1717,7 @@ Controlling content selection</h3>
17171717

17181718
<li>
17191719
when the [=computed value=] is ''user-select/auto'',
1720-
in which case the [=used value=] one of the other values as defined below
1720+
in which case the [=used value=] is one of the other values as defined below
17211721
</ol>
17221722

17231723
For the purpose of this specification,
@@ -1763,7 +1763,7 @@ Controlling content selection</h3>
17631763
Note: This unusual combination of a non-inherited property with an initial value of ''user-select/auto''
17641764
whose used value depends on the parent element
17651765
makes it possible to create what is effectively selective inheritance.
1766-
This was initially proposed by Microsoft in IE to introduce a behavior similar to inheritance
1766+
This was initially proposed by Microsoft in IE to introduce a behavior similar to inheritance,
17671767
except that the ''user-select/contain'' value does not inherit.
17681768

17691769
<dt><dfn>text</dfn>
@@ -1781,19 +1781,19 @@ Controlling content selection</h3>
17811781
Note: As of the time of writing, experimental implementations do not all behave like this.
17821782
Firefox does.
17831783
Chrome and Safari almost do: for a selection started after the element
1784-
and trying to go backwards into the element
1784+
and trying to go backwards into the element,
17851785
they behave as specified here,
17861786
but for a selection started before the element
1787-
and trying to go into the element
1787+
and trying to go into the element,
17881788
they behave as if the element has ''all'' and select it entirely.
17891789
IE does not restrict selections started outside of the element
17901790
from going into it at all.
17911791
Another difference is that in Chrome and Safari,
17921792
if the user attempts to start a selection inside a ''user-select: none'',
17931793
and to end the selection out of it,
17941794
a selection will be created from the boundary of the element
1795-
to the user-designated end-point.
1796-
Firefox and Internet explorer behave as prescribed in this specification
1795+
to the user-designated end point.
1796+
Firefox and Internet Explorer behave as prescribed in this specification
17971797
and do not create a selection at all.
17981798

17991799
However, if this element has descendants on which the [=used value=] of 'user-select' is not ''user-select/none'',
@@ -1807,7 +1807,7 @@ Controlling content selection</h3>
18071807
these descendants must be included in a selection extending across the element.
18081808
<span class=note>This specification makes no normative requirement
18091809
about the behavior of the clipboard.
1810-
however, UAs are encouraged to keep the visual selection consistent
1810+
However, UAs are encouraged to keep the visual selection consistent
18111811
with what would get copied to the clipboard when copying.
18121812
Copying text that does not appear to be selected, or vice versa,
18131813
is highly confusing to users.</span>
@@ -1828,10 +1828,10 @@ Controlling content selection</h3>
18281828
and the user can disable it through the user style sheet or equivalent mechanisms
18291829
on UAs that do anyway.
18301830
Instead, ''user-select/none'' is meant to
1831-
make it easier for the user to select the content they want,
1831+
make it easier for the user to select the content they want
18321832
by letting the author disable selection on UI elements
18331833
that are not useful to select.
1834-
Tools such as CSS validators, linters or in-browser developer tools
1834+
Tools such as CSS validators, linters, or in-browser developer tools
18351835
are encouraged to use heuristics
18361836
to detect and warn against incorrect or abusive usage
18371837
that would hamper usability
@@ -1892,7 +1892,7 @@ Controlling content selection</h3>
18921892
</dl>
18931893

18941894
Note: Selections can include more than just text and extend over images, tables, videos, etc.
1895-
The behavior when copying and pasting a such selections is out of scope for this specification.
1895+
The behavior when copying and pasting such selections is out of scope for this specification.
18961896

18971897
The following additions are made to the UA stylesheet for HTML:
18981898
<pre><code class="lang-css">
@@ -1909,7 +1909,7 @@ Controlling content selection</h3>
19091909
Making ''-webkit-user-select'' a shorthand property of 'user-select'
19101910
is known to be an effective approach,
19111911
and new implementers should consider it.
1912-
However, UAs supporting ''-webkit-user-select'' as an alias of 'user-select' through other means exist,
1912+
However, UAs supporting ''-webkit-user-select'' as an alias of 'user-select' through other means exist
19131913
without adverse consequences to compatibility,
19141914
so this specification allows flexibility.
19151915

@@ -1951,9 +1951,9 @@ Exclusion from Hit-testing: the 'pointer-events' property</h3>
19511951
(see [[CSS-DISPLAY-3]])
19521952
were not there,
19531953
effectively causing the element behind the ''pointer-events: none'' element
1954-
to become the target of [=hit-testing=] based events instead.
1954+
to become the target of hit-testing-based events instead.
19551955

1956-
Issue: The statement above needs to be be qualified;
1956+
Issue: The statement above needs to be qualified;
19571957
for some purposes,
19581958
hit-testing continues to take the element into account.
19591959
For instance, clicking and dragging to start a text selection will continue to work as usual.
@@ -2159,7 +2159,7 @@ Switching appearance: the 'appearance' property</h3>
21592159
have the same styles.
21602160

21612161
ISSUE: ''appearance:base'' is not ready to ship until its stylesheet has been
2162-
fully defined in the HTML specification, and implemented accordingly, for all
2162+
fully defined in the HTML specification, and implemented accordingly for all
21632163
HTML form controls.
21642164

21652165
<details class=note>
@@ -2447,7 +2447,7 @@ Effects of 'appearance' on Decorative Aspects of Elements</h4>
24472447
<div class=example>
24482448
For example, the [[HTML]] <{select}> element is often rendered with an arrow on the right side
24492449
indicating that the list will be expanded if the element is clicked.
2450-
If the computed value of 'appearance' on a <{select}> element is ''appearance/none''
2450+
If the computed value of 'appearance' on a <{select}> element is ''appearance/none'',
24512451
this must disappear.
24522452
</div>
24532453

@@ -2458,13 +2458,13 @@ Effects of 'appearance' on Decorative Aspects of Elements</h4>
24582458
they intended.
24592459

24602460
<div class=advisement>
2461-
Authors may find it convenient to use ''all: unset'',
2461+
Authors may find it convenient to use ''all: unset''
24622462
to get fully unstyled <a>widgets</a>,
24632463
which they can then style as they want without interference from the user agent's stylesheet.
24642464
However, this also suppresses the focus indicators provided by the same UA stylesheet.
24652465
In order to avoid damaging accessibility,
24662466
authors who do so should restore a focus indicator,
2467-
for instance by using '':focus-visible { outline: auto; }''.
2467+
for instance, by using '':focus-visible { outline: auto; }''.
24682468
</div>
24692469

24702470

@@ -2475,7 +2475,7 @@ Effects of 'appearance' on Semantic Aspects of Elements</h4>
24752475
or its [=devolved=] state,
24762476
user agents must preserve aspects of the <a>widget</a>
24772477
which are necessary to operate the <a>widget</a> with its original semantics.
2478-
The UA may however give them a different look and feel
2478+
The UA may, however, give them a different look and feel
24792479
as long as it remains possible to operate the <a>widget</a>.
24802480
Aspects of a <a>widget</a> which are merely needed to observe the state the <a>widget</a> is in
24812481
and are not needed to operate it
@@ -2557,9 +2557,9 @@ Switching form control sizing: the 'field-sizing' property</h3>
25572557
<dt><dfn>fixed</dfn>
25582558
<dd>
25592559
For [=element with default preferred size=],
2560-
the UA must apply set the [=intrinsic size=]
2560+
the UA must set the [=intrinsic size=]
25612561
to the default preferred size defined by the host language for that element.
2562-
Otherwise UA must behave the same as ''field-sizing/content''.
2562+
Otherwise, the UA must behave the same as ''field-sizing/content''.
25632563
<dt><dfn>content</dfn>
25642564
<dd>
25652565
The UA must determine the element's [=intrinsic size=] based on its content,
@@ -2570,7 +2570,7 @@ Switching form control sizing: the 'field-sizing' property</h3>
25702570
</dl>
25712571

25722572
<div class="example">
2573-
For instance, <{textarea}> has fixed size regardless of its content by default:
2573+
For instance, <{textarea}> has a fixed size regardless of its content by default:
25742574

25752575
<span class="fake-textarea auto">&#x23B8;</span>
25762576
<span class="fake-textarea auto">The quick brown fox jumps over the lazy dog.</span>
@@ -2588,14 +2588,14 @@ Switching form control sizing: the 'field-sizing' property</h3>
25882588
<h3 id="input-security">
25892589
Obscuring sensitive input: the 'input-security' property</h3>
25902590

2591-
Issue: The CSS-WG has agreed that
2592-
while be believe that providing this piece of functionality to users is important,
2591+
Issue: The CSSWG has agreed that
2592+
while we believe that providing this piece of functionality to users is important,
25932593
doing it via CSS+JS is the wrong approach,
25942594
and that instead it should be built into user agents:
25952595
this needs to work consistently from site to site for it to be discoverable and understandable by users,
25962596
this needs to work even when JS is turned off,
2597-
this needs to have consistently solid accessibility…
2598-
We therefore intend to remove this from the specification
2597+
and this needs to have consistently solid accessibility…
2598+
We therefore intend to remove this from the specification,
25992599
and instead, we would like to see this behavior specified in the HTML specification
26002600
as part of the interaction model of password fields.
26012601
Holding off deleting until the situation with HTML is clarified.
@@ -2658,7 +2658,7 @@ Obscuring sensitive input: the 'input-security' property</h3>
26582658

26592659

26602660
<h3 id=control-specific-rules>
2661-
Control Specific Rules</h3>
2661+
Control-Specific Rules</h3>
26622662

26632663
Issue: Maybe some or all of this section
26642664
should be moved to the [[HTML]] spec.
@@ -2844,7 +2844,7 @@ Changes from the <a href="https://www.w3.org/TR/2017/WD-css-ui-4-20171222/">22 D
28442844
the following normative changes have been made:
28452845

28462846
<ul>
2847-
<li>Added details about form control specific rendering rules
2847+
<li>Added details about form control-specific rendering rules
28482848
<li>Clarify interaction between text-overflow and anonymous block containers
28492849
<li>Require the ''cursor/pointer'' cursor for hyperlinks in all document formats
28502850
<li>Moved the 'box-sizing' and 'text-overflow' properties to [[CSS-SIZING-3]] and [[CSS-OVERFLOW-4]] respectively.
@@ -2878,7 +2878,7 @@ Changes from the <a href="https://www.w3.org/TR/2015/WD-css-ui-4-20150922/">22 S
28782878
Move directional focus navigation properties from level 3 to level 4
28792879

28802880
<li>
2881-
Content from the now stable [[CSS-UI-3]] has been merged in.
2881+
Content from the now-stable [[CSS-UI-3]] has been merged in.
28822882
</ul>
28832883

28842884

0 commit comments

Comments
 (0)