ppk 🇪🇺

@quirksmode.org

technical writer - #browser expert - aspiring #css nerd - #cssday and #perfnow conference organiser - #history geek - former Later Roman Empire specialist - native of #Amsterdam - https://quirksmode.org

So my Firefox 155 on one of my computers suddenly refuses to load all kinds of files, among which all style sheets, citing CORS errors and whatnot. On my other computer it works fine.

Style queries for nested breakpoints I plan to use style containers for centralised breakpoint definitions and went down a rabbit hole. Do you know what a container is? And that size containers are the exception rather than the rule in container land? quirksmode.org/quirksblog/2...

Style queries for nested breakpoints

I plan to use style containers for centralised breakpoint definitions, combining style queries with CSS nesting. Also, I went down a rabbit hole. Do you know what a container is? And that size contain...

quirksmode.org

I plan to use style containers for centralised breakpoint definitions. This can be a useful technique for a while. Also, it led me to container research. Did you know that size containers, the ones with the cqw goodness, are the exception in container land? quirksmode.org/quirksblog/2...

Using style queries

I plan to use style containers for centralised breakpoint definitions. This can be a useful technique for a while. Also, it led me down a rabbit hole of container research. Do you know what a containe...

quirksmode.org

Fascinating as they are, I will leave the results of this bit of code aside for now so that I can maybe finish the article today. p.loop { /* In parent --screenSize is 5 */ @container style(2 <= --screenSize <= 5) { *:has(> &) { --screenSize: 1; } } }

This afternoon I wrote the first draft of the style query article. Progress was made. Tonight I removed about 20%. Great progress is being made! I just hope I have enough time tomorrow to finish it.

Interesting. .container { container-name: test; --container: 'container'; } .test { @container test style(--container: 'container') { background: #f4607b; &::after { background: #f6d781; } } } <p class="test container"> gets no bgcolor, but the ::after does.

Interesting. .container { container-name: test; --container: 'container'; } .test { @container test style(--container: 'container') { background: #f4607b; &::after { background: #f6d781; } } } <p class="test container"> gets no bgcolor, but the ::after does.

My question for today is about STYLE QUERIES. How are they being used these days? Any good articles? (I don't care how they work, but how we use them. Also, no container queries, just style queries.)

Why doesn't this work? @supports (order: sibling-count()) ){ --sibling: 'sibling-count' } @supports not (order: sibling-count()) ){ --sibling: 'NOT sibling-count' } /* later */ content: 'Browser supports: ' var(--sibling,' no sibling data '); I get 'no sibling data'.

My question for today is about STYLE QUERIES. How are they being used these days? Any good articles? (I don't care how they work, but how we use them. Also, no container queries, just style queries.)

Gotta hand it to whichever AI runs in the Google Search: you're on the spot. "Combining container-type: inline-size with a grid using grid-template-columns: repeat(auto-fit, minmax(...)) triggers a WebKit bug where the column widths collapse to 0" It does indeed.

Back in the nineties it was decided that all websites should be free. Part of that was the absence of easy payment methods, part was FOSS influence. Are there any other important causes? Also, is there a good overview article somewhere?