Anchoreum: A game for learning CSS anchor positioning

  • If this accepts Firefox and Safari then it could be a great addition to "intro to web dev" tutorials

    CSS Flex https://flexboxfroggy.com/

    CSS Grid https://cssgridgarden.com/

    CSS selectors https://flukeout.github.io/

  • Neat. The museum framing is cute, and well executed with the footsteps sound between levels.

    On level 20, if I set `position-try-fallbacks: flip-inline;` and drag the anchor to the top, something weird happens: the label stays on top, but is also mirrored below the anchor, except with no text or background, just a border and a translucent frame. Latest Chrome (on Ubuntu, but I don't think that matters here). Is this a Chrome bug? A bug in Anchoreum? In dev tools, it looks like it's an Anchoreum issue, because there's a separate element in the DOM.

    Edit: also happens on level 25 without changing anything if I drag the anchor to the left.

    Edit 2: ah, I think that area is where you're _supposed to_ place the anchor. It's not very clear from the text.

  • I suppose fixing CSS itself to be predictable would be too hard? :)

  • Pretty neat. But there doesn't seem to be any way to select or style the anchored element based on which fallback position it is in? This would seem to preclude adding a directional arrow to it, which is a somewhat baseline feature for things like tooltips.

  • Seams not supported in firefox

  • Great, yet another feature Firefox doesn't support... I really try to not use Chrome, but I run into this sort of issue a lot.

  • a very good game to learn css

  • And no answers, huh? I'm stuck on 38.

    Edit: it doesn't mention that `anchor()` can accept an anchor name, which is kind of important for this.

  • honestly idk if there is any reason anyone should be learning CSS anymore

  • When will they realize that layout is fundamentally a linear problem, which only needs a "constraint" as a building block?

    That all these stupid width-basis-fit-minmax-fr-anchor-span combinations boil down to "Σ(aₙxₙ) ≤ b" and a couple of specialized distributors?

    How many half-assed incantations and reiterations it will take?

    Jesus Christ.