tiflolinux.org - GNU Social
  • Login

Bienvenido

  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Adrian Cochrane (alcinnz@floss.social)'s status on Friday, 27-Jan-2023 21:14:58 CET Adrian Cochrane Adrian Cochrane

    CSS is a fascinating language! Very straightforward to implement, even if a bit weird.

    After lexing there's no need for backtracking, since its very prefix-heavy. Occasionally infix for media queries or math().

    It degrades gracefully (unless you're targetting Dillo browser) so you shouldn't have to worry about whether browsers support any given feature.

    Interpreting it involves little more than a filtered & weighted deduplication. With most of the optimizing going into filtering.

    In conversation Friday, 27-Jan-2023 21:14:58 CET from floss.social permalink
    • Adrian Cochrane (alcinnz@floss.social)'s status on Friday, 27-Jan-2023 21:17:41 CET Adrian Cochrane Adrian Cochrane
      in reply to

      Design-wise CSS represents a design-negotiation between your device (represented by the useragent stylesheet), the reader, & the publisher. Though in fearing The Cascade (aforementioned weighting) & not showing an understanding of HTML, publishers are making it harder for the others to have their say.

      So please, learn CSS Cascade Layers (which are available in browsers now, including mine) & HTML!

      In conversation Friday, 27-Jan-2023 21:17:41 CET permalink
    • Adrian Cochrane (alcinnz@floss.social)'s status on Friday, 27-Jan-2023 21:43:18 CET Adrian Cochrane Adrian Cochrane
      • Ekaitz Zárraga 👹

      @ekaitz_zarraga Here's MDN: https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Cascade_layers
      https://developer.mozilla.org/en-US/docs/Web/CSS/@layer

      In conversation Friday, 27-Jan-2023 21:43:18 CET permalink
    • Adrian Cochrane (alcinnz@floss.social)'s status on Friday, 27-Jan-2023 22:54:16 CET Adrian Cochrane Adrian Cochrane
      • Ekaitz Zárraga 👹

      @ekaitz_zarraga

      at-import would've been easier if I wasn't implementing my engine in Haskell, but if you're going to remotely fetch multiple stylesheets anyways I've got no complaint... Just if you're worried about performance please don't nest CSS imports!

      P.S. You may want to combine at-import with Cascade Layers to avoid conflicts, there's syntax for that.

      In conversation Friday, 27-Jan-2023 22:54:16 CET permalink
    • Adrian Cochrane (alcinnz@floss.social)'s status on Friday, 27-Jan-2023 23:22:25 CET Adrian Cochrane Adrian Cochrane
      • Ekaitz Zárraga 👹

      @ekaitz_zarraga To me this makes no difference, they both parse to the same thing in Haskell Stylist.

      In conversation Friday, 27-Jan-2023 23:22:25 CET permalink
    • Adrian Cochrane (alcinnz@floss.social)'s status on Friday, 27-Jan-2023 23:44:23 CET Adrian Cochrane Adrian Cochrane
      • Ekaitz Zárraga 👹

      @ekaitz_zarraga If you at-import a stylesheet which at-imports additional ones, sure. Nothing the browser can do to optimize that, if you care about performance avoid it!

      In conversation Friday, 27-Jan-2023 23:44:23 CET permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

tiflolinux.org - GNU Social is a social network, courtesy of tiflolinux.org. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All tiflolinux.org - GNU Social content and data are available under the Creative Commons Attribution 3.0 license.