-
Notifications
You must be signed in to change notification settings - Fork 14
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
Specify the mapping of containing block to element #30
Comments
Thanks for the feedback! Interesting, anonymous layout objects are definitely a problem here. Any suggestions on how we can fix this? For example, could we consider the nearest element ancestor? |
Parent element (the parent of a textnode that's bound to the document tree is always an element) is easy enough to do. Would it produce the right behavior? One thing to consider: how do textnodes fundamentally differ from inline elements (replaced or non-replaced), apart from not being elements? |
Parent elements does not work like we'd like it to, for example consider the following paragraph:
Not sure I understand the message here. |
I think that question was due to not really checking how the association of text to containing block is used. Looks like it's pretty text-specific.... |
With respect to the proposal to use "nearest containing block ancestor" as the way to aggregate text nodes:
The containing block is a rectangle, not an element, and the mapping between rectangles and elements is not trivial
Can we specify the mapping from containing blocks to elements?
The text was updated successfully, but these errors were encountered: