Skip to content

Commit 2124961

Browse files
committed
Added note about ~= selector
1 parent 55500ff commit 2124961

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ More demos and information: http://marcj.github.io/css-element-queries/
4848
}
4949
```
5050

51+
As you can see we use the `~=` [attribute selector](https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors).
52+
Since this css-element-queries polyfill adds new element attributes on the DOM element
53+
(`<div class="widget-name" min-width="400px 700px"></div>`) depending on your actual CSS,
54+
you should always use this attribute selector (especially if you have several element query rules on the same element).
55+
5156
```html
5257
<div class="widget-name">
5358
<h2>Element responsiveness FTW!</h2>

0 commit comments

Comments
 (0)