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

Add documentation clarifying stop output value type #5956

Merged
merged 3 commits into from Jan 8, 2018

Conversation

davidtheclark
Copy link
Contributor

Earlier today I was trying an expression as the output of a stop value. There were cryptic errors, but I didn't find in the spec whether this was supposed to work or not. @jfirebaugh clarified in chat that this shouldn't work, so I thought I'd try amending the docs.

I also corrected a spacing problem.

Before:

screen shot 2018-01-05 at 3 29 10 pm

After:

screen shot 2018-01-05 at 3 27 24 pm

@jfirebaugh
Copy link
Contributor

jfirebaugh commented Jan 5, 2018

To be a bit more precise, we could say "Output values must be literal values (i.e. not functions or expressions), and appropriate for the property. For example stop output values for a function used in the fill-color property must be colors."

@davidtheclark
Copy link
Contributor Author

@jfirebaugh Thanks for the suggestion. I made those changes.

input value and one output value is known as a "stop." Stop output values
must be literal values (i.e. not functions or expressions), and appropriate
for the property. For example, stop output values for a function used in
the `fill-color` property must be <a href="#types-color">colors</a>.
Copy link
Contributor

Choose a reason for hiding this comment

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

Replace the markdown around fill-color with markup.

@davidtheclark
Copy link
Contributor Author

@jfirebaugh It was unclear to me whether to use <code> or <var> here. I opted for <code>, since that seems to be the majority of the references to style property names.

@jfirebaugh jfirebaugh merged commit 868fd92 into mb-pages Jan 8, 2018
@jfirebaugh jfirebaugh deleted the clarify-stop-output-value branch January 8, 2018 17:49
@jfirebaugh
Copy link
Contributor

Thanks!

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.

None yet

2 participants