CARVIEW |
Select Language
HTTP/2 200
date: Thu, 09 Oct 2025 08:58:16 GMT
content-type: text/html
content-encoding: gzip
last-modified: Sat, 15 Jul 2023 03:16:32 GMT
cache-control: max-age=2592000, public
expires: Sat, 08 Nov 2025 08:58:16 GMT
vary: Accept-Encoding
access-control-allow-origin: *
x-request-id: 98bcacd95ec58839
strict-transport-security: max-age=15552015; preload
x-frame-options: deny
x-xss-protection: 1; mode=block
cf-cache-status: MISS
set-cookie: __cf_bm=tO_GH1KlXxiMBcZqn9KzNXuxSuwFJk_y10fZXqN0ZxA-1760000296-1.0.1.1-xdfnJhr5.x9bzWzScUiglzEO9xPNFvIJg.mUXRsbrclhhy6o9HaLBQYKlDNhj3tyyIr5VSNofyXeS9ONabBAkTzN7xUF0Kf_5E_mZ9RRfMc; path=/; expires=Thu, 09-Oct-25 09:28:16 GMT; domain=.w3.org; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 98bcacd95ec58839-BLR
alt-svc: h3=":443"; ma=86400
Re: [css3-flexbox] absolutely positioned flex item should not have side effect on space distribution from Kang-Hao (Kenny) Lu on 2012-07-18 (www-style@w3.org from July 2012)
Re: [css3-flexbox] absolutely positioned flex item should not have side effect on space distribution
- From: Kang-Hao (Kenny) Lu <kennyluck@csail.mit.edu>
- Date: Wed, 18 Jul 2012 22:44:47 +0800
- To: Alex Mogilevsky <alexmog@microsoft.com>
- CC: John Hax <johnhax@gmail.com>, "www-style@w3.org" <www-style@w3.org>
- Message-ID: <5006CBDF.2050008@csail.mit.edu>
(12/07/12 0:33), Alex Mogilevsky wrote: > It is possible to define it that way, it was that way at some point. > However there are some non-trivial details to be defined, the > position in the middle of the space seems as random as any other, it > is more complicated to implement, all for the benefit of something > that nobody could come up with a sensible use case for. Do we have use cases for the 'auto' location of a absolutely positioned flex item then? And what are they? I mean, why can't we just say there are no placeholders and the 'auto' location is that of the flex container? This is alternative proposal A. > There are more details to be defined if we were taking this route. > What happens if there are multiple positioned items with > placeholders? Here is a concrete proposal B: Add the following prose to each of the description of 'space-between' and 'space-around': | In the above description, flex items generated by placeholders left | by absolutely positioned children of the flex container are ignored | and spaces between non-placeholder flex items are added as if half | of the space is added to both non-placeholder flex items. Note: | This means, for example, a placeholder in between two flex items | would be located exactly in the middle of the margin edges. Examples ('space-between'): A-|-B--C A-||-B--C |A--B--C| where '|' stands for placeholders and '-' stands for the "half spaces" added. > What happens if the position element is at the end of a line in > multiline flexbox – which line does it go to? The previous line. Because the prose takes an effect after flex items in a flex line is determined, and a flex item of zero flex basis would always goes to the previous line. I don't think it is hard to define, but I don't how hard it is in terms of implementation. > We have chosen the simplest approach in the case where other > approaches involved non-zero additional complexity and no > demonstrated benefits. With the "no change" proposal being C. My preference is B > A > C I am curious what Web developers would prefer though, in particular A vs. C. Cheers, Kenny
Received on Wednesday, 18 July 2012 14:45:21 UTC