Re: [csswg-drafts] [cssom-view] offsetTop of <colgroup>, <col> and <option> are incompatible across engines.

The spec defines what you should do here, but I don't know which browser (if any) follows the spec text.

> The position of any table-cell, table-track, or table-track-grouping box within the table is defined as the rectangle whose:
> - width/height is the sum of: 
>   - the widths/heights of all spanned visible columns/rows 
>   - the horizontal/vertical border-spacing times the amount of spanned visible columns/rows minus one 
> - left/top location is the sum of: 
>   - for top: the height reserved for top captions (including margins), if any 
>   - the padding-left/padding-top and border-left-width/border-top-width of the table 
the widths/heights of all previous visible columns/rows 
>   - the horizontal/vertical border-spacing times the amount of previous visible columns/rows plus one 
> 
> For table-track and table-track-grouping boxes, all tracks of the opposite direction to the grouping are considered spanned. For instance, a table-header-group is considered to span all the columns, and a table-column-group is considered to span all the rows. 


-- 
GitHub Notification of comment by FremyCompany
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3019#issuecomment-413694755 using your GitHub account

Received on Thursday, 16 August 2018 21:47:12 UTC