Re: [csswg-drafts] [selectors] New selector to facilitate utility classes (`[name~^=value]`? `.prefix-*`?) (#10001)

Herhangi bir seçicide daha iyi seçiş yapabilmek için düşündüğüm yöntem şöyle: (The method I think of to make a better selection in any selector is as follows:)

# css
```css
div[class^="abc" + * ] {
  background: #ff0000;
}

div[class$="abc" + * + "z" ] {
  background: #aa0000;
}

div[class*="abc" + ** + "z"  ] {
  background: #bbbb00;
}

div[class*="abc" + *2 + "z"  ] {
  background: #ccc333;
}

div[class*="abc" + *2* + "z"  ] {
  background: #6789ab;
}
```
# html
```html
<div class="abcde"></div>
<div class="abcdexyz"></div>
<div class="abcdz"></div>
<div class="abcdez"></div>
<div class="abcdefghz"></div>
``` 

Kodları okuyarak anlayamıyorsanız ayrıntılı olarak anlatabilirim. (If you cannot understand by reading the codes, I can explain in detail.)

-- 
GitHub Notification of comment by volkantash
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10001#issuecomment-2008483442 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 20 March 2024 01:10:48 UTC