Repository navigation
fonts: Support font-feature-settings in @font-face rule descriptor - #45393
Conversation
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Signed-off-by: Simon Wülker <[email protected]>
Signed-off-by: Simon Wülker <[email protected]>
Signed-off-by: Simon Wülker <[email protected]>
shubhamg13
left a comment
There was a problem hiding this comment.
Can we copy the comment from Specs as it is. Seems more meaningful.
| fn compute_used_font_features(options: &ShapingOptions) -> impl Iterator<Item = (Tag, u32)> { | ||
| /// Determine which OpenType features are applied for the font. | ||
| /// | ||
| /// The order of precedence is specified in <https://drafts.csswg.org/css-fonts-4/#apply-font-matching-variations>. |
There was a problem hiding this comment.
| /// The order of precedence is specified in <https://drafts.csswg.org/css-fonts-4/#apply-font-matching-variations>. | |
| /// General and font specific font feature property settings are resolved in the order below, in ascending order of precedence. | |
| /// | |
| /// The order of precedence is specified in <https://drafts.csswg.org/css-fonts-4/#apply-font-matching-variations>. |
There was a problem hiding this comment.
Why? Writing "[..] are resolved in the order below, in ascending order of precedence" right before "The order of precedence is specified in [..]" reads odd, and I don't see what value that sentence adds here.
There was a problem hiding this comment.
| /// The order of precedence is specified in <https://drafts.csswg.org/css-fonts-4/#apply-font-matching-variations>. | |
| /// The order of precedence for resolving font-specific font feature properties is specified in <https://drafts.csswg.org/css-fonts-4/#apply-font-matching-variations>. |
Looks little ambiguous, what precedence we are targeting. If this looks fine to you. Otherwise 👍
There was a problem hiding this comment.
Yeah that makes sense, thank you (:
In this case the spec algorithm computes both font variations ( |
|
The unit test failed because my stylo branch was not based on the latest commit. |
Signed-off-by: Simon Wülker <[email protected]>
2f07afe to
a2c702c
Compare
Signed-off-by: Simon Wülker <[email protected]>
Additionally, this bumps stylo to servo/stylo#382. I can do that in a seperate PR if preferred, but the change is so small that it doesn't feel like its worth the effort.
Testing: New tests start to pass