This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the spec changes.
Summary
The box-suppress
CSS property controls the box generation of an element.
If the computed value of display-outside
is none
, the computed value of box-suppress
is discard
. Otherwise, the computed value is the specified value.
Initial value | show |
---|---|
Applies to | all elements |
Inherited | no |
Media | all |
Computed value | see prose |
Animatable | no |
Canonical order | the unique non-ambiguous order defined by the formal grammar |
Syntax
/* Keyword values */ box-suppress: show; box-suppress: discard; box-suppress: hide; /* Global values */ box-suppress: inherit; box-suppress: initial; box-suppress: unset;
Values
show
- The element generates boxes as normal, per its
display-*
properties. discard
- The element generates no boxes at all.
hide
- The element generates boxes as normal, but those boxes do not participate in layout in any way, and must not be displayed.
- For the purpose of any layout-related information, such as querying for the computed value of the element's
width
property, it must be treated as if it did not generate any boxes. - Properties that rely on boxes but do not rely on layout, such as animations,
counter-increment
, etc., must work as normal on this element and its descendants.
Formal syntax
show | discard | hide
Specifications
Specification | Status | Comment |
---|---|---|
CSS Display Module Level 3 The definition of 'box-suppress' in that specification. |
Working Draft | Initial definition |
Browser compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | Not supported | Not supported | Not supported | Not supported | Not supported |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | Not supported | Not supported | Not supported | Not supported | Not supported |
Document Tags and Contributors
Tags:
Contributors to this page:
Sebastianz,
teoli
Last updated by:
Sebastianz,