From ba6bf05307cd1e5085fa62a7f5c2d8132850d0c9 Mon Sep 17 00:00:00 2001 From: Tab Atkins-Bittner Date: Mon, 12 Dec 2022 15:00:50 -0800 Subject: [PATCH] [selectors-4] Amend the whitespace prohibitions to take into account. #7085 --- selectors-4/Overview.bs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/selectors-4/Overview.bs b/selectors-4/Overview.bs index 5b1894d3c264..6a50f7c05ee7 100644 --- a/selectors-4/Overview.bs +++ b/selectors-4/Overview.bs @@ -3566,8 +3566,10 @@ Grammar <relative-real-selector-list> = <># - <complex-selector> = [ <>? <>* ]! - [ <>? [ <>? <>* ]! ]* + <complex-selector-unit> = [ <>? <>* ]! + + <complex-selector> = <> + [ <>? <> ]* <complex-real-selector> = <> [ <>? <> ]* @@ -3581,7 +3583,6 @@ Grammar <simple-selector> = <> | <> - <combinator> = '>' | '+' | '~' | [ '|' '|' ] <type-selector> = <> | <>? '*' @@ -3619,8 +3620,9 @@ Grammar
  • White space is forbidden: * Between any of the top-level components of a <> + <> (that is, forbidden between the <> and <>, - or between the <> and <>, + or between the <> and <>, etc). * Between any of the components of a <> or a <>. @@ -3628,10 +3630,12 @@ Grammar of a <> or a <>. * Between any of the components of a <>. * Between the components of an <>. + * Between the <> or <>s + in a <> * Between the components of a <>. Whitespace is required - between two <>s + between two <>s if the <> between them is omitted. (This indicates the descendant combinator is being used.)