-
Notifications
You must be signed in to change notification settings - Fork 719
[css-inline] Allow background of an inline area to extend to before-and after-edges of the line area #1974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@palemieux what should happen when the line boxes are actually separated (here by a float outside the paragraph)? Is the only requirement that the background extend to the edges, or should we define it to create a contiguous background area in a case like this? |
@astearns What would the background look like in the illustration above with zero padding? |
@astearns Thanks! and what would be the line boxes in that example? In particular, is the after edge of the line box that contains "some" aligned with the bottom of the green square? |
No, this is a case where line box stacking does not give a result where the before and after edges coincide. Each line box is exactly the same height - the float rules just move the second line down below the float |
So, in this scenario and according to the current definition, the background would not be continuous. The result would be presumably different if the green square were inline the paragraph (instead of a float). |
This case does not generally arise in subtitles and captions; if it did, I would expect a gap in the background areas, i.e. the rule to align the span background before and after edges with the line area before and after edges would still seem acceptable to me. The alternative might be a very large background block containing no foreground content. To flip that around, what if someone wanted that background block to be contiguous in the block progression direction but tight to line areas in the inline progression direction? I don't see how that could sensibly be done - it's asking to align not with the current line area's before and after edges but the previous line area's after edge and the next line area's before edge. I suppose that could be another keyword option, but I'd give it lower priority. |
The Working Group just discussed The full IRC log of that discussion |
The Working Group just discussed
The full IRC log of that discussion |
OK, I checked in edits for this. The property is called |
Uh oh!
There was an error while loading. Please reload this page.
Per the 20171109 joint TTWG/CSS meeting
As illustrated at fillLineGap.pdf, a common captioning style requires the background of inline areas to extend to the before-and after-edges of the containing line area. This styling capability is not currently supported by CSS.
This capability mirrors the
itts:fillLineGap
styling attribute at https://www.w3.org/TR/ttml-imsc1.0.1/#itts-fillLineGapThe text was updated successfully, but these errors were encountered: