Skip to content

[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

Merged
merged 1 commit into from
May 13, 2025

Conversation

AtkinsSJ
Copy link
Contributor

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.

@@ -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>.
Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

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?

@AtkinsSJ AtkinsSJ force-pushed the serialize-a-css-declaration-block-typo branch 2 times, most recently from 3aba8fb to c16e9fe Compare May 13, 2025 15:42
AtkinsSJ added a commit to AtkinsSJ/ladybird that referenced this pull request May 13, 2025
@svgeesus
Copy link
Contributor

@emilio for review

@w3cbot
Copy link

w3cbot commented May 13, 2025

svgeesus marked as non substantive for IPR from ash-nazg.

@svgeesus svgeesus requested a review from emilio May 13, 2025 17:20
@emilio emilio merged commit 5a55d66 into w3c:main May 13, 2025
1 check passed
@AtkinsSJ AtkinsSJ deleted the serialize-a-css-declaration-block-typo branch May 13, 2025 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants