forked from dart-lang/web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcss_conditional_5.dart
63 lines (56 loc) · 2.11 KB
/
css_conditional_5.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
//
// API docs from [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web).
// Attributions and copyright licensing by Mozilla Contributors is licensed
// under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/.
// Generated from Web IDL definitions.
// ignore_for_file: unintended_html_in_doc_comment
@JS()
library;
import 'dart:js_interop';
import 'css_conditional.dart';
/// The **`CSSContainerRule`** interface represents a single CSS rule.
///
/// An object of this type can be used to get the query conditions for the ,
/// along with the container name if one is defined.
/// Note that the container name and query together define the "condition text",
/// which can be obtained using [CSSConditionRule.conditionText].
///
/// ---
///
/// API documentation sourced from
/// [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/CSSContainerRule).
extension type CSSContainerRule._(JSObject _)
implements CSSConditionRule, JSObject {
/// The read-only **`containerName`** property of the [CSSContainerRule]
/// interface represents the container name of the associated CSS at-rule.
///
/// For example, the value of `containerName` for the below is `sidebar`:
///
/// ```css
/// @container sidebar (min-width: 700px) {
/// .card {
/// font-size: 2em;
/// }
/// }
/// ```
external String get containerName;
/// The read-only **`containerQuery`** property of the [CSSContainerRule]
/// interface returns a string representing the container conditions that are
/// evaluated when the container changes size in order to determine if the
/// styles in the associated are applied.
///
/// For example, the value of `containerQuery` for the below is `(min-width:
/// 700px)`:
///
/// ```css
/// @container sidebar (min-width: 700px) {
/// .card {
/// font-size: 2em;
/// }
/// }
/// ```
external String get containerQuery;
}