https://htmx.org logo
Join Discord
Powered by
# missing_dot_css
  • s

    swift-translator-13366

    10/25/2022, 11:13 AM
    Oh right,
    [1
    and
    1]
    are separate classes, my bad
  • g

    gorgeous-airport-54386

    10/25/2022, 11:51 AM
    https://tabatkins.github.io/specs/css-anchor-position/ > unofficlal draft sad
  • g

    gorgeous-airport-54386

    10/25/2022, 11:52 AM
    also this proposal is really hard to search for
  • m

    mysterious-toddler-20573

    10/25/2022, 1:27 PM
    awesome!
  • g

    gorgeous-airport-54386

    10/25/2022, 2:51 PM
    YOOOOOO https://developer.mozilla.org/en-US/docs/Web/CSS/margin-trim
  • g

    gorgeous-airport-54386

    10/25/2022, 2:52 PM
    sadge
  • g

    gorgeous-airport-54386

    10/25/2022, 2:52 PM
    I have to work around the lack of this so hard in missing.css
  • m

    mysterious-toddler-20573

    10/25/2022, 3:00 PM
    of all sad words of tongue and pen the saddest are these browser support is not, again
  • g

    gorgeous-airport-54386

    10/25/2022, 4:15 PM
    update: looks like if the start line and end line is the same, the end line is treated as the next so
    [1 1]
    and
    [1 2]
    are the same. you can also just use
    [1
  • s

    swift-translator-13366

    10/25/2022, 4:43 PM
    Cool. In any case I still think it would be nice to specify things based on columns rather than grid lines. Is that something you'd consider?
  • g

    gorgeous-airport-54386

    10/25/2022, 4:45 PM
    it works out to the same thing
  • g

    gorgeous-airport-54386

    10/25/2022, 4:45 PM
    if you take it as an exclusive interval
  • g

    gorgeous-airport-54386

    10/25/2022, 4:45 PM
    maybe we should change the syntax to
    [2 4)
    to make that clear /s
  • s

    swift-translator-13366

    10/25/2022, 5:01 PM
    Only in single-column cases though, right? E.g. if in your example, the middle element is
    [2 5]
    but that doesn't mean it covers columns 2 to 5; it covers columns 2 to 4. I know you were joking about the
    N)
    , but if you chose to explicitly adopt the mental model of column-based specifiers, you could make it work by shifting the
    N]
    classes to mean the N+1st grid line. (Does that make sense?)
  • g

    gorgeous-airport-54386

    10/25/2022, 5:02 PM
    oh yeah that'd work
  • g

    gorgeous-airport-54386

    10/25/2022, 5:02 PM
    cool
  • s

    swift-translator-13366

    10/25/2022, 5:02 PM
    🤩
  • g

    gorgeous-airport-54386

    10/25/2022, 5:02 PM
    how do i add you as a contributor to my git commit
  • s

    swift-translator-13366

    10/25/2022, 5:03 PM
    Hahah FYI it's a
    Co-authored-by: Name <email>
    footer at the bottom of the commit message, but really, don't worry about that 🙂
  • s

    swift-translator-13366

    10/25/2022, 5:04 PM
    (Ok I'll be honest, I just don't want to be the butt of the next erasure joke 😛 )
  • g

    gorgeous-airport-54386

    10/25/2022, 5:08 PM
    too late
  • g

    gorgeous-airport-54386

    10/25/2022, 5:45 PM
    so what do I do with rows?
  • s

    swift-translator-13366

    10/25/2022, 6:12 PM
    Are you asking for equivalent syntax for the class names? Or something else?
  • g

    gorgeous-airport-54386

    10/25/2022, 6:12 PM
    syntax
  • g

    gorgeous-airport-54386

    10/25/2022, 6:12 PM
    ^2 1_
    looks awful
  • g

    gorgeous-airport-54386

    10/25/2022, 6:13 PM
    also: media query breakpoints.
    s[1 1]s
    having to specify them for both classes is not nice
  • s

    swift-translator-13366

    10/25/2022, 6:15 PM
    I can't think of anything off the top of my head. I suspect we may have to let go of the clever 1-character (pre/suf)fixes and just use words, but maybe there's a way to make it work 🤔
  • g

    gorgeous-airport-54386

    10/25/2022, 6:17 PM
    the consistent thing to do would be to use
    grid-column-start:1 grid-column-end:1
  • g

    gorgeous-airport-54386

    10/25/2022, 6:18 PM
    but that's really long
  • s

    swift-translator-13366

    10/25/2022, 6:21 PM
    or use 144 classes /s
1...323334...44Latest