There are no tracking or monitoring cookies on this site. There are only cookies used for documentation examples related to cookies.Close
Processing...
This may take a few seconds.

if-cookie-exists

Syntax

if-cookie-exists: (cookie name);

This conditional action will return true if the specified cookie exists.

if-cookie-exists

body:not-if-cookie-exists(cookieNoticeSeen):init {
    .cookieNotice {
        display: block;
        opacity: 1 after 100ms;
    }
}

.cookieNoticeOk:click {
    .cookieNotice {
        opacity: 0;
        display: none after 500ms;
        set-cookie: name(cookieNoticeSeen) value("y") expires("Year") path("/") sameSite("Strict") secureIfHttps;
    }
}