Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Added new feature (attribute case insensitive) #306

Merged
merged 1 commit into from
Sep 5, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/content/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,20 @@ body {
|
[Plugin documentation](https://github.com/MattDiMu/postcss-replace-overflow-wrap)

## attribute case insensitive

Allows you to use case insensitive attributes.

```css
[frame=hsides i] {
border-style: solid none;
}
```

[Specification](https://www.w3.org/TR/selectors4/#attribute-case)
|
[Plugin documentation](https://github.com/Semigradsky/postcss-attribute-case-insensitive)

## @todo

Any omissions of the CSS specifications (even in draft) that are subject to be
Expand Down
3 changes: 3 additions & 0 deletions docs/content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ title: cssnext - Use tomorrow’s CSS syntax, today.
(<code>word-wrap</code> fallback)
</small>
</li>
<li class="r-Grid-cell r-minS--1of2">
<a href="/features/#attribute-case-insensitive">attribute case insensitive</a>
</li>
</ul>
<small
class="cssnext-FeaturesList-small"
Expand Down
5 changes: 5 additions & 0 deletions docs/content/playground.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@
/* overflow-wrap fallback */
body {
overflow-wrap: break-word;
}

/* attribute case insensitive */
[frame=hsides i] {
border-style: solid none;
}

</textarea>
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"pleeease-filters": "^3.0.0",
"postcss": "^5.0.4",
"postcss-apply": "^0.3.0",
"postcss-attribute-case-insensitive": "^1.0.1",
"postcss-calc": "^5.0.0",
"postcss-color-function": "^2.0.0",
"postcss-color-gray": "^3.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[data-foo=test i] {
display: block;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[data-foo=test],[data-foo=Test],[data-foo=tEst],[data-foo=TEst],[data-foo=teSt],[data-foo=TeSt],[data-foo=tESt],[data-foo=TESt],[data-foo=tesT],[data-foo=TesT],[data-foo=tEsT],[data-foo=TEsT],[data-foo=teST],[data-foo=TeST],[data-foo=tEST],[data-foo=TEST] {
display: block;
}
3 changes: 3 additions & 0 deletions src/features.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export default {
// https://npmjs.com/package/postcss-custom-selectors
customSelectors: (options) => require("postcss-custom-selectors")(options),

// https://npmjs.com/package/postcss-attribute-case-insensitive
attributeCaseInsensitive: (options) => require("postcss-attribute-case-insensitive")(options),

// https://npmjs.com/package/postcss-color-rebeccapurple
colorRebeccapurple: (options) => require("postcss-color-rebeccapurple")(options),

Expand Down