W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2019

[csswg-drafts] [css-display] Terminology: is replaced content a type of independent formatting context? (#4539)

From: Simon Sapin via GitHub <sysbot+gh@w3.org>
Date: Mon, 25 Nov 2019 17:50:48 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-528242309-1574704247-sysbot+gh@w3.org>
SimonSapin has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-display] Terminology: is replaced content a type of independent formatting context? ==
I really like that this spec introduces the concept of [independent formatting context](https://drafts.csswg.org/css-display-3/#independent-formatting-context). CSS 2 went through some convoluted paraphrases when it meant this.

I have a terminology question that likely doesn’t have any direct normative consequence. Is it useful to think of [replaced content](https://drafts.csswg.org/css-display-3/#replaced-element) as one among other types of independent formatting context?

Declaring it is seems to simplify a model such that the behavior of a box that [establishes an independent formatting context](https://drafts.csswg.org/css-display-3/#establish-an-independent-formatting-context) is entirely determined by its context (and, for flow layout, its outer display type) and its type of independent FC.

On the other hand, [flow layout](https://drafts.csswg.org/css2/visudet.html) and [grid items](https://drafts.csswg.org/css-grid/#grid-item-sizing) both specify different sizing rules for replaced v.s. non-replaced content. So perhaps it’s best to keep the concept of independent FC for non-replaced content? ([Tables in CSS2](https://drafts.csswg.org/css2/tables.html#table-display) however specifically call out replaced table cells as no different from other table cells. Flexbox doesn’t specify anything specific to replaced flex items.)

(The context of this question is that we’re reconsidering the structure and names of some Rust type inside Servo’s layout code.)

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4539 using your GitHub account
Received on Monday, 25 November 2019 17:50:50 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:56 UTC