Add a few examples to the reification table#706
Conversation
|
|
||
| : <a>align-content</a> | ||
| :: | ||
| 1. If the specified or computed value is the ''normal'' keyword, |
There was a problem hiding this comment.
I can either do this, or have separate tables for specified vs computed (will have duplications)?
There was a problem hiding this comment.
Depends on the property. align-content has the same behavior in specified and computed, so we can combine them.
| :: | ||
| 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>>, |
There was a problem hiding this comment.
Is this legit, or do I need to specify every keyword?
| 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. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
|
|
||
| : <a>align-content</a> | ||
| :: | ||
| 1. If the specified or computed value is the ''normal'' keyword, |
There was a problem hiding this comment.
Depends on the property. align-content has the same behavior in specified and computed, so we can combine them.
| :: | ||
| 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>>, |
| 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. |
There was a problem hiding this comment.
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.
| 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. |
There was a problem hiding this comment.
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.
Still drafting this up to get a feel for this, @tabatkins PTAL?