Skip to content

[specs notes] float-reference: inline #1

@JulieBlanc

Description

@JulieBlanc

specification: https://css-print-lab.github.io/specs/notes-in-css-print/

We proposed float-reference: line for marginal notes, but I see that in the CSS Page Floats (working draft), they already propose lfloat-reference: inline`. That makes sense, and it seems logical to align with the CSS Page Floats proposal.

I've updated it accordingly, but what do you think?

This leads me to another question. In our proposal, we always place float-reference inside the @note-area.
For example:

@page {
    @note-area {
        content: element(sidenotes, all-once);
        float: top right;
        float-reference: page;
    }
}

note.sidenote {
    position: note(sidenotes);
}

However, for float-reference: inline, our examples placed it at the note level:

.marginal-note.note {
    position: note(marginal-note);
    float-reference: inline;
    padding-right: 10mm;
}

@page {
    @note-area {
        content: element(sidenotes, all-once);
        float: top left;
    }
}

With reflection, it seems more consistent to have float-reference: inline declared inside the @note-area, doesn't it?

But that brings us to another issue: what does the following example mean?

.marginal-note.note {
    position: note(marginal-note);
}

@page {
    @note-area {
        content: element(sidenotes, all-once);
        float: top left;
        float-reference: inline;
    }
}

This doesn’t seem logical, unless we say that float-reference: inline overrides the float: top values (left is still usefull).

If that's the case, it feels like, from a code perspective, float-reference: inline would effectively create multiple @note-area boxes. Which, incidentally, also happens with float-reference: column.

[Note that with all that, I now understand why they add float: bottom for @footnotes.]

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions