1 // Test various properties of the mobile UI
2 goto: file://|DOC_PATH|/staged_api/struct.Foo.html
7 // The out-of-band info (source, stable version, collapse) should be below the
8 // h1 when the screen gets narrow enough.
9 assert-css: (".main-heading", {
11 "flex-direction": "column"
14 assert-property: (".mobile-topbar h2.location", {"offsetHeight": 36})
16 // Note: We can't use assert-text here because the 'Since' is set by CSS and
17 // is therefore not part of the DOM.
18 assert-css: (".content .out-of-band .since::before", { "content": "\"Since \"" })
21 assert-css-false: (".content .out-of-band .since::before", { "content": "\"Since \"" })
23 // On the settings page, the theme buttons should not line-wrap. Instead, they should
24 // all be placed as a group on a line below the setting name "Theme."
25 goto: file://|DOC_PATH|/settings.html
27 compare-elements-position-near-false: ("#preferred-light-theme .setting-name", "#preferred-light-theme .choice", {"y": 16})