-
Use CSS inheritance for background-color in WebViewSubtitleOutput · cdfee891
CSS background-color isn't inherited to inner HTML elements by default: https://developer.mozilla.org/en-US/docs/Web/CSS/background-color But Android Span styling assumes an outer BackgroundColorSpan will affect inner spans. This usually doesn't make a difference, because HTML elements are transparent by default, so there's an implicit inheritance by just being able to see through to the 'outer' element underneath. However this doesn't work if the inner element sits outside the bounding box of the outer element, e.g. <rt> (ruby text, sits above/below) or a <span> with font-size > 100%. END_PUBLIC Demo of <rt> and font-size problems: http://go/cpl/ruby-backgrounds/1 Demo of CSS inheritance: http://go/cpl/css-inheritance/1 PiperOrigin-RevId: 320915999
ibaker committed
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| src | Loading commit data... | |
| README.md | Loading commit data... | |
| build.gradle | Loading commit data... |