Browse Source

Mediaquery resize test is passing in Firefox

firefox tests are not enabled so far nevertheless
NEW_FX
Shagen Ogandzhanian 3 years ago
parent
commit
073e5e9db6
  1. 2
      web/integration-core/src/jsMain/kotlin/androidx/compose/web/sample/tests/TestCases1.kt
  2. 1
      web/integration-core/src/jsMain/resources/index.html

2
web/integration-core/src/jsMain/kotlin/androidx/compose/web/sample/tests/TestCases1.kt

@ -71,7 +71,7 @@ class TestCases1 {
private object AppStyleSheet : StyleSheet() { private object AppStyleSheet : StyleSheet() {
val textClass by style { val textClass by style {
color("rgba(0, 200, 0, 0.92)") color("rgba(0, 200, 0, 0.92)")
media(maxWidth(400.px)) { media(maxWidth(600.px)) {
self style { self style {
color("rgba(255, 200, 0, 0.99)") color("rgba(255, 200, 0, 0.99)")
} }

1
web/integration-core/src/jsMain/resources/index.html

@ -3,6 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>compose-browser-demo</title> <title>compose-browser-demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="/hljs.css"> <link rel="stylesheet" href="/hljs.css">
</head> </head>
<body> <body>

Loading…
Cancel
Save