overflow-inline
Baseline 2023Newly available
Since September 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
Die overflow-inline
CSS-Media-Feature kann verwendet werden, um zu testen, wie das Ausgabegerät Inhalte behandelt, die entlang der Inline-Achse über den initialen Enthaltungsblock hinausgehen.
Hinweis:
Die Eigenschaft overflow-inline
bestimmt nicht, ob ein Überlauf auftritt; vielmehr zeigt sie an, wie das Gerät mit diesem Überlauf umgeht. Typischerweise ist das Verhalten auf Bildschirmen in den meisten Browsern "scroll": Wenn Inhalte den verfügbaren horizontalen Platz überschreiten, ermöglicht das Gerät das Scrollen, um auf die überfließenden Inhalte zuzugreifen.
Syntax
Beispiele
HTML
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam ac turpis
eleifend, fringilla velit ac, aliquam tellus. Vestibulum ante ipsum primis in
faucibus orci luctus et ultrices posuere cubilia Curae; Nunc velit erat,
tempus id rutrum sed, dapibus ut urna. Integer vehicula nibh a justo imperdiet
rutrum. Nam faucibus pretium orci imperdiet sollicitudin. Nunc id facilisis
dui. Proin elementum et massa et feugiat. Integer rutrum ullamcorper eleifend.
Proin sit amet tincidunt risus. Sed nec augue congue eros accumsan tincidunt
sed eget ex.
</p>
CSS
p {
white-space: nowrap;
}
@media (overflow-inline: scroll) {
p {
color: red;
}
}
Ergebnis
Spezifikationen
Specification |
---|
Media Queries Level 4 # mf-overflow-inline |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
overflow-inline media feature |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support