On 4/19/22 1:06 PM, David Baron wrote:
On Tue, Apr 19, 2022 at 10:32 AM Mike Taylor <[email protected]> wrote:


            Specification

    https://tabatkins.github.io/css-toggle/

    A question came up in Security & Privacy review today. Can you
    clarify what "persistent state" means in
    https://tabatkins.github.io/css-toggle/#toggles? I suspect we're
    not re-inventing cookies in CSS here, but can you help me
    understand what that means in the context of CSS toggles? Does it
    just mean that once set, other CSS properties can't influence the
    state? Or "persistent state (for the lifetime of the page)"?


I think what the "persistent state" bit is saying is that once a toggle is created on an element (by the toggle-root property), the toggle doesn't go away even if the toggle-root property changes.  It's definitely not something like cookies, since the state doesn't get transferred to other pages or to fresh loads of the same page.

(I haven't thought much about the question yet, but it's /possible/ that it might be something like form control state that gets persisted specially during back/forward navigation even when the entire page isn't cached.  I suspect that may cause more problems than it fixes, though.)

Thanks David - that's helpful.

--
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/873d29e0-fe67-5b3f-0e21-a3a39d572719%40chromium.org.

Reply via email to