W3C home > Mailing lists > Public > www-style@w3.org > August 2013

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

From: Mihai Balan <mibalan@adobe.com>
Date: Tue, 20 Aug 2013 11:51:31 +0100
To: François REMY <francois.remy.dev@outlook.com>, "www-style@w3.org" <www-style@w3.org>, Mihnea-Vlad Ovidenie <mihnea@adobe.com>, Alan Stearns <stearns@adobe.com>
CC: Laurence Mclister <lmcliste@adobe.com>, Sylvain Galineau <galineau@adobe.com>
Message-ID: <32E5AE8565CC6142BA0AAFA5A95697E04D24267E4D@eurmbx01.eur.adobe.com>
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

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:31 UTC