← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 200
  1. Day 35: forgiving selectors

    There's a difference between listing selectors in :where(), :is(), and :has() and listing them in a regular selector list.

  2. Day 34: :is() or :where()

    Thoughts on when it’s better to use :is() over :where() and vice versa.

  3. You can use full math expressions in the comparison functions min(), max(), and clamp().

  4. Day 32: the clamp() function

    The clamp() function defines a minimum value, a preferred value, and a maximum value.

  5. I’ve teamed up with my friends at Smashing Magazine 😻 to share with you everything I know about web accessibility testing!

  6. Day 31: logical border properties

    Just like for margin or padding, there are also logical property variations for border properties.

  7. Day 30: the hwb() color function

    Like the lab() color function, hwb() is one of the more recent methods for defining colors in CSS.

  8. Day 29: !important custom properties

    Using !

  9. We already know that we can encapsulate styles within a web component and we know that web components inherit styles.

  10. Adjustable features of a variable font are called axes.

  11. Your account is permanently suspended

    On October 23rd I got shadowbanned on Twitter, followed by a permanent suspension on October 25th.

  12. Day 26: using combinators in :has()

    You already know that the :has() pseudo-class allows you to check whether a parent element contains certain children, but you can also make this selector more specific, or check other relations the element might have.

  13. Day 25: scrollbar gutters in body and html

    When I wrote about the scrollbar-gutter property, my first thought was “omg!

  14. Day 24: the backdrop-filter property

    The backdrop-filter property allows you to apply CSS filters to the area behind an element.

  15. Day 23: the lab() color function

    The lab() color function allows you to pick colors from the CIELAB color space, which is device-independant and covers the entire gamut (range) of human color perception.

  16. Day 22: the ::backdrop pseudo-element

    You can use the ::backdrop pseudo-element to style the backdrop of modal dialogs and elements which have been placed in fullscreen mode using the Fullscreen API.

  17. I broke the rules.

    When I opened Twitter on Monday morning, I saw this: After careful review, they determined that my account broke the Twitter Rules.

  18. Day 21: conic gradients

    You can create gradients with color transitions rotated around a center point, rather than radiating from the center, by using the conic-gradient() function.

  19. Day 20: the scrollbar-gutter property

    The scrollbar-gutter property allows you decide whether content within an element fills the total available space or if it stops at the scrollbar gutter.

  20. Day 19: the placeholder-shown pseudo-class

    You can use the :placeholder-shown pseudo-class to select input fields with a placeholder that haven't been filled out yet. input:placeholder-shown { outline: 5px solid blue; } <p> <label for="name">Name</label> <input type="text" id="name" placehol…

  21. We already know that we can encapsulate styles within a web component by adding elements along with the styles to the shadow DOM.

  22. You can use the :picture-in-picture pseudo-class to style an element, usually a <video>, which is currently in picture-in-picture mode (PIP).

  23. Day 16: the specificity of :has()

    Just like with :is() and :not(), the specificity of :has() is replaced by the specificity of the most specific selector in its selector list argument.

  24. Day 15: the :modal pseudo-class

    There are two methods you can use to open a <dialog> element, show() and showModal(). show() opens a dialog on top of the rest of the content, but you can still interact with content beneath. showModal() opens a modal dialog with a backdrop on top of the…

  25. There's an important difference between :is() and :where().

  26. The :where() and :is() pseudo-classes allow you to write large lists of selectors in a more compact form.

  27. Day 12: max() trickery

    I saw this interesting one-liner in a demo by Temani Afif. .wrapper { margin-inline: max(0px, ((100% - 64rem) / 2)); } It’s basically a shorter way of writing this: .wrapper { max-width: 64rem; margin: 0 auto; width: 100%; } It’s not up to me to…

  28. Functional color notations that existed before CSS Color Module Level 4 (rgb(), rgba(), hsl(), hsla()) used to only except comma-separated lists of arguments.

  29. Day 10: global styles and web components

    I was wondering what happens with HTML elements in web components when I add styles to the document.

  30. Day 9: the inset shorthand property

    The inset property is a shorthand for the top, right, bottom, and/or left properties.

  31. Day 8: nesting :has()

    The :has() pseudo-class cannot be nested; :has() is not valid within :has().

  32. Day 7: subgrids

    Subgrid allows a grid-item with its own grid to align with its parent grid (currently only in Firefox 71+ and Safari 16+).

  33. Day 6: the :has() pseudo-class

    :has() allows you to check whether a parent element contains specific children.

  34. Day 5: the max() function

    The max() function takes a comma separated list of expressions.

  35. Day 4: the min() function

    The min() function takes a comma separated list of expressions.

  36. Day 3: logical property shorthands

    If you use a shorthand property like margin with all 4 values, the properties will always be applied in the direction top - right - bottom - left, no matter the reading direction.

  37. Day 2: logical properties

    Logical properties are a new way of working with directions and dimensions, one that allows you to control layout through logical, rather than physical mappings.

  38. 100 Days Of More Or Less Modern CSS

    It’s time to get me up to speed with modern CSS.

  39. Day 1: custom properties and fallbacks

    You can pass a second value to the var() CSS function which acts as a fallback for when the property has not been set.

  40. Buttons and the Baader–Meinhof phenomenon

    Shortly after we got our new car, a Volkswagen T5, I noticed many people seemed to have the same car.

  41. Parents counting children in CSS

    The other day I was driving home when suddenly it hit me: We can use :has() to determine how many children a parent element has.

  42. outline is your friend

    If you open a plain HTML document with no CSS and you focus an interactive element like a button, link, or textarea, you’ll see that by default browsers use the outline property to highlight these elements.

  43. Historically, Lighthouse has analyzed the cold pageload of a page only.

  44. Divs are bad!

    Yes, clickbait, I’m so sorry!

  45. Please, stop disabling zoom

    I know that you’re not supposed to tell people what to do, but in this particular case I’m really tempted because recently I’ve noticed that a lot of websites are preventing users on mobile to zoom.

  46. This week I’ll be speaking at the Bonn Code Meetup about accessibility testing.

  47. Web Security Basics: XSS

    I decided to learn more about areas of web development I don’t know a lot about.

  48. Cascade Layers: First Contact

    Earlier this week I learned about CSS Cascade Layers and now I’m all hyped up because I really like the concept.

  49. CSS Specificity Demo

    I built an interactive demo to illustrate how specificity in CSS works.

  50. This is part 4 of my series Here’s what I didn’t know about… in which I try to learn new things about CSS.