RE: [css-position] Sticky positioning table elements

Your understanding and intuition is right. There's no intend to restrict position sticky to rows, columns etc. and not table cells. This section of the spec is under development and soon should have a clearer text that in particular will address your point.

Thanks,
Rossen

From: Jonathan Rimmer [mailto:jon.rimmer@gmail.com]
Sent: Monday, October 13, 2014 2:26 AM
To: www-style list
Subject: [css-position] Sticky positioning table elements

I was looking as some polyfills for position: sticky, and I noticed one of the newest[1] recently backed out support for sticky table elements with the explanation that " Spec says table cells are not eligible for position: sticky"[2]. That didn't seem right, but the spec text does read as follows:

" The effect of 'position: sticky' on table elements is the same as for 'position: relative'"[3]

Now, I can't believe this is intended to mean that sticky positioning should replicate the behaviour of relative positioning when applied to table elements. I presume it's referring the applicability of sticky behaviour on the different table elements matching that of relative positioning, e.g. rows and cells can be stuck, but columns can't. But I can see why people would read it the other way.

If sticky positioning *is* intended to work for table elements, could the spec text be updated to make that clear? Or at least, could I get a confirmation on this list from the editors that that is the intention, which I can point the author of the polyfill to?

If sticky positioning *isn't" intended to work for table elements, well... I shouldn't need to point out how utterly *insane* that would be. But I can't believe that is the case.

[1] https://github.com/wilddeer/stickyfill
[2] https://github.com/wilddeer/stickyfill/releases/tag/1.1
[3] http://dev.w3.org/csswg/css-position/#position-property

Thanks,
Jon

Received on Thursday, 16 October 2014 05:25:28 UTC