Skip to content

Commit

Permalink
style: disable quirks mode in demo and tests
Browse files Browse the repository at this point in the history
Adds doctype to local demo and test html files in order to prevent
accidental dependence on the deprecated CSS "quirks mode".
  • Loading branch information
ca-d committed Apr 30, 2024
1 parent 9f44494 commit 40054f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions demo/embedded.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<title>OpenSCD Core Embedding Demo</title>
<iframe src="./index.html?locale=de&dark"></iframe>
<style>
Expand Down
1 change: 1 addition & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<title>OpenSCD Core Demo</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300&family=Roboto:wght@300;400;500&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Material+Icons&display=block">
Expand Down
1 change: 1 addition & 0 deletions web-test-runner.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
name: 'visual',
files: 'dist/**/*.test.js',
testRunnerHtml: testFramework => `
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300&family=Roboto:wght@300;400;500&display=swap">
Expand Down

0 comments on commit 40054f7

Please sign in to comment.