Skip to content

Add a few examples to the reification table#706

Closed
darrnshn wants to merge 1 commit into
w3c:mainfrom
darrnshn:example-reify
Closed

Add a few examples to the reification table#706
darrnshn wants to merge 1 commit into
w3c:mainfrom
darrnshn:example-reify

Conversation

@darrnshn
Copy link
Copy Markdown
Collaborator

Still drafting this up to get a feel for this, @tabatkins PTAL?

Comment thread css-typed-om/Overview.bs

: <a>align-content</a>
::
1. If the specified or computed value is the ''normal'' keyword,
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I can either do this, or have separate tables for specified vs computed (will have duplications)?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Depends on the property. align-content has the same behavior in specified and computed, so we can combine them.

Comment thread css-typed-om/Overview.bs
::
1. If the specified or computed value is the ''normal'' keyword,
return the result of reifying the "normal" keyword.
2. If the value is a keyword from <<content-distribution>>,
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Is this legit, or do I need to specify every keyword?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is legit.

Comment thread css-typed-om/Overview.bs
return the result of reifying the "normal" keyword.
2. If the value is a keyword from <<content-distribution>>,
return the result of reifying the keyword value.
3. Otherwise, the value is not supported.
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Interesting case with like <<baseline-position>>, which can be 'baseline', 'first baseline', 'last baseline'. We can either reify 'baseline' as keyword and the others as unsupported, or treat all three as unsupported in case we promote <<baseline-position>> to its own value?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should reify baseline and first baseline both to the single keyword baseline, and treat last baseline as unsupported.

Same for <content-position>: reify if there's no <overflow-position>, unsupported otherwise.

Comment thread css-typed-om/Overview.bs

: <a>align-content</a>
::
1. If the specified or computed value is the ''normal'' keyword,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Depends on the property. align-content has the same behavior in specified and computed, so we can combine them.

Comment thread css-typed-om/Overview.bs
::
1. If the specified or computed value is the ''normal'' keyword,
return the result of reifying the "normal" keyword.
2. If the value is a keyword from <<content-distribution>>,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is legit.

Comment thread css-typed-om/Overview.bs
return the result of reifying the "normal" keyword.
2. If the value is a keyword from <<content-distribution>>,
return the result of reifying the keyword value.
3. Otherwise, the value is not supported.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should reify baseline and first baseline both to the single keyword baseline, and treat last baseline as unsupported.

Same for <content-position>: reify if there's no <overflow-position>, unsupported otherwise.

Comment thread css-typed-om/Overview.bs
1. If the specified or computed value is the ''auto'' keyword,
return the result of reifying the "auto" keyword.
2. If the specified or computed value is of type <<length>>,
return the result of reifying the <<length>> value.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Need to link to the algo defining this (reify a numeric value). Can combine this with the next step, since lengths and %s use the same algo.

@tabatkins tabatkins removed the ready label Jun 13, 2019
Base automatically changed from master to main February 2, 2021 19:47
@darrnshn darrnshn closed this by deleting the head repository Dec 29, 2023
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.

2 participants