u2ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.htaccess +7 -0
- package/LICENSE +21 -0
- package/README.md +36 -0
- package/attr/behavior/README.md +25 -0
- package/attr/behavior/behavior.js +261 -0
- package/attr/behavior/manifest.json +43 -0
- package/attr/behavior/tests/minimal.html +19 -0
- package/attr/behavior/tests/test.html +98 -0
- package/attr/confirm/README.md +36 -0
- package/attr/confirm/confirm.js +90 -0
- package/attr/confirm/manifest.json +43 -0
- package/attr/confirm/tests/minimal.html +23 -0
- package/attr/confirm/tests/test.html +79 -0
- package/attr/draghandle/README.md +41 -0
- package/attr/draghandle/draghandle.js +42 -0
- package/attr/draghandle/tests/minimal.html +44 -0
- package/attr/focusgroup/README.md +49 -0
- package/attr/focusgroup/focusgroup.js +100 -0
- package/attr/focusgroup/manifest.json +38 -0
- package/attr/focusgroup/tests/minimal.html +27 -0
- package/attr/focusgroup/tests/test.html +154 -0
- package/attr/href/README.md +38 -0
- package/attr/href/href.js +42 -0
- package/attr/href/manifest.json +43 -0
- package/attr/href/tests/minimal.html +17 -0
- package/attr/href/tests/test.html +70 -0
- package/attr/intersect/README.md +42 -0
- package/attr/intersect/intersect.js +99 -0
- package/attr/intersect/manifest.json +57 -0
- package/attr/intersect/tests/minimal.html +30 -0
- package/attr/intersect/tests/test.html +64 -0
- package/attr/navigable/README.md +31 -0
- package/attr/navigable/TargetObserver.js +91 -0
- package/attr/navigable/U2TargetObserver.js +75 -0
- package/attr/navigable/manifest.json +42 -0
- package/attr/navigable/navigable.js +87 -0
- package/attr/navigable/tests/U1TargetObserver.html +56 -0
- package/attr/navigable/tests/minimal.html +17 -0
- package/attr/navigable/tests/targetObserver.html +106 -0
- package/attr/navigable/tests/test.html +84 -0
- package/attr/parallax/README.md +48 -0
- package/attr/parallax/parallax.js +119 -0
- package/attr/parallax/tests/minimal.html +25 -0
- package/attr/parallax/tests/performance.html +102 -0
- package/attr/parallax/tests/test.html +108 -0
- package/attr/skin/README.md +59 -0
- package/attr/skin/skin.css +51 -0
- package/attr/skin/tests/minimal.html +34 -0
- package/attr/skin/tests/test.html +96 -0
- package/class/badge/README.md +25 -0
- package/class/badge/badge.css +35 -0
- package/class/badge/tests/minimal.html +17 -0
- package/class/badge/tests/test.html +112 -0
- package/class/card1/README.md +45 -0
- package/class/card1/card1.css +30 -0
- package/class/card1/tests/minimal.html +33 -0
- package/class/card1/tests/test.html +78 -0
- package/class/flex/README.md +62 -0
- package/class/flex/flex.css +25 -0
- package/class/flex/tests/minimal.html +31 -0
- package/class/flex/tests/test.html +58 -0
- package/class/grid/README.md +52 -0
- package/class/grid/grid.css +40 -0
- package/class/grid/tests/minimal.html +34 -0
- package/class/grid/tests/test.html +78 -0
- package/class/input/README.md +49 -0
- package/class/input/input.css +33 -0
- package/class/input/tests/minimal.html +39 -0
- package/class/input/tests/test.html +29 -0
- package/class/reset/README.md +47 -0
- package/class/reset/reset.css +8 -0
- package/class/reset/tests/minimal.html +23 -0
- package/class/table/README.md +57 -0
- package/class/table/table.css +126 -0
- package/class/table/tests/minimal.html +40 -0
- package/class/table/tests/test.html +226 -0
- package/class/unstyle/README.md +32 -0
- package/class/unstyle/tests/minimal.html +22 -0
- package/class/unstyle/tests/test.html +32 -0
- package/class/unstyle/unstyle.css +12 -0
- package/class/width/README.md +48 -0
- package/class/width/tests/minimal.html +27 -0
- package/class/width/tests/test.html +101 -0
- package/class/width/width.css +22 -0
- package/css/base/README.md +25 -0
- package/css/base/base.css +127 -0
- package/css/base/beta.css +50 -0
- package/css/base/full.css +5 -0
- package/css/base/nomotion.css +9 -0
- package/css/base/print.css +36 -0
- package/css/base/tests/nomotion.html +89 -0
- package/css/base/tests/test.html +539 -0
- package/css/classes/README.md +17 -0
- package/css/classes/classes.css +78 -0
- package/css/classes/tests/test.html +63 -0
- package/css/classless/README.md +26 -0
- package/css/classless/aria.css +64 -0
- package/css/classless/classless.css +124 -0
- package/css/classless/full.css +11 -0
- package/css/classless/more.css +340 -0
- package/css/classless/simple.css +103 -0
- package/css/classless/snippeds/a/icons.css +12 -0
- package/css/classless/snippeds/experiments/conventions.css +41 -0
- package/css/classless/snippeds/hr/gradient.css +3 -0
- package/css/classless/snippeds/hr/section_sign.css +16 -0
- package/css/classless/snippeds/hr/tests.html +50 -0
- package/css/classless/tests/aria.html +101 -0
- package/css/classless/tests/foreign/classless-almond.css.html +445 -0
- package/css/classless/tests/foreign/classless-classless.css.html +831 -0
- package/css/classless/tests/foreign/classless-mvp.html +415 -0
- package/css/classless/tests/foreign/classless.sakura.html +224 -0
- package/css/classless/tests/foreign/stylestage.dev.html +304 -0
- package/css/classless/tests/foreign/test-homogenizer.html +433 -0
- package/css/classless/tests/foreign/test-html5-elements-tester.html +956 -0
- package/css/classless/tests/foreign/test-opinionated_css.html +148 -0
- package/css/classless/tests/list-bullet.html +110 -0
- package/css/classless/tests/more.html +246 -0
- package/css/classless/tests/oklch.experiments.html +280 -0
- package/css/classless/tests/test.html +106 -0
- package/css/classless/tests/variables.html +109 -0
- package/css/classless/variables.css +99 -0
- package/css/norm/README.md +37 -0
- package/css/norm/beta.css +40 -0
- package/css/norm/norm.css +98 -0
- package/css/norm/oldies.css +60 -0
- package/css/norm/tests/test.html +434 -0
- package/css/norm/tests/test.js +103 -0
- package/el/accordion/README.md +59 -0
- package/el/accordion/accordion.css +7 -0
- package/el/accordion/accordion.js +258 -0
- package/el/accordion/manifest.json +57 -0
- package/el/accordion/tests/minimal.html +44 -0
- package/el/accordion/tests/test.html +168 -0
- package/el/alert/README.md +67 -0
- package/el/alert/alert copy.js +224 -0
- package/el/alert/alert.css +73 -0
- package/el/alert/alert.js +187 -0
- package/el/alert/manifest.json +77 -0
- package/el/alert/tests/minimal.html +36 -0
- package/el/alert/tests/test.html +105 -0
- package/el/buttongroup/README.md +36 -0
- package/el/buttongroup/buttongroup.css +30 -0
- package/el/buttongroup/buttongroup.js +56 -0
- package/el/buttongroup/tests/minimal.html +31 -0
- package/el/buttongroup/tests/test.html +83 -0
- package/el/bytes/README.md +41 -0
- package/el/bytes/bytes.css +6 -0
- package/el/bytes/bytes.js +97 -0
- package/el/bytes/manifest.json +95 -0
- package/el/bytes/tests/minimal.html +19 -0
- package/el/bytes/tests/test.html +117 -0
- package/el/carousel/README.md +52 -0
- package/el/carousel/carousel.css +46 -0
- package/el/carousel/carousel.js +371 -0
- package/el/carousel/manifest.json +58 -0
- package/el/carousel/tests/experiments.html +77 -0
- package/el/carousel/tests/minimal.html +31 -0
- package/el/carousel/tests/nested.html +54 -0
- package/el/carousel/tests/test.html +136 -0
- package/el/carousel-nav/README.md +40 -0
- package/el/carousel-nav/carousel-nav.js +74 -0
- package/el/carousel-nav/tests/minimal.html +32 -0
- package/el/carousel-nav/tests/test.html +59 -0
- package/el/code/README.md +68 -0
- package/el/code/code.css +46 -0
- package/el/code/code.js +289 -0
- package/el/code/manifest.json +66 -0
- package/el/code/tests/minimal.html +35 -0
- package/el/code/tests/test.html +162 -0
- package/el/copy/README.md +35 -0
- package/el/copy/copy.css +3 -0
- package/el/copy/copy.js +118 -0
- package/el/copy/manifest.json +49 -0
- package/el/copy/tests/minimal.html +21 -0
- package/el/copy/tests/test.html +75 -0
- package/el/counter/README.md +47 -0
- package/el/counter/counter.css +8 -0
- package/el/counter/counter.js +95 -0
- package/el/counter/manifest.json +59 -0
- package/el/counter/tests/minimal.html +27 -0
- package/el/counter/tests/test.html +106 -0
- package/el/ico/README.md +162 -0
- package/el/ico/font/Font Awesome.css +22 -0
- package/el/ico/font/LigatureSymbols.css +7 -0
- package/el/ico/font/Material Icons.css +6 -0
- package/el/ico/font/RemixFilled.css +8 -0
- package/el/ico/font/RemixOutlined.css +8 -0
- package/el/ico/font/old/anicons.css +31 -0
- package/el/ico/font/old/devicons.css +210 -0
- package/el/ico/font/old/material.all.css +36 -0
- package/el/ico/font/old/remix.css +15 -0
- package/el/ico/font/old/utf8.css +54 -0
- package/el/ico/ico.css +111 -0
- package/el/ico/ico.js +189 -0
- package/el/ico/manifest.json +86 -0
- package/el/ico/tests/combinations.html +86 -0
- package/el/ico/tests/emojis.html +213 -0
- package/el/ico/tests/fonts.html +110 -0
- package/el/ico/tests/ico-directory.html +254 -0
- package/el/ico/tests/minimal.html +46 -0
- package/el/ico/tests/test.html +210 -0
- package/el/ico/tests/util-multi.svg +6 -0
- package/el/ico/tests/util.css +2 -0
- package/el/ico/tests/util.js +110 -0
- package/el/input/README.md +39 -0
- package/el/input/input.css +35 -0
- package/el/input/input.js +331 -0
- package/el/input/tests/formParticipation.html +113 -0
- package/el/input/tests/minimal.html +33 -0
- package/el/input/tests/test.html +258 -0
- package/el/masonry/README.md +51 -0
- package/el/masonry/manifest.json +60 -0
- package/el/masonry/masonry.css +27 -0
- package/el/masonry/masonry.js +92 -0
- package/el/masonry/tests/minimal.html +39 -0
- package/el/masonry/tests/test.html +42 -0
- package/el/number/README.md +47 -0
- package/el/number/manifest.json +121 -0
- package/el/number/number.css +6 -0
- package/el/number/number.js +67 -0
- package/el/number/tests/minimal.html +25 -0
- package/el/number/tests/test.html +138 -0
- package/el/out/README.md +32 -0
- package/el/out/manifest.json +38 -0
- package/el/out/out.css +2 -0
- package/el/out/out.js +59 -0
- package/el/out/tests/minimal.html +25 -0
- package/el/out/tests/test.html +37 -0
- package/el/parallax-bg/README.md +36 -0
- package/el/parallax-bg/parallax-bg.css +13 -0
- package/el/parallax-bg/parallax-bg.js +186 -0
- package/el/parallax-bg/tests/bg.jpg +0 -0
- package/el/parallax-bg/tests/bg1.jpg +0 -0
- package/el/parallax-bg/tests/bg2.jpg +0 -0
- package/el/parallax-bg/tests/demo.html +88 -0
- package/el/parallax-bg/tests/minimal.html +30 -0
- package/el/parallax-bg/tests/test.html +64 -0
- package/el/parallax-bg/tests/visible.html +90 -0
- package/el/qrcode/README.md +38 -0
- package/el/qrcode/manifest.json +43 -0
- package/el/qrcode/package.json +22 -0
- package/el/qrcode/qrcode.css +13 -0
- package/el/qrcode/qrcode.js +46 -0
- package/el/qrcode/tests/minimal.html +26 -0
- package/el/qrcode/tests/test.html +31 -0
- package/el/rating/README.md +45 -0
- package/el/rating/manifest.json +65 -0
- package/el/rating/rating.css +11 -0
- package/el/rating/rating.js +139 -0
- package/el/rating/tests/minimal.html +26 -0
- package/el/rating/tests/tests.html +77 -0
- package/el/rte/README.md +37 -0
- package/el/rte/rte.css +9 -0
- package/el/rte/rte.js +56 -0
- package/el/rte/tests/minimal.html +25 -0
- package/el/rte/tests/test.html +37 -0
- package/el/skeleton/README.md +30 -0
- package/el/skeleton/manifest.json +51 -0
- package/el/skeleton/skeleton.css +61 -0
- package/el/skeleton/skeleton.js +72 -0
- package/el/skeleton/tests/minimal.html +22 -0
- package/el/skeleton/tests/test.html +22 -0
- package/el/splitbutton/README.md +39 -0
- package/el/splitbutton/splitbutton.css +48 -0
- package/el/splitbutton/splitbutton.js +26 -0
- package/el/splitbutton/tests/minimal.html +30 -0
- package/el/splitbutton/tests/test.html +68 -0
- package/el/splitpanel/README.md +39 -0
- package/el/splitpanel/manifest.json +49 -0
- package/el/splitpanel/splitpanel.css +17 -0
- package/el/splitpanel/splitpanel.js +116 -0
- package/el/splitpanel/tests/minimal.html +31 -0
- package/el/splitpanel/tests/tests.html +121 -0
- package/el/table/README.md +68 -0
- package/el/table/manifest.json +43 -0
- package/el/table/table.css +59 -0
- package/el/table/table.js +194 -0
- package/el/table/tests/minimal.html +38 -0
- package/el/table/tests/test.html +108 -0
- package/el/tabs/README.md +50 -0
- package/el/tabs/manifest.json +59 -0
- package/el/tabs/tabs.css +23 -0
- package/el/tabs/tabs.js +210 -0
- package/el/tabs/tests/minimal.html +35 -0
- package/el/tabs/tests/test.html +180 -0
- package/el/textfit/README.md +34 -0
- package/el/textfit/manifest.json +45 -0
- package/el/textfit/tests/minimal.html +25 -0
- package/el/textfit/tests/test.html +26 -0
- package/el/textfit/textfit.css +6 -0
- package/el/textfit/textfit.js +80 -0
- package/el/time/README.md +72 -0
- package/el/time/manifest.json +118 -0
- package/el/time/tests/minimal.html +19 -0
- package/el/time/tests/test.html +160 -0
- package/el/time/time copy.js +141 -0
- package/el/time/time.js +168 -0
- package/el/time/time.old.uhtml.js +129 -0
- package/el/tooltip/README.md +48 -0
- package/el/tooltip/manifest.json +69 -0
- package/el/tooltip/tests/minimal.html +25 -0
- package/el/tooltip/tests/test.html +178 -0
- package/el/tooltip/tooltip.css +97 -0
- package/el/tooltip/tooltip.js +82 -0
- package/el/tree1/README.md +111 -0
- package/el/tree1/manifest.json +78 -0
- package/el/tree1/tests/animated.html +134 -0
- package/el/tree1/tests/custom.html +51 -0
- package/el/tree1/tests/minimal.html +44 -0
- package/el/tree1/tests/test.html +260 -0
- package/el/tree1/tree1.css +26 -0
- package/el/tree1/tree1.js +265 -0
- package/el/typewriter/README.md +62 -0
- package/el/typewriter/manifest.json +66 -0
- package/el/typewriter/tests/minimal.html +25 -0
- package/el/typewriter/tests/test.html +78 -0
- package/el/typewriter/typewriter.css +6 -0
- package/el/typewriter/typewriter.js +166 -0
- package/el/typewriter/typewriter.mp3 +0 -0
- package/js/Placer/Placer.js +156 -0
- package/js/Placer/README.md +62 -0
- package/js/Placer/tests/minimal.html +34 -0
- package/js/Placer/tests/test.html +49 -0
- package/js/PointerObserver/PointerObserver.js +130 -0
- package/js/PointerObserver/README.md +34 -0
- package/js/PointerObserver/tests/minimal.html +29 -0
- package/js/PointerObserver/tests/test.html +35 -0
- package/js/SelectorObserver/README.md +47 -0
- package/js/SelectorObserver/SelectorObserver.js +201 -0
- package/js/SelectorObserver/tests/minimal.html +21 -0
- package/js/SelectorObserver/tests/test.html +57 -0
- package/js/SelectorObserver/tests/tests.html +161 -0
- package/js/contextmenu/README.md +93 -0
- package/js/contextmenu/contextmenu.js +336 -0
- package/js/contextmenu/tests/minimal.html +44 -0
- package/js/contextmenu/tests/test.html +131 -0
- package/js/dialog/README.md +49 -0
- package/js/dialog/dialog.js +261 -0
- package/js/dialog/notification.mp3 +0 -0
- package/js/dialog/tests/minimal.html +29 -0
- package/js/dialog/tests/notification.mp3 +0 -0
- package/js/dialog/tests/test.html +135 -0
- package/js/rte/README.md +44 -0
- package/js/rte/old/NodeCleaner.js +315 -0
- package/js/rte/old/Rte/Rte.mjs +316 -0
- package/js/rte/old/Rte/Rte.ui.items.mjs +543 -0
- package/js/rte/old/Rte/Rte.ui.mjs +154 -0
- package/js/rte/old/Rte/crossbrowser.mjs +323 -0
- package/js/rte/old/Rte/font/tinymce.svg +98 -0
- package/js/rte/old/Rte/font/tinymce.woff +0 -0
- package/js/rte/old/Rte/helpers.mjs +159 -0
- package/js/rte/old/Rte/htmlparser.mjs +178 -0
- package/js/rte/old/Rte/index.mjs +5 -0
- package/js/rte/old/Rte/main.css +189 -0
- package/js/rte/old/old.rte.js +132 -0
- package/js/rte/old/range-selection.old.js +394 -0
- package/js/rte/rte.js +7 -0
- package/js/rte/src/behavior.js +228 -0
- package/js/rte/src/events.js +73 -0
- package/js/rte/src/fixes.js +251 -0
- package/js/rte/src/range.js +472 -0
- package/js/rte/src/rte.js +72 -0
- package/js/rte/src/ui/items/ai.js +167 -0
- package/js/rte/src/ui/items/code.js +93 -0
- package/js/rte/src/ui/items/undo.js +183 -0
- package/js/rte/src/ui.items.js +571 -0
- package/js/rte/src/ui.js +269 -0
- package/js/rte/src/util/htmlparser.js +178 -0
- package/js/rte/src/util/indentHtml.js +48 -0
- package/js/rte/tests/ai.html +81 -0
- package/js/rte/tests/behavior.html +88 -0
- package/js/rte/tests/events.html +69 -0
- package/js/rte/tests/fixes.html +95 -0
- package/js/rte/tests/minimal.html +34 -0
- package/js/rte/tests/notes.md +6 -0
- package/js/rte/tests/range.html +167 -0
- package/js/rte/tests/selection-explorer.html +222 -0
- package/js/rte/tests/test.html +92 -0
- package/js/shortcut/README.md +33 -0
- package/js/shortcut/shortcut.js +89 -0
- package/js/shortcut/tests/minimal.html +23 -0
- package/js/shortcut/tests/test.html +68 -0
- package/package.json +12 -0
- package/u2/README.md +4 -0
- package/u2/auto.js +161 -0
- package/u2/auto.ui.js +85 -0
- package/u2/experiments/Waiter/test.html +132 -0
- package/u2/experiments/getElementByIdPromise/test.html +76 -0
- package/u2/experiments/patchInputValue.html +124 -0
- package/u2/experiments/radiobutton/test.html +75 -0
- package/u2/experiments/tests/test.html +223 -0
- package/u2/experiments/u1-responsive/responsive.js +62 -0
- package/u2/experiments/u1-responsive/test.html +65 -0
- package/u2/experiments/u2Element.js +139 -0
- package/u2/experiments/u2Element.test.html +47 -0
- package/u2/old-stuff/IterableWeakMap/mod.js +70 -0
- package/u2/old-stuff/css/onStyleSheet/mod.js +114 -0
- package/u2/old-stuff/css/onStyleSheet/monkeypatches.js +28 -0
- package/u2/old-stuff/css/onStyleSheet/test/include.css +19 -0
- package/u2/old-stuff/css/onStyleSheet/test/style-has-include.css +6 -0
- package/u2/old-stuff/css/onStyleSheet/test/style-no-include.css +3 -0
- package/u2/old-stuff/css/onStyleSheet/test/test.html +48 -0
- package/u2/old-stuff/css/parser/mod.js +182 -0
- package/u2/old-stuff/css/parser/parser_old/mod.js +128 -0
- package/u2/old-stuff/css/parser/parser_old/test.html +43 -0
- package/u2/old-stuff/css/parser/parser_old/util.js +22 -0
- package/u2/old-stuff/css/parser/style.html +52 -0
- package/u2/old-stuff/css/parser/test.html +38 -0
- package/u2/old-stuff/el/ai-texter/README.md +23 -0
- package/u2/old-stuff/el/ai-texter/ai-texter.css +12 -0
- package/u2/old-stuff/el/ai-texter/ai-texter.js +153 -0
- package/u2/old-stuff/el/ai-texter/tests/minimal.html +47 -0
- package/u2/old-stuff/el/ai-texter/tests/test.html +71 -0
- package/u2/old-stuff/init.js +38 -0
- package/u2/old-stuff/markHashLinks.js +51 -0
- package/u2/old-stuff/onElement/mod.js +73 -0
- package/u2/old-stuff/test-helpers/mod.js +36 -0
- package/u2/old-stuff/test-helpers/test.html +4 -0
- package/u2/old-stuff/tests/init.js.html +51 -0
- package/u2/old-stuff/viewport.js +64 -0
- package/u2/projects.json +468 -0
- package/u2/tests/boilerplate.html +46 -0
- package/u2/tests/kacheln.html +245 -0
- package/u2/tests/showcase.html +270 -0
- package/u2/tests/showcase2.html +157 -0
- package/u2/tests/test-init.js +35 -0
- package/u2/tests/test.html +355 -0
- package/u2/tools/baseElement.js +95 -0
- package/u2/tools/baseElement.test.html +119 -0
- package/u2/tools/ce-inspector.js +308 -0
- package/u2/tools/ce-inspector.test.html +66 -0
- package/u2/tools/ce-manfest-from-element.js +207 -0
- package/u2/tools/dev-iframe.js +213 -0
- package/u2/tools/dev-iframe.test.html +75 -0
- package/u2/tools/eventsExplorer.js +101 -0
- package/u2/tools/logo/u1.svg +9 -0
- package/u2/tools/logo/u1ui.svg +6 -0
- package/u2/tools/update.repos.json.js +234 -0
- package/u2/u2.js +14 -0
- package/u2/utils.js +59 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
:where(html) {
|
|
2
|
+
/* Chrome rounds computed line-height:
|
|
3
|
+
16px (font-size) * 1.15 (line-height) = 18.4px (line-height);
|
|
4
|
+
But chrome uses 18px. So use a number that gives full pixels. (1.124 or 1.1875) */
|
|
5
|
+
line-height: 1.1875;
|
|
6
|
+
-webkit-text-size-adjust: none;
|
|
7
|
+
text-size-adjust: none;
|
|
8
|
+
}
|
|
9
|
+
:where(h1) {
|
|
10
|
+
font-size: 2em; /* Correct the font size and margin on `h1` elements within `section` and `article` contexts in Chrome, Firefox, and Safari. */
|
|
11
|
+
margin-block: 0.67em;
|
|
12
|
+
}
|
|
13
|
+
:where(dl, ol, ul) :where(dl, ol, ul) {
|
|
14
|
+
margin: 0; /* Remove the margin on nested lists in Chrome and Safari. */
|
|
15
|
+
}
|
|
16
|
+
:where(hr) {
|
|
17
|
+
color: inherit; /* Correct the inheritance of border color in Firefox. */
|
|
18
|
+
}
|
|
19
|
+
:where(abbr[title]) {
|
|
20
|
+
-webkit-text-decoration: underline dotted; /* safari (does not support unprefixed shorthand) */
|
|
21
|
+
text-decoration-thickness: .08em; /* safari, chrome to match firefox */
|
|
22
|
+
text-underline-offset: 0.1em; /* safari, chrome to match firefox */
|
|
23
|
+
}
|
|
24
|
+
:where(b, strong) {
|
|
25
|
+
font-weight: bolder; /* Add the correct font weight in Chrome and Safari. */
|
|
26
|
+
}
|
|
27
|
+
:where(small) {
|
|
28
|
+
font-size: 80%; /* Add the correct font size in all browsers. */
|
|
29
|
+
}
|
|
30
|
+
:where(table) {
|
|
31
|
+
border-color: currentColor; /* Correct table border color in Chrome and Safari. */
|
|
32
|
+
/* text-indent: 0; will enable it if someone has a need for it */
|
|
33
|
+
}
|
|
34
|
+
:where(textarea, button, input, select) { /* textarea: Firefox, all:Safari */
|
|
35
|
+
margin: 0;
|
|
36
|
+
}
|
|
37
|
+
:where(textarea) { /* behave like in firefox */
|
|
38
|
+
baseline-source: first; /* available in chrome 111, safari no */
|
|
39
|
+
}
|
|
40
|
+
:where(button, input:is([type="button"], [type="reset"], [type="submit"])) {
|
|
41
|
+
-webkit-appearance: button; /* Correct the inability to style buttons in iOS and Safari. */
|
|
42
|
+
}
|
|
43
|
+
:where([type="search"]) {
|
|
44
|
+
-webkit-appearance: textfield; /* Correct the odd appearance in Chrome and Safari. */
|
|
45
|
+
/* outline-offset: -2px; /* Correct the outline style in Safari. Get worse in chrome... */
|
|
46
|
+
}
|
|
47
|
+
:where(::-webkit-search-decoration) {
|
|
48
|
+
-webkit-appearance: none; /* Remove the inner padding in Chrome and Safari on macOS. */
|
|
49
|
+
}
|
|
50
|
+
:where(::placeholder) { /* Correct the text style of placeholders in Chrome and Safari. */
|
|
51
|
+
color: inherit;
|
|
52
|
+
opacity: .54;
|
|
53
|
+
}
|
|
54
|
+
:where(::-webkit-file-upload-button) {
|
|
55
|
+
-webkit-appearance: button; /* Correct the inability to style upload buttons in iOS and Safari. */
|
|
56
|
+
font: inherit; /* Change font properties to `inherit` in Safari. */
|
|
57
|
+
}
|
|
58
|
+
:where(:-moz-ui-invalid) { /* Remove the additional :invalid styles in Firefox. */
|
|
59
|
+
box-shadow: none;
|
|
60
|
+
}
|
|
61
|
+
:where(summary) { /* Add the correct display in safari 14 */
|
|
62
|
+
display: list-item;
|
|
63
|
+
}
|
|
64
|
+
:where(search) {
|
|
65
|
+
display:block;
|
|
66
|
+
}
|
|
67
|
+
:where([inert]) { /* ch < 102 sf < 15.5 ff < 112 */
|
|
68
|
+
pointer-events: none;
|
|
69
|
+
cursor: default;
|
|
70
|
+
-webkit-user-select: none;
|
|
71
|
+
user-select: none;
|
|
72
|
+
}
|
|
73
|
+
/* :where([inert], [inert] *) { too slow
|
|
74
|
+
/* user-modify: read-only !important; no effect? * /
|
|
75
|
+
-webkit-user-select: none;
|
|
76
|
+
user-select: none;
|
|
77
|
+
} */
|
|
78
|
+
|
|
79
|
+
:where([popover]) {
|
|
80
|
+
position: fixed;
|
|
81
|
+
width: fit-content;
|
|
82
|
+
height: fit-content;
|
|
83
|
+
color: canvastext;
|
|
84
|
+
background-color: canvas;
|
|
85
|
+
inset: 0;
|
|
86
|
+
margin: auto;
|
|
87
|
+
border-width: initial;
|
|
88
|
+
border-style: solid;
|
|
89
|
+
border-color: initial;
|
|
90
|
+
border-image: initial;
|
|
91
|
+
padding: 0.25em;
|
|
92
|
+
overflow: auto;
|
|
93
|
+
}
|
|
94
|
+
@supports not selector(:popover-open) {
|
|
95
|
+
:where([popover]) {
|
|
96
|
+
display: none;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
hr {
|
|
2
|
+
box-sizing: content-box; /* firefox 57- https://bugzilla.mozilla.org/show_bug.cgi?id=1377188 */
|
|
3
|
+
height: 0; /* fixed */
|
|
4
|
+
overflow: visible; /* ie edge 18- */
|
|
5
|
+
}
|
|
6
|
+
pre, code, kbd, samp {
|
|
7
|
+
font-family: monospace, monospace; /* Consolas on windows? Correct the inheritance and scaling of font size in all browsers. */
|
|
8
|
+
font-size: 1em; /* Correct the odd `em` font sizing in all browsers. */
|
|
9
|
+
}
|
|
10
|
+
table {
|
|
11
|
+
text-indent: 0; /* Remove text indentation from table contents in Chrome and Safari. */
|
|
12
|
+
}
|
|
13
|
+
select, button {
|
|
14
|
+
text-transform: none; /* Remove the inheritance of text transform in Firefox. */
|
|
15
|
+
}
|
|
16
|
+
progress {
|
|
17
|
+
vertical-align: baseline; /* needed? (firefox, chrome, safari: vertical-align: -0.2em) */
|
|
18
|
+
}
|
|
19
|
+
audio:not([controls]) { /* "Add the correct display in iOS 4-7". do we need it? display is inline but its still hidden!? */
|
|
20
|
+
display: none;
|
|
21
|
+
height: 0;
|
|
22
|
+
}
|
|
23
|
+
ol ol, ol ul, ul ol, ul ul {
|
|
24
|
+
margin: 0; /* ie edge18- */
|
|
25
|
+
}
|
|
26
|
+
main {
|
|
27
|
+
display: block; /* ie */
|
|
28
|
+
}
|
|
29
|
+
a {
|
|
30
|
+
background-color: transparent; /* ie 10 */
|
|
31
|
+
}
|
|
32
|
+
svg:not(:root) {
|
|
33
|
+
overflow: hidden; /* ie */
|
|
34
|
+
}
|
|
35
|
+
button {
|
|
36
|
+
overflow: visible; /* ie */
|
|
37
|
+
text-transform: none; /* edge 18- ff? ie */
|
|
38
|
+
}
|
|
39
|
+
input {
|
|
40
|
+
overflow: visible; /* edge18- ie */
|
|
41
|
+
}
|
|
42
|
+
legend {
|
|
43
|
+
box-sizing: border-box; /* ie edge18- */
|
|
44
|
+
color: inherit; /* ie */
|
|
45
|
+
display: table; /* ie edge18- */
|
|
46
|
+
max-width: 100%; /* ie edge18- */
|
|
47
|
+
white-space: normal; /* ie edge18- */
|
|
48
|
+
}
|
|
49
|
+
progress {
|
|
50
|
+
display: inline-block; /* ie edge18- */
|
|
51
|
+
}
|
|
52
|
+
textarea {
|
|
53
|
+
overflow: auto; /* ie */
|
|
54
|
+
}
|
|
55
|
+
details {
|
|
56
|
+
display: block; /* ie edge18- */
|
|
57
|
+
}
|
|
58
|
+
template {
|
|
59
|
+
display: none; /* ie */
|
|
60
|
+
}
|
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width">
|
|
6
|
+
|
|
7
|
+
<title>Level.css TEST</title>
|
|
8
|
+
|
|
9
|
+
<script src="./test.js" type=module async></script>
|
|
10
|
+
|
|
11
|
+
<link rel="stylesheet" href="../oldies.css">
|
|
12
|
+
<link rel="stylesheet" href="../norm.css">
|
|
13
|
+
<link rel="stylesheet" href="../beta.css">
|
|
14
|
+
|
|
15
|
+
<style>
|
|
16
|
+
body {
|
|
17
|
+
display: grid;
|
|
18
|
+
gap:1rem;
|
|
19
|
+
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
|
|
20
|
+
}
|
|
21
|
+
body > * {
|
|
22
|
+
background:#eee;
|
|
23
|
+
min-height:300px;
|
|
24
|
+
}
|
|
25
|
+
</style>
|
|
26
|
+
|
|
27
|
+
</head>
|
|
28
|
+
|
|
29
|
+
<body>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<section>
|
|
33
|
+
<b>line-height should be 1.1875</b>
|
|
34
|
+
<table>
|
|
35
|
+
<tr>
|
|
36
|
+
<td>font-size:
|
|
37
|
+
<td id=fontSizeOut>
|
|
38
|
+
<tr>
|
|
39
|
+
<td>line-height:
|
|
40
|
+
<td id=lineHeightOut>
|
|
41
|
+
<tr>
|
|
42
|
+
<td>line-height unitless:
|
|
43
|
+
<td id=lineHeightOutRelative style=font-weight:900>
|
|
44
|
+
</table>
|
|
45
|
+
<div id=lineHeightTest style="box-shadow:0 0 4px">
|
|
46
|
+
Testing this<br>
|
|
47
|
+
5 Lines<br>
|
|
48
|
+
height:<br>
|
|
49
|
+
Expected: <b id=lineHeightExpected>x</b><br>
|
|
50
|
+
Result: <b id=lineHeightResult>x</b>
|
|
51
|
+
</div>
|
|
52
|
+
<script>
|
|
53
|
+
setInterval(function(){
|
|
54
|
+
var style = getComputedStyle(document.documentElement);
|
|
55
|
+
var fontSize = style.fontSize.replace('px','');
|
|
56
|
+
var lineHeight = style.lineHeight.replace('px','');
|
|
57
|
+
fontSizeOut.innerHTML = fontSize;
|
|
58
|
+
lineHeightOut.innerHTML = lineHeight;
|
|
59
|
+
lineHeightOutRelative.innerHTML = parseFloat(lineHeight) / parseFloat(fontSize);
|
|
60
|
+
|
|
61
|
+
var testHeight = lineHeightTest.offsetHeight;
|
|
62
|
+
var expected = 5 * 1.1875 * parseFloat(fontSize);
|
|
63
|
+
lineHeightExpected.innerHTML = '(5*1.1875*'+parseFloat(fontSize)+ ') = '+expected;
|
|
64
|
+
lineHeightResult.innerHTML = testHeight + 'px';
|
|
65
|
+
},100)
|
|
66
|
+
</script>
|
|
67
|
+
</section>
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
<div>
|
|
72
|
+
<b>h1</b>
|
|
73
|
+
<br>
|
|
74
|
+
H1 in a section should have same font-size and same margins
|
|
75
|
+
<div style="display:flex; gap:20px">
|
|
76
|
+
<div>
|
|
77
|
+
<h1>H1 in div</h1>
|
|
78
|
+
more content
|
|
79
|
+
</div>
|
|
80
|
+
<section>
|
|
81
|
+
<h1>H1 in section</h1>
|
|
82
|
+
more content
|
|
83
|
+
</section>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
<section>
|
|
88
|
+
<b>Nested dl, ol, ul</b>
|
|
89
|
+
<div id=listTests style="height:500px">
|
|
90
|
+
<dl>
|
|
91
|
+
<dt>
|
|
92
|
+
dl dl:
|
|
93
|
+
<dl>
|
|
94
|
+
<dt>dl > dt > dl > dt</dt>
|
|
95
|
+
<dd>dl > dt > dl > dd</dd>
|
|
96
|
+
</ol>
|
|
97
|
+
</dt>
|
|
98
|
+
<dd>dl > dd</dd>
|
|
99
|
+
<dt>
|
|
100
|
+
dl ol:
|
|
101
|
+
<ol>
|
|
102
|
+
<li>dl > dt > ol > li</li>
|
|
103
|
+
</ol>
|
|
104
|
+
</dt>
|
|
105
|
+
<dd>dl > dd</dd>
|
|
106
|
+
<dt>
|
|
107
|
+
dl ul:
|
|
108
|
+
<ul>
|
|
109
|
+
<li>dl > dt > ul > li</li>
|
|
110
|
+
</ul>
|
|
111
|
+
</dt>
|
|
112
|
+
<dd>dl > dd</dd>
|
|
113
|
+
</dl>
|
|
114
|
+
<ol>
|
|
115
|
+
<li>
|
|
116
|
+
ol dl:
|
|
117
|
+
<dl>
|
|
118
|
+
<dt> ol > li > dl > dt </dt>
|
|
119
|
+
<dd> ol > li > dl > dd </dd>
|
|
120
|
+
</dl>
|
|
121
|
+
</li>
|
|
122
|
+
</ol>
|
|
123
|
+
<ul>
|
|
124
|
+
<li>
|
|
125
|
+
ul dl:
|
|
126
|
+
<dl>
|
|
127
|
+
<dt> ul > li > dl > dt </dt>
|
|
128
|
+
<dd> ul > li > dl > dd </dd>
|
|
129
|
+
</dl>
|
|
130
|
+
</li>
|
|
131
|
+
</ul>
|
|
132
|
+
</div>
|
|
133
|
+
<style>
|
|
134
|
+
#listTests * {
|
|
135
|
+
line-height:1.15;
|
|
136
|
+
outline:1px solid red;
|
|
137
|
+
}
|
|
138
|
+
#listTests dl dl,
|
|
139
|
+
#listTests dl ol,
|
|
140
|
+
#listTests dl ul,
|
|
141
|
+
#listTests ol dl,
|
|
142
|
+
#listTests ul dl {
|
|
143
|
+
outline-color:green;
|
|
144
|
+
z-index:1;
|
|
145
|
+
position:relative;
|
|
146
|
+
}
|
|
147
|
+
</style>
|
|
148
|
+
|
|
149
|
+
</section>
|
|
150
|
+
|
|
151
|
+
<section>
|
|
152
|
+
<b>hr</b>
|
|
153
|
+
<br>
|
|
154
|
+
border-color sould be blue<br>
|
|
155
|
+
height should be 0 (red background-color not visible)<br>
|
|
156
|
+
should overflow wrapper element (content-box, width:100%)
|
|
157
|
+
<div id=hr-wrapper>
|
|
158
|
+
<hr id=hr>
|
|
159
|
+
</div>
|
|
160
|
+
<style style="display:block; white-space:pre">
|
|
161
|
+
#hr-wrapper {
|
|
162
|
+
color:blue;
|
|
163
|
+
width:60%;
|
|
164
|
+
box-shadow:0 0 5px green;
|
|
165
|
+
}
|
|
166
|
+
#hr {
|
|
167
|
+
background-color:red;
|
|
168
|
+
border:10px solid;
|
|
169
|
+
margin:0;
|
|
170
|
+
width:100%;
|
|
171
|
+
}
|
|
172
|
+
</style>
|
|
173
|
+
</section>
|
|
174
|
+
|
|
175
|
+
<section>
|
|
176
|
+
<b>abbr[title]</b>
|
|
177
|
+
<br>
|
|
178
|
+
<abbr title="Cascading Style Sheets">I should have dotted underline</abbr>
|
|
179
|
+
<br>
|
|
180
|
+
<abbr>I not</abbr>
|
|
181
|
+
</section>
|
|
182
|
+
|
|
183
|
+
<section style="line-height:1.3">
|
|
184
|
+
<b>b, string</b>
|
|
185
|
+
<br>
|
|
186
|
+
font-weight:100:
|
|
187
|
+
<div id=b-wrapper>
|
|
188
|
+
<div style="font-weight:100">
|
|
189
|
+
<span>span</span> <br>
|
|
190
|
+
<b>this is a b</b>, <strong>strong</strong>
|
|
191
|
+
</div>
|
|
192
|
+
font-weight:400:
|
|
193
|
+
<div style="font-weight:400">
|
|
194
|
+
<span>span</span> <br>
|
|
195
|
+
<b>this is a b</b>, <strong>strong</strong>
|
|
196
|
+
</div>
|
|
197
|
+
font-weight:500:
|
|
198
|
+
<div style="font-weight:500">
|
|
199
|
+
<span>span</span> <br>
|
|
200
|
+
<b>this is a b</b>, <strong>strong</strong>
|
|
201
|
+
</div>
|
|
202
|
+
font-weight:600:
|
|
203
|
+
<div style="font-weight:600">
|
|
204
|
+
<span>span</span> <br>
|
|
205
|
+
<b>this is a b</b>, <strong>strong</strong>
|
|
206
|
+
</div>
|
|
207
|
+
</div>
|
|
208
|
+
<style>
|
|
209
|
+
#b-wrapper {
|
|
210
|
+
font-family:system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue";
|
|
211
|
+
}
|
|
212
|
+
#b-wrapper > div {
|
|
213
|
+
font-size:27px;
|
|
214
|
+
box-shadow: 0 0 5px;;
|
|
215
|
+
}
|
|
216
|
+
</style>
|
|
217
|
+
</section>
|
|
218
|
+
|
|
219
|
+
<section style="line-height:1.3; font-size:30px">
|
|
220
|
+
<b>pre, code, kbd, samp</b>
|
|
221
|
+
<pre>pre
|
|
222
|
+
12345</pre>
|
|
223
|
+
<code>code</code> <span style="font-family: monospace;">span mono</span> <span>span</span><br>
|
|
224
|
+
<kbd>kbd</kbd> <span style="font-family: monospace;">span mono</span> <span>span</span><br>
|
|
225
|
+
<samp>samp</samp> <span style="font-family: monospace;">span mono</span> <span>span</span><br>
|
|
226
|
+
</section>
|
|
227
|
+
|
|
228
|
+
<section style="line-height:1.3; font-size:30px">
|
|
229
|
+
<b>small</b><br>
|
|
230
|
+
has font-size 80%<br>
|
|
231
|
+
<span style="font-size:80%">span 80%</span> | <small>small 80%?</small>
|
|
232
|
+
</section>
|
|
233
|
+
|
|
234
|
+
<section>
|
|
235
|
+
<b>table</b>
|
|
236
|
+
<br>
|
|
237
|
+
border-color should be currentColor not grey.
|
|
238
|
+
<div id=table-wrapper>
|
|
239
|
+
<table id=table>
|
|
240
|
+
<tr>
|
|
241
|
+
<td>Table Cell<br>Table Cell line 2
|
|
242
|
+
</table>
|
|
243
|
+
</div>
|
|
244
|
+
<style>
|
|
245
|
+
#table-wrapper {
|
|
246
|
+
font-size:30px;
|
|
247
|
+
border-color:green;
|
|
248
|
+
}
|
|
249
|
+
#table {
|
|
250
|
+
border-width:10px;
|
|
251
|
+
border-style:solid;
|
|
252
|
+
}
|
|
253
|
+
</style>
|
|
254
|
+
</section>
|
|
255
|
+
|
|
256
|
+
<section>
|
|
257
|
+
<b>button, input, select: margin:0</b>
|
|
258
|
+
<br>
|
|
259
|
+
<button>Button</button><input><select><option></select><br>
|
|
260
|
+
<button>Button</button><input><select><option></select><br>
|
|
261
|
+
<hr>
|
|
262
|
+
<b>button, select text-transform not inherited</b>
|
|
263
|
+
<br>
|
|
264
|
+
<div style=text-transform:uppercase>
|
|
265
|
+
UpperCase<br>
|
|
266
|
+
<button>Button</button><input value=input><select><option>select</select>
|
|
267
|
+
</div>
|
|
268
|
+
|
|
269
|
+
<hr>
|
|
270
|
+
<b>input size-attr</b>
|
|
271
|
+
<br>
|
|
272
|
+
<table>
|
|
273
|
+
<tr>
|
|
274
|
+
<td>size=1
|
|
275
|
+
<td><input size="1">
|
|
276
|
+
<tr>
|
|
277
|
+
<td>size=4
|
|
278
|
+
<td><input size="4">
|
|
279
|
+
<tr>
|
|
280
|
+
<td>size=20
|
|
281
|
+
<td><input size="20">
|
|
282
|
+
<tr>
|
|
283
|
+
<td>no size
|
|
284
|
+
<td><input>
|
|
285
|
+
|
|
286
|
+
</table>
|
|
287
|
+
|
|
288
|
+
</section>
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
<section>
|
|
292
|
+
/**
|
|
293
|
+
* Correct the inability to style buttons in iOS and Safari.
|
|
294
|
+
*/
|
|
295
|
+
|
|
296
|
+
button,
|
|
297
|
+
[type="button"],
|
|
298
|
+
[type="reset"],
|
|
299
|
+
[type="submit"] {
|
|
300
|
+
-webkit-appearance: button;
|
|
301
|
+
}
|
|
302
|
+
<button>test</button>
|
|
303
|
+
</section>
|
|
304
|
+
|
|
305
|
+
<section>
|
|
306
|
+
<b>progress element should be vertical-align baseline</b>
|
|
307
|
+
<br>
|
|
308
|
+
<div style="line-height:2em; outline:1px solid green">
|
|
309
|
+
Synergistically network sticky potentialities and installed base systems.<br>
|
|
310
|
+
Synergistically network.
|
|
311
|
+
<progress id="file" max="100" value="70">70%</progress>
|
|
312
|
+
</div>
|
|
313
|
+
</section>
|
|
314
|
+
|
|
315
|
+
<section style="line-height:1.5">
|
|
316
|
+
<b>textarea</b><br>
|
|
317
|
+
<b>margin:0</b>
|
|
318
|
+
<br>
|
|
319
|
+
<div style="border:1px solid">
|
|
320
|
+
<textarea></textarea>g
|
|
321
|
+
</div>
|
|
322
|
+
<div style="border:1px solid">
|
|
323
|
+
<textarea style="margin:0">referenz</textarea>g
|
|
324
|
+
</div>
|
|
325
|
+
|
|
326
|
+
<b>baseline-source:first</b>
|
|
327
|
+
<div style="border:1px solid;">
|
|
328
|
+
baseline<textarea style="vertical-align: baseline;">vertical-align:baseline</textarea>
|
|
329
|
+
</div>
|
|
330
|
+
</section>
|
|
331
|
+
|
|
332
|
+
<section>
|
|
333
|
+
<b>type=search</b>
|
|
334
|
+
<input type=search>
|
|
335
|
+
<input value="normal textfield as reference">
|
|
336
|
+
<pre>
|
|
337
|
+
Correct the odd appearance in Chrome and Safari.
|
|
338
|
+
[type="search"] {
|
|
339
|
+
-webkit-appearance: textfield;
|
|
340
|
+
}
|
|
341
|
+
Remove the inner padding in Chrome and Safari on macOS.
|
|
342
|
+
::-webkit-search-decoration {
|
|
343
|
+
-webkit-appearance: none;
|
|
344
|
+
}
|
|
345
|
+
</pre>
|
|
346
|
+
</section>
|
|
347
|
+
|
|
348
|
+
<section>
|
|
349
|
+
<pre>
|
|
350
|
+
Correct the cursor style of increment and decrement buttons in Safari.
|
|
351
|
+
::-webkit-inner-spin-button,
|
|
352
|
+
::-webkit-outer-spin-button {
|
|
353
|
+
height: auto;
|
|
354
|
+
}
|
|
355
|
+
<input type="number" step="1" value="1">
|
|
356
|
+
</section>
|
|
357
|
+
|
|
358
|
+
<section>
|
|
359
|
+
<b>placeholder</b>
|
|
360
|
+
<br>
|
|
361
|
+
not a fixed color, instead opacity. color inherits
|
|
362
|
+
<input placeholder=placeholder-text style="background-color:rgb(117, 117, 117); color:#fff">
|
|
363
|
+
</section>
|
|
364
|
+
|
|
365
|
+
<section>
|
|
366
|
+
<b>file button</b>
|
|
367
|
+
<input type=file>
|
|
368
|
+
/**
|
|
369
|
+
* 1. Correct the inability to style upload buttons in iOS and Safari.
|
|
370
|
+
* 2. Change font properties to `inherit` in Safari.
|
|
371
|
+
*/
|
|
372
|
+
::-webkit-file-upload-button {
|
|
373
|
+
-webkit-appearance: button; /* 1 */
|
|
374
|
+
font: inherit; /* 2 */
|
|
375
|
+
}
|
|
376
|
+
</section>
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
<section>
|
|
380
|
+
<b>:invalid</b>
|
|
381
|
+
<br>
|
|
382
|
+
should not have invalid style by default<br>
|
|
383
|
+
type something and blur
|
|
384
|
+
<input required pattern=x value=y id=invalidTest>
|
|
385
|
+
<script>
|
|
386
|
+
invalidTest.value = 'u';
|
|
387
|
+
</script>
|
|
388
|
+
</section>
|
|
389
|
+
|
|
390
|
+
<!--section>
|
|
391
|
+
<div style="position:relative">
|
|
392
|
+
<button onclick="this.nextElementSibling.toggleAttribute('open')">toggle dialog</button>
|
|
393
|
+
<dialog id="favDialog" open>
|
|
394
|
+
<form method="dialog">
|
|
395
|
+
<p>
|
|
396
|
+
<label>Favorite animal:
|
|
397
|
+
<select>
|
|
398
|
+
<option></option>
|
|
399
|
+
<option>Brine shrimp</option>
|
|
400
|
+
<option>Red panda</option>
|
|
401
|
+
<option>Spider monkey</option>
|
|
402
|
+
</select>
|
|
403
|
+
</label>
|
|
404
|
+
</p>
|
|
405
|
+
<menu>
|
|
406
|
+
<button value="cancel">Cancel</button>
|
|
407
|
+
<button id="confirmBtn" value="default">Confirm</button>
|
|
408
|
+
<button type=button onclick="this.closest('dialog').append('test '.repeat(10000))">Add lot of contents</button>
|
|
409
|
+
</menu>
|
|
410
|
+
</form>
|
|
411
|
+
</dialog>
|
|
412
|
+
Some Text. Phosfluorescently evolve cross-media models with progressive markets. Dynamically scale frictionless innovation rather than cross-unit interfaces. Intrinsicly aggregate backward-compatible models and strategic quality vectors. Objectively e-enable resource sucking value vis-a-vis go forward leadership. Quickly integrate fully tested channels rather than enabled catalysts for change. Phosfluorescently seize cross-platform benefits with.
|
|
413
|
+
</div>
|
|
414
|
+
</section-->
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
<section>
|
|
418
|
+
|
|
419
|
+
<details id=summaryTest>
|
|
420
|
+
<summary>No list-style-type</summary>
|
|
421
|
+
<p>More info about the details.</p>
|
|
422
|
+
</details>
|
|
423
|
+
|
|
424
|
+
<details id=summaryTest>
|
|
425
|
+
<summary style="list-style-type:circle">list-style-type:circle</summary>
|
|
426
|
+
<p>More info about the details.</p>
|
|
427
|
+
</details>
|
|
428
|
+
|
|
429
|
+
<details id=summaryTest>
|
|
430
|
+
<summary style="list-style-type:armenian">list-style-type:armenian</summary>
|
|
431
|
+
<p>More info about the details.</p>
|
|
432
|
+
</details>
|
|
433
|
+
|
|
434
|
+
</section>
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
//import './../cssChecker.js';
|
|
2
|
+
|
|
3
|
+
let html = `
|
|
4
|
+
<form id=testTools>
|
|
5
|
+
<table>
|
|
6
|
+
<!--tr>
|
|
7
|
+
<td>Hue:
|
|
8
|
+
<td><input type=range name=hsl-h unit="" min=0 max=360>
|
|
9
|
+
<tr>
|
|
10
|
+
<td>Saturation:
|
|
11
|
+
<td><input type=range name=hsl-s unit="%">
|
|
12
|
+
<tr>
|
|
13
|
+
<td>Lightness:
|
|
14
|
+
<td><input type=range name=hsl-l unit="%">
|
|
15
|
+
<tr>
|
|
16
|
+
<td>Radius:
|
|
17
|
+
<td><input type=range name=radius min=0 max=1 step=any unit="rem">
|
|
18
|
+
<tr>
|
|
19
|
+
<td>Gap:
|
|
20
|
+
<td><input type=range name=gap min=.5 max=4 step=any unit="rem">
|
|
21
|
+
-->
|
|
22
|
+
</table>
|
|
23
|
+
<div class=Table id=tStyleSheets>
|
|
24
|
+
</div>
|
|
25
|
+
<span style="font-size:2em; position:absolute; right:0; bottom:0" onclick="this.closest('#testTools').classList.toggle('-Mini')">🡙</span>
|
|
26
|
+
</form>
|
|
27
|
+
|
|
28
|
+
<style>
|
|
29
|
+
#testTools {
|
|
30
|
+
position:fixed;
|
|
31
|
+
bottom:10px;
|
|
32
|
+
right:10px;
|
|
33
|
+
background:#fff;
|
|
34
|
+
box-shadow:0 0 10px;
|
|
35
|
+
font-size:15px;
|
|
36
|
+
line-height:1.2;
|
|
37
|
+
font-family:arial;
|
|
38
|
+
color:#000;
|
|
39
|
+
--line-height:1.2;
|
|
40
|
+
}
|
|
41
|
+
#testTools.-Mini {
|
|
42
|
+
height:40px;
|
|
43
|
+
overflow:hidden;
|
|
44
|
+
}
|
|
45
|
+
#testTools table,
|
|
46
|
+
.Table {
|
|
47
|
+
width:100%;
|
|
48
|
+
display:table;
|
|
49
|
+
border-collapse: collapse;
|
|
50
|
+
text-indent: 0;
|
|
51
|
+
}
|
|
52
|
+
.Table > * {
|
|
53
|
+
display:table-row;
|
|
54
|
+
}
|
|
55
|
+
.Table > * > * {
|
|
56
|
+
display:table-cell;
|
|
57
|
+
}
|
|
58
|
+
#testTools td,
|
|
59
|
+
.Table > * > * {
|
|
60
|
+
padding:.4em .8em;
|
|
61
|
+
border-bottom:1px solid #eee;
|
|
62
|
+
}
|
|
63
|
+
#testTools input:not([type=checkbox], [type=radio]) {
|
|
64
|
+
width:120px;
|
|
65
|
+
padding:0;
|
|
66
|
+
}
|
|
67
|
+
#testTools input {
|
|
68
|
+
margin:0;
|
|
69
|
+
}
|
|
70
|
+
</style>
|
|
71
|
+
`;
|
|
72
|
+
|
|
73
|
+
document.body.insertAdjacentHTML('beforeend',html);
|
|
74
|
+
const els = testTools.elements;
|
|
75
|
+
function resetInputs(){
|
|
76
|
+
Array.from(els).forEach(el=>{
|
|
77
|
+
const style = getComputedStyle(document.documentElement);
|
|
78
|
+
let value = style.getPropertyValue('--'+el.name);
|
|
79
|
+
value = parseFloat(value);
|
|
80
|
+
el.value = value;
|
|
81
|
+
})
|
|
82
|
+
}
|
|
83
|
+
resetInputs();
|
|
84
|
+
testTools.addEventListener('input', ({target})=>{
|
|
85
|
+
console.log(target)
|
|
86
|
+
document.documentElement.style.setProperty('--'+target.name, target.value + target.getAttribute('unit') );
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
testTools.contentEditable = false;
|
|
91
|
+
|
|
92
|
+
document.querySelectorAll('link[rel=stylesheet]').forEach(link=>{
|
|
93
|
+
const name = link.href.replace(/.*\/([^/]+)/,'$1');
|
|
94
|
+
const label = document.createElement('label');
|
|
95
|
+
label.innerHTML = '<span><input type=checkbox></span><span>'+name+'</span>';
|
|
96
|
+
const input = label.querySelector('input')
|
|
97
|
+
input.checked = !link.disabled;
|
|
98
|
+
tStyleSheets.append(label);
|
|
99
|
+
label.addEventListener('change',function(){
|
|
100
|
+
link.disabled = !input.checked;
|
|
101
|
+
setTimeout(resetInputs,200)
|
|
102
|
+
})
|
|
103
|
+
})
|