RE: [css-regions] margin of first paragrah of a region

> I'm not sure it can be done at this very moment.
> But the way I would see it done, would be via some next-level fragmentation-specific pseudo-class. Something like (using the older @region syntax that is likely to re-become the current one):
>
> @region .region {
> p:first-fragment /* or p:first-visual-child */ {
> margin-top: 0;
> }
> }
>
> Makes sense?

Yes, it does. But how you actually define the first element is probably tricky. Out-of-flow elements may perturbate the whole thing, but maybe we could just rule them out of the count, but that makes this stuff a bit harder.

Anyway, the idea was to get the use-case logged, so that we could work on it when we'll have the opportunity to up the spec level. 		 	   		  

Received on Monday, 19 August 2013 16:18:50 UTC