Case-insensitive CSS attribute selectors
Including an `i` before the `]` in a CSS attribute selector causes the attribute value to be matched in an ASCII-case-insensitive manner. For example, `[b="xyz" i]` would match both `<a b="xyz">` and `<a b="XYZ">`.
:default CSS pseudo-class
The `:default` pseudo-class matches checkboxes and radio buttons which are checked by default, `<option>`s with the `selected` attribute, and the default submit button (if any) of a form.
CSS Generated content for pseudo-elements
Method of displaying text or images before or after the given element's contents using the ::before and ::after pseudo-elements. All browsers with support also support the `attr()` notation in the `content` property.
:in-range and :out-of-range CSS pseudo-classes
If a temporal or number `<input>` has `max` and/or `min` attributes, then `:in-range` matches when the value is within the specified range and `:out-of-range` matches when the value is outside the specified range. If there are no range constraints, then neither pseudo-class matches.
:placeholder-shown CSS pseudo-class
Input elements can sometimes show placeholder text as a hint to the user on what to type in. See, for example, the placeholder attribute in HTML5. The :placeholder-shown pseudo-class matches an input element that is showing such placeholder text.
CSS 2.1 selectors
Basic CSS selectors including: `*` (universal selector), `>` (child selector), `:first-child`, `:link`, `:visited`, `:active`, `:hover`, `:focus`, `:lang()`, `+` (adjacent sibling selector), `[attr]`, `[attr="val"]`, `[attr~="val"]`, `[attr|="bar"]`, `.foo` (class selector), `#foo` (id selector)
CSS3 attr() function for all properties
While `attr()` is supported for effectively all browsers for the `content` property, CSS Values and Units Level 5 adds the ability to use `attr()` on **any** CSS property, and to use it for non-string values (e.g. numbers, colors).
hidden attribute
The `hidden` attribute may be applied to any element, and effectively hides elements similar to `display: none` in CSS.
Scoped attribute
Deprecated method of allowing scoped CSS styles using a "scoped" attribute. Now [removed from the specification](https://github.com/whatwg/html/issues/552) and replaced by the [@scope CSS rule](/css-cascade-scope).
SVG vector-effect: non-scaling-stroke
The `non-scaling-stroke` value for the `vector-effect` SVG attribute/CSS property makes strokes appear as the same width regardless of any transformations applied.
CSS -webkit-user-drag property
The non-standard `-webkit-user-drag` CSS property can be used to either make an element draggable or explicitly non-draggable (like links and images). See the standardized [draggable attribute/property](/mdn-api_htmlelement_draggable) for the recommended alternative method of accomplishing the same functionality.
css selector: attribute selector (`[attr=value]`)
css selector: attribute selector (`[attr=value]`): case-sensitive modifier (`s`)
types: `attr()`
types: `attr()`: `<attr-name>` accepts namespaces
types: `attr()`: `<declaration-value>`
types: `attr()`: fallback values (`<declaration-value>`)
types: `attr()`: raw-string
types: `attr()`: `type(<syntax>)` function
types: `attr()`: `type(<syntax>)` function: `<angle>`
types: `attr()`: `type(<syntax>)` function: `<color>`
types: `attr()`: `type(<syntax>)` function: `<custom-ident>`
types: `attr()`: `type(<syntax>)` function: `<ident>`
types: `attr()`: `type(<syntax>)` function: `<image>`
types: `attr()`: `type(<syntax>)` function: `<integer>`
types: `attr()`: `type(<syntax>)` function: `<length>`
types: `attr()`: `type(<syntax>)` function: `<length-percentage>`
types: `attr()`: `type(<syntax>)` function: `<number>`
types: `attr()`: `type(<syntax>)` function: `<percentage>`
types: `attr()`: `type(<syntax>)` function: `<resolution>`
types: `attr()`: `type(<syntax>)` function: `<string>`
types: `attr()`: `type(<syntax>)` function: `<time>`
types: `attr()`: `type(<syntax>)` function: `<transform-function>`
javascript statement: import: import attributes with `assert` syntax (formerly import assertions): `assert {type: 'css'}`
javascript statement: import: import attributes (`with` syntax): `with {type: 'css'}`
46 results found.