-
Notifications
You must be signed in to change notification settings - Fork 715
[cssom-1] Correct typos and grammar in "serialize a CSS declaration block" #12187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cssom-1] Correct typos and grammar in "serialize a CSS declaration block" #12187
Conversation
@@ -2353,20 +2353,20 @@ To <dfn export>serialize a CSS declaration block</dfn> <var>declaration block</v | |||
<li><i>Shorthand loop</i>: For each <var>shorthand</var> in <var>shorthands</var>, follow these substeps: | |||
<ol> | |||
<li>Let <var>longhands</var> be an array consisting of all <a>CSS declarations</a> in <var>declaration block</var>'s | |||
<a for="CSSStyleDeclaration">declarations</a> that that are not in <var>already serialized</var> and have a | |||
<a for="CSSStyleDeclaration">declarations</a> that are not in <var>already serialized</var> and have a | |||
<a for="CSS declaration">property name</a> that | |||
maps to one of the shorthand properties in <var>shorthands</var>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be "that maps to shorthand"? The loop is only concerned about that, not the entire list of possible shorthands.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've pushed a commit to correct this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I've undone that commit. I don't understand why we have both longhands
and current longhands
. longhands
only gets used to then copy into current longhands
. Maybe it's supposed to only be created once instead of each time in shorthand loop
?
3aba8fb
to
c16e9fe
Compare
Oh boy this is confusing. w3c/csswg-drafts#12187
@emilio for review |
svgeesus marked as non substantive for IPR from ash-nazg. |
I noticed the "that that" mistake while implementing this, then identified a couple of other small corrections. Not all of these are "wrong" exactly, they're just not worded the way the specs usually do.