Closed kiaking closed 6 months ago
how is it different from just specifying:
:deep(.table) {
font-feature-settings: "tnum"
}
Ah sorry my example was bad. I want certain cell only. But wait, would this work? I mean font-feature-settings
will always be inherited? I wanted to actually do this.
.table :deep(.col-id) {
font-feature-settings: "tnum";
}
Yeah seems to work fine in story. Everything related to font is inherited I guess.
https://developer.mozilla.org/en-US/docs/Web/CSS/font-feature-settings#formal_definition (yup, always inherited)
Ah OK! then we can just do that 👍 Thanks!
There are cases when I want to specify
font-feature-settings
to text cell. For example, when we have padded ID listed in the table. e.g.:By setting
font-feature-settings: "tnum"
, we can make these numbers aligned.Maybe add css variable like
--table-cell-font-feature-settings
?