Skip to content
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

Fix typo in exportparts syntax example #2

Merged
merged 1 commit into from
Dec 10, 2018
Merged

Conversation

oslego
Copy link
Contributor

@oslego oslego commented Dec 10, 2018

According to the spec, when forwarding parts, the idents in the part mapping should be separated by a colon (:) not a space. Perhaps this was an accidental omission (I have not tested the code).

The example in the spec Example 2 is seemingly at odds with the explanation of the algorithm for parsing the parts mapping, also missing the colon.

[According to the spec](https://drafts.csswg.org/css-shadow-parts/#parsing-mapping), when forwarding parts, the idents in the part mapping should be separated by a colon (`:`) not a space. Perhaps this was an accidental omission (I have not tested the code). 

The example in the spec [Example 2](https://drafts.csswg.org/css-shadow-parts/#example-d23fb781) is seemingly at odds with the explanation of the algorithm for parsing the parts mapping, also missing the comma.
Copy link
Owner

@fergald fergald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@fergald fergald merged commit 0d01d3d into fergald:master Dec 10, 2018
@fergald
Copy link
Owner

fergald commented Dec 10, 2018

Space was used as the separator in an early draft, I guess I just missed that one when updating.

Thanks!

oslego added a commit to oslego/csswg-drafts that referenced this pull request Dec 11, 2018
As noted in the [fix for the explainer doc](fergald/docs#2), this missing colon is probably an oversight after the syntax change.
@oslego
Copy link
Contributor Author

oslego commented Dec 11, 2018

Thank you for merging!

I tried to update the example in the spec too, but it seems I can't because my account fails an affiliation check. It is a non-substantive change (fixing a typo).

You may decide what's easier: either accept that PR as-is or fix the typo in another commit at your convenience.

@fergald
Copy link
Owner

fergald commented Dec 12, 2018 via email

@tabatkins
Copy link

Yeah, it was a non-substantial edit, so the affiliation check doesn't matter and I just bypassed it.

@oslego
Copy link
Contributor Author

oslego commented Dec 15, 2018 via email

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.

3 participants