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

Indeed, there are a lot of details to be flushed out.

Alan, could you please make a note for this for the next level of Regions/Fragmentation? I don't have editing permissions for the css-regions-4 page on CSSWG wiki.

Mihai Balan | Quality Engineer @ Web Engine team |  mibalan@adobe.com | +4-031.413.3653 / x83653 | Adobe Systems Romania


-----Original Message-----
From: François REMY [mailto:francois.remy.dev@outlook.com] 
Sent: Monday, August 19, 2013 7:18 PM
To: Mihai Balan; www-style@w3.org; Mihnea-Vlad Ovidenie
Cc: Laurence Mclister; Sylvain Galineau
Subject: 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 Tuesday, 20 August 2013 10:52:01 UTC