Skip to content

Adjust spec for KeywordValue to be wrapper for string, add table of properties to StyleValue types. #93

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 5 commits into from
Jan 26, 2016

Conversation

wilddamon
Copy link
Contributor

Apparently I actually did this last year and completely forgot!

Keywords are now just a wrapper for a String.

I also started a table for which properties can take which StyleValues, but got stuck with how to make a table in bikeshed. Any advice?

@shans
Copy link
Contributor

shans commented Jan 11, 2016

At a minimum, you can just use raw HTML. There might be a nicer way though - @tabatkins?

</pre>

{{KeywordValue}} objects represent {{StyleValue}}s that are keywords. It is simply a wrapper for a string
and does not check that it contains a valid keyword.
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a note that property setters will enforce keyword validity.

@tabatkins
Copy link
Member

but got stuck with how to make a table in bikeshed. Any advice?

Just write an HTML table. Bikeshed's source format is a subset of Markdown + HTML + some BS-specific stuff, so if it's not covered by vanilla Markdown, it's probably HTML.

Use good, semantic markup (thead/tbody, th, col/colgroup if appropriate) and then add class=data to get formatting automagically. (fantasai put a lot of effort into the data-table styling and it shows.)

@wilddamon
Copy link
Contributor Author

Added some updates and a big partial table for accepted types.

@wilddamon wilddamon changed the title Adjust spec for KeywordValue Adjust spec for KeywordValue to be wrapper for string, add table of properties to StyleValue types. Jan 25, 2016
shans added a commit that referenced this pull request Jan 26, 2016
Adjust spec for KeywordValue to be wrapper for string, add table of properties to StyleValue types.
@shans shans merged commit 21c0bd3 into w3c:master Jan 26, 2016
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