[css-display] Terminology: is replaced content a type of independent formatting context? #4539
Labels
Closed Accepted as Editorial
Commenter Satisfied
Commenter has indicated satisfaction with the resolution / edits.
css-display-3
Current Work
I really like that this spec introduces the concept of 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 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 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 and grid items 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 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.)
The text was updated successfully, but these errors were encountered: