Skip to content

Commit 90b9d75

Browse files
committed
[selectors-4] Minor grammar tweaks.
1 parent b76132d commit 90b9d75

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

selectors-4/Overview.bs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3814,18 +3814,18 @@ Appendix B: Obsolete but Required Parsing Quirks for Web Compat</h2>
38143814
Selectors have long had a behavior
38153815
where a single unknown/invalid selector
38163816
invalidates the entire selector list
3817-
(rather than just invaliding the one complex selector it finds itself in).
3817+
(rather than just invalidating the one complex selector it finds itself in).
38183818
This is generally considered a legacy mistake by the WG,
38193819
but can't be fixed at this point,
38203820
as too many stylesheets depend on this behavior,
38213821
intentionally or not.
38223822

3823-
One aspect of this is that any use of vendor-specific selectors,
3824-
which are generally not recognized by other User Agents,
3825-
invalidate the entire selector,
3826-
and take the entire style rule down with them.
3823+
One aspect of this is that use of vendor-specific selectors
3824+
invalidates the entire selector in other User Agents
3825+
that don't recognize them,
3826+
and takes the entire style rule down with it.
38273827
This has been used intentionally in the past--
3828-
in the severely not-recommended practice of hiding style rules from some browsers
3828+
in the severely-not-recommended practice of hiding style rules from some browsers
38293829
by making them invalid in every other browser--
38303830
and unintentionally,
38313831
with people styling an element
@@ -3837,7 +3837,7 @@ Appendix B: Obsolete but Required Parsing Quirks for Web Compat</h2>
38373837
WebKit-derived user agents,
38383838
such as Safari or Chrome,
38393839
have an additional quirk related to their vendor-prefixed pseudo-elements,
3840-
where any <css>::-webkit-</css>-prefixed selectors is considered valid at parse time.
3840+
where any <css>::-webkit-</css>-prefixed selectors are considered valid at parse time.
38413841
(This is probably a leftover quirk of an early CSS feature,
38423842
since dropped,
38433843
that intentionally treated all possible pseudo-elements as valid at parse time,
@@ -3848,9 +3848,8 @@ Appendix B: Obsolete but Required Parsing Quirks for Web Compat</h2>
38483848
this particular vendor-specific oddity has become common enough
38493849
that other user agents are seeing sites breaking due to them depending on it,
38503850
accidentally or not.
3851-
As such, since the quirk is thus,
3852-
in practical terms,
3853-
required to render the modern web correctly,
3851+
As such, since the quirk is in practical terms
3852+
<em>required</em> to render the modern web correctly,
38543853
specifying it and requiring it for all user agents
38553854
ensures that today's web pages are more likely to be correctly rendered
38563855
in user agents both current and future.

0 commit comments

Comments
 (0)