Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upTable cellpadding attribute #12609
Table cellpadding attribute #12609
Comments
|
Picked this up again recently. Current WIP handles the example above correctly. https://github.com/adamncasey/servo/tree/feature/cellpadding It turned out that cellspacing is somewhat different to cellpadding since cellpadding is actually applied to the cells in the table, not the table itself. The current implementation looks up the table's cellspacing value when Another possible implementation is to pass some kind of reference down this chain as each object is created. The reference needs to be mutable by the table, as this property can be updated. This would probably increase memory by a few bytes per table section/row/cell with the benefit that each time this HN Top bar after/before patch: Aiming to put in PR in the next few days |
|
#18161 is a PR for that. |
Although fairly legacy, it probably makes sense for servo to support the
cellpaddingattribute of<table>.The above example renders as a single column of red in Firefox, Chrome & Edge.
https://html.spec.whatwg.org/multipage/rendering.html#tables-2 describes how cellpadding should be interpreted.
Related to #11821 in the sense that this prevents HN's top bar from being rendered correctly.
I'm hoping to give this a go by following how
cellspacingwas implemented in #4417 . Some of that has been moved around quite a bit since though.