From acfe8c9f1f4145f77653a2bc64a9744b001358dc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 7 Jul 2023 00:19:19 -0700 Subject: [PATCH] Bump prettier from 2.8.8 to 3.0.0 (#27777) * Bump prettier from 2.8.8 to 3.0.0 Bumps [prettier](https://github.com/prettier/prettier) from 2.8.8 to 3.0.0. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.8.8...3.0.0) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * Add trailing commas * -> * Separate CSS properties into multiline * Misc. changes (whitespace, quotes, etc.) * html -> xml --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Queen Vinyl Da.i'gyu-Kazotetsu --- .../2d_collision_detection/index.md | 2 +- .../index.md | 12 ++--- .../3d_collision_detection/index.md | 6 +-- .../index.md | 2 +- .../index.md | 6 +-- .../engine/index.md | 2 +- .../index.md | 2 +- .../3d_on_the_web/glsl_shaders/index.md | 2 +- .../techniques/audio_for_web_games/index.md | 4 +- .../desktop_with_mouse_and_keyboard/index.md | 4 +- .../control_mechanisms/mobile_touch/index.md | 4 +- .../control_mechanisms/other/index.md | 4 +- .../index.md | 2 +- .../index.md | 2 +- .../2d_breakout_game_phaser/buttons/index.md | 2 +- .../extra_lives/index.md | 6 +-- .../initialize_the_framework/index.md | 2 +- .../player_paddle_and_controls/index.md | 2 +- .../create_the_canvas_and_draw_on_it/index.md | 2 +- .../index.md | 18 +++---- files/en-us/glossary/css_selector/index.md | 6 ++- files/en-us/glossary/entity/index.md | 6 +-- files/en-us/glossary/xhtml/index.md | 2 +- .../design_for_all_types_of_users/index.md | 4 +- .../what_are_browser_developer_tools/index.md | 4 +- .../advanced_styling_effects/index.md | 8 +++- .../backgrounds_and_borders/index.md | 12 +++-- .../learn/css/css_layout/floats/index.md | 25 ++++++++-- .../en-us/learn/css/css_layout/grids/index.md | 40 ++++++++++++---- .../css/css_layout/media_queries/index.md | 5 +- .../multiple-column_layout/index.md | 30 +++++++++--- .../css/first_steps/getting_started/index.md | 2 +- .../how_css_is_structured/index.md | 18 ++++--- .../css/howto/create_fancy_boxes/index.md | 6 ++- files/en-us/learn/css/howto/css_faq/index.md | 2 +- .../css/styling_text/fundamentals/index.md | 21 ++++++-- .../learn/css/styling_text/web_fonts/index.md | 10 ++-- .../example_3/index.md | 2 +- .../sending_forms_through_javascript/index.md | 4 +- .../learn/forms/styling_web_forms/index.md | 23 ++++++--- .../learn/forms/ui_pseudo-classes/index.md | 2 +- .../dealing_with_files/index.md | 2 +- .../html_basics/index.md | 2 +- .../advanced_text_formatting/index.md | 6 +-- .../document_and_website_structure/index.md | 2 +- .../getting_started/index.md | 8 ++-- .../html_text_fundamentals/index.md | 10 ++-- .../the_head_metadata_in_html/index.md | 2 +- .../index.md | 2 +- .../images_in_html/index.md | 4 +- .../other_embedding_technologies/index.md | 2 +- .../en-us/learn/html/tables/advanced/index.md | 2 +- .../asynchronous/introducing/index.md | 2 +- .../asynchronous/introducing_workers/index.md | 6 +-- .../javascript/asynchronous/promises/index.md | 36 +++++++------- .../build_your_own_function/index.md | 4 +- .../building_blocks/conditionals/index.md | 8 ++-- .../building_blocks/functions/index.md | 2 +- .../building_blocks/looping_code/index.md | 10 ++-- .../client-side_storage/index.md | 20 ++++---- .../drawing_graphics/index.md | 4 +- .../manipulating_documents/index.md | 4 +- .../video_and_audio_apis/index.md | 3 +- .../javascript/first_steps/arrays/index.md | 4 +- .../useful_string_methods/index.md | 6 +-- .../objects/classes_in_javascript/index.md | 2 +- .../objects/object_building_practice/index.md | 2 +- .../first_steps/fractions_and_roots/index.md | 6 ++- .../first_steps/getting_started/index.md | 4 +- .../learn/mathml/first_steps/scripts/index.md | 10 ++-- .../learn/mathml/first_steps/tables/index.md | 4 +- .../first_steps/text_containers/index.md | 22 ++++----- .../index.md | 2 +- .../express_nodejs/deployment/index.md | 2 +- .../express_nodejs/mongoose/index.md | 2 +- .../express_nodejs/routes/index.md | 14 +++--- .../angular_styling/index.md | 4 +- .../main_features/index.md | 2 +- .../react_components/index.md | 2 +- .../react_getting_started/index.md | 6 +-- .../react_todo_list_beginning/index.md | 8 +++- .../svelte_getting_started/index.md | 2 +- .../svelte_todo_list_beginning/index.md | 8 +++- .../svelte_typescript/index.md | 48 ++++++++++++++++--- .../vue_styling/index.md | 10 +++- .../automated_testing/index.md | 6 +-- .../html_and_css/index.md | 10 ++-- .../your_own_automation_environment/index.md | 6 +-- .../package_management/index.md | 2 +- .../code_style_guide/html/index.md | 2 +- .../index.md | 2 +- .../2/adding_feed_readers_to_firefox/index.md | 2 +- .../releases/3.5/updating_extensions/index.md | 6 +-- .../releases/3/full_page_zoom/index.md | 2 +- .../mozilla/firefox/releases/36/index.md | 2 +- .../releases/4/the_add-on_bar/index.md | 4 +- .../releases/5/updating_add-ons/index.md | 2 +- .../releases/9/updating_add-ons/index.md | 2 +- .../index.md | 4 -- .../aria/aria_live_regions/index.md | 2 +- .../aria/roles/grid_role/index.md | 6 +-- .../aria/roles/switch_role/index.md | 10 +++- files/en-us/web/api/abortsignal/index.md | 2 +- .../api/abortsignal/timeout_static/index.md | 2 +- .../getfloatfrequencydata/index.md | 4 +- .../web/api/angle_instanced_arrays/index.md | 8 ++-- .../web/api/animation/animation/index.md | 2 +- .../web/api/animation/commitstyles/index.md | 4 +- .../en-us/web/api/animation/finished/index.md | 2 +- files/en-us/web/api/animation/pause/index.md | 2 +- .../en-us/web/api/animation/persist/index.md | 2 +- files/en-us/web/api/animation/play/index.md | 2 +- .../web/api/animation/remove_event/index.md | 4 +- files/en-us/web/api/audiobuffer/index.md | 2 +- .../api/audiobuffersourcenode/detune/index.md | 2 +- .../web/api/audiobuffersourcenode/index.md | 2 +- .../api/audiobuffersourcenode/loop/index.md | 2 +- .../audiobuffersourcenode/loopend/index.md | 2 +- .../audiobuffersourcenode/loopstart/index.md | 2 +- .../playbackrate/index.md | 2 +- .../createmediastreamdestination/index.md | 2 +- .../isconfigsupported_static/index.md | 2 +- .../isconfigsupported_static/index.md | 2 +- .../web/api/audioprocessingevent/index.md | 2 +- files/en-us/web/api/audioworkletnode/index.md | 2 +- .../api/audioworkletnode/parameters/index.md | 2 +- .../web/api/audioworkletprocessor/index.md | 2 +- .../web/api/background_fetch_api/index.md | 2 +- .../web/api/background_tasks_api/index.md | 4 +- .../api/backgroundfetchmanager/fetch/index.md | 2 +- .../web/api/backgroundfetchmanager/index.md | 2 +- .../api/backgroundfetchregistration/index.md | 2 +- .../progress_event/index.md | 2 +- .../api/backgroundfetchupdateuievent/index.md | 2 +- .../baseaudiocontext/createbuffer/index.md | 2 +- .../createbuffersource/index.md | 2 +- .../baseaudiocontext/createconvolver/index.md | 2 +- .../api/baseaudiocontext/creategain/index.md | 2 +- .../createscriptprocessor/index.md | 2 +- .../baseaudiocontext/decodeaudiodata/index.md | 2 +- .../api/batterymanager/chargingtime/index.md | 2 +- .../batterymanager/dischargingtime/index.md | 2 +- .../batterymanager/levelchange_event/index.md | 2 +- .../getfrequencyresponse/index.md | 2 +- files/en-us/web/api/blob/index.md | 2 +- files/en-us/web/api/blob/type/index.md | 2 +- .../index.md | 2 +- .../broadcastchannel/message_event/index.md | 12 +++-- .../bytelengthqueuingstrategy/index.md | 2 +- .../highwatermark/index.md | 2 +- .../api/bytelengthqueuingstrategy/index.md | 2 +- .../bytelengthqueuingstrategy/size/index.md | 2 +- files/en-us/web/api/cache/addall/index.md | 4 +- files/en-us/web/api/cache/index.md | 12 ++--- files/en-us/web/api/cache/match/index.md | 2 +- files/en-us/web/api/caches/index.md | 4 +- .../web/api/cachestorage/delete/index.md | 6 +-- files/en-us/web/api/cachestorage/index.md | 6 +-- .../en-us/web/api/cachestorage/keys/index.md | 6 +-- .../en-us/web/api/cachestorage/match/index.md | 2 +- .../en-us/web/api/cachestorage/open/index.md | 4 +- .../canmakepaymentevent/index.md | 2 +- .../web/api/canmakepaymentevent/index.md | 2 +- .../canmakepaymentevent/respondwith/index.md | 2 +- .../manipulating_video_using_canvas/index.md | 4 +- .../applying_styles_and_colors/index.md | 4 +- .../tutorial/basic_animations/index.md | 10 ++-- .../canvas_api/tutorial/basic_usage/index.md | 4 +- .../tutorial/compositing/example/index.md | 2 +- .../canvas_api/tutorial/compositing/index.md | 2 +- .../pixel_manipulation_with_canvas/index.md | 4 +- .../canvas_api/tutorial/using_images/index.md | 4 +- .../fontstretch/index.md | 4 +- .../ispointinstroke/index.md | 2 +- .../putimagedata/index.md | 2 +- files/en-us/web/api/cleartimeout/index.md | 2 +- .../en-us/web/api/client/postmessage/index.md | 2 +- files/en-us/web/api/client/url/index.md | 2 +- files/en-us/web/api/clients/index.md | 2 +- .../en-us/web/api/clients/openwindow/index.md | 6 +-- files/en-us/web/api/clipboard/write/index.md | 4 +- .../web/api/clipboard/writetext/index.md | 2 +- files/en-us/web/api/clipboard_api/index.md | 2 +- .../web/api/compression_streams_api/index.md | 2 +- .../compressionstream/index.md | 2 +- .../en-us/web/api/compressionstream/index.md | 2 +- files/en-us/web/api/console/index.md | 4 +- .../web/api/convolvernode/buffer/index.md | 2 +- .../web/api/convolvernode/normalize/index.md | 2 +- files/en-us/web/api/cookiestore/index.md | 2 +- .../countqueuingstrategy/index.md | 2 +- .../highwatermark/index.md | 2 +- .../web/api/countqueuingstrategy/index.md | 2 +- .../api/countqueuingstrategy/size/index.md | 2 +- .../api/credentialscontainer/store/index.md | 2 +- .../web/api/cryptokey/extractable/index.md | 2 +- files/en-us/web/api/cryptokey/type/index.md | 4 +- files/en-us/web/api/cryptokey/usages/index.md | 2 +- .../web/api/cspviolationreportbody/index.md | 2 +- .../web/api/css/supports_static/index.md | 2 +- .../web/api/css_font_loading_api/index.md | 8 ++-- .../index.md | 4 +- .../web/api/css_painting_api/guide/index.md | 18 +++---- files/en-us/web/api/css_painting_api/index.md | 4 +- .../web/api/css_typed_om_api/guide/index.md | 2 +- .../additivesymbols/index.md | 5 +- .../api/csscounterstylerule/range/index.md | 6 ++- .../fontfamily/index.md | 4 +- .../web/api/cssfontpalettevaluesrule/index.md | 4 +- .../cssfontpalettevaluesrule/name/index.md | 4 +- .../overridecolors/index.md | 8 +++- .../api/cssgroupingrule/insertrule/index.md | 2 +- .../web/api/csslayerstatementrule/index.md | 2 +- .../csslayerstatementrule/namelist/index.md | 2 +- files/en-us/web/api/cssrulelist/index.md | 5 +- .../cssstyledeclaration/setproperty/index.md | 2 +- .../web/api/cssstylesheet/insertrule/index.md | 2 +- .../api/cssstylevalue/parse_static/index.md | 2 +- .../api/cssunitvalue/cssunitvalue/index.md | 2 +- files/en-us/web/api/cssunitvalue/index.md | 2 +- .../en-us/web/api/cssunitvalue/unit/index.md | 2 +- .../en-us/web/api/cssunitvalue/value/index.md | 2 +- .../api/customelementregistry/get/index.md | 2 +- .../whendefined/index.md | 2 +- .../web/api/datatransfer/dropeffect/index.md | 6 +-- .../web/api/datatransfer/setdata/index.md | 2 +- .../api/datatransfer/setdragimage/index.md | 2 +- .../en-us/web/api/datatransfer/types/index.md | 4 +- .../webkitgetasentry/index.md | 12 +++-- .../web/api/deprecationreportbody/index.md | 2 +- .../web/api/document/activeelement/index.md | 2 +- files/en-us/web/api/document/anchors/index.md | 2 +- .../web/api/document/createcomment/index.md | 2 +- .../web/api/document/createelement/index.md | 2 +- .../web/api/document/createevent/index.md | 2 +- .../api/document/createnodeiterator/index.md | 4 +- .../createprocessinginstruction/index.md | 2 +- .../web/api/document/createtextnode/index.md | 2 +- .../api/document/createtreewalker/index.md | 6 +-- .../en-us/web/api/document/evaluate/index.md | 2 +- .../web/api/document/execcommand/index.md | 2 +- files/en-us/web/api/document/forms/index.md | 4 +- .../web/api/document/getelementbyid/index.md | 2 +- .../document/getelementsbyclassname/index.md | 2 +- .../api/document/getelementsbyname/index.md | 2 +- .../document/getelementsbytagnamens/index.md | 6 +-- .../en-us/web/api/document/hasfocus/index.md | 2 +- files/en-us/web/api/document/head/index.md | 2 +- .../document/preferredstylesheetset/index.md | 2 +- .../web/api/document/queryselector/index.md | 2 +- .../web/api/document/readystate/index.md | 2 +- .../document/requeststorageaccess/index.md | 2 +- files/en-us/web/api/document/title/index.md | 2 +- .../document_object_model/examples/index.md | 12 ++--- .../index.md | 2 +- .../example/index.md | 2 +- .../document_object_model/whitespace/index.md | 2 +- .../web/api/documenttype/before/index.md | 2 +- .../web/api/documenttype/publicid/index.md | 2 +- .../web/api/documenttype/replacewith/index.md | 2 +- .../web/api/documenttype/systemid/index.md | 2 +- .../domimplementation/createdocument/index.md | 2 +- .../createdocumenttype/index.md | 4 +- .../createhtmldocument/index.md | 2 +- files/en-us/web/api/dompoint/index.md | 8 ++-- .../web/api/dragevent/datatransfer/index.md | 2 +- files/en-us/web/api/element/animate/index.md | 4 +- .../element/animationcancel_event/index.md | 4 +- .../api/element/animationend_event/index.md | 4 +- .../element/animationiteration_event/index.md | 4 +- .../api/element/animationstart_event/index.md | 4 +- .../api/element/beforematch_event/index.md | 2 +- .../en-us/web/api/element/blur_event/index.md | 4 +- .../web/api/element/focus_event/index.md | 4 +- .../element/fullscreenchange_event/index.md | 2 +- .../web/api/element/getanimations/index.md | 2 +- .../api/element/getattributenames/index.md | 2 +- .../web/api/element/getattributens/index.md | 2 +- .../element/getelementsbyclassname/index.md | 2 +- .../element/getelementsbytagnamens/index.md | 2 +- .../en-us/web/api/element/innerhtml/index.md | 2 +- .../api/element/insertadjacenthtml/index.md | 2 +- .../web/api/element/mouseout_event/index.md | 4 +- .../web/api/element/mouseover_event/index.md | 4 +- .../web/api/element/queryselector/index.md | 2 +- .../web/api/element/replacechildren/index.md | 2 +- .../api/element/requestfullscreen/index.md | 4 +- .../web/api/element/scrollheight/index.md | 2 +- .../web/api/element/scrollwidth/index.md | 2 +- .../web/api/element/setattributens/index.md | 2 +- .../en-us/web/api/element/setcapture/index.md | 2 +- .../api/element/transitionrun_event/index.md | 4 +- .../comparison_of_event_targets/index.md | 2 +- files/en-us/web/api/event/composed/index.md | 4 +- .../en-us/web/api/event/composedpath/index.md | 4 +- files/en-us/web/api/event/initevent/index.md | 2 +- .../web/api/event/preventdefault/index.md | 2 +- .../event/stopimmediatepropagation/index.md | 6 +-- .../api/eventtarget/addeventlistener/index.md | 14 +++--- files/en-us/web/api/ext_float_blend/index.md | 2 +- files/en-us/web/api/ext_srgb/index.md | 2 +- .../api/ext_texture_compression_bptc/index.md | 2 +- .../api/ext_texture_compression_rgtc/index.md | 2 +- files/en-us/web/api/extendableevent/index.md | 6 +-- .../web/api/fetch_api/using_fetch/index.md | 2 +- .../en-us/web/api/fetchevent/handled/index.md | 4 +- files/en-us/web/api/fetchevent/index.md | 2 +- .../api/fetchevent/preloadresponse/index.md | 2 +- .../en-us/web/api/fetchevent/request/index.md | 2 +- .../web/api/fetchevent/respondwith/index.md | 2 +- .../web/api/file/lastmodifieddate/index.md | 2 +- .../index.md | 18 +++---- .../web/api/filereader/readasdataurl/index.md | 4 +- .../web/api/filereader/readastext/index.md | 2 +- .../createreader/index.md | 2 +- .../web/api/filesystemdirectoryentry/index.md | 2 +- .../removerecursively/index.md | 2 +- .../web/api/filesystementry/copyto/index.md | 4 +- .../web/api/filesystementry/fullpath/index.md | 2 +- .../api/filesystementry/getmetadata/index.md | 4 +- .../api/filesystementry/getparent/index.md | 4 +- files/en-us/web/api/filesystementry/index.md | 4 +- .../web/api/filesystementry/moveto/index.md | 4 +- .../web/api/filesystementry/remove/index.md | 2 +- .../filesystemfileentry/createwriter/index.md | 2 +- .../web/api/filesystemhandle/remove/index.md | 2 +- .../web/api/fontface/ascentoverride/index.md | 2 +- .../web/api/fontface/descentoverride/index.md | 2 +- files/en-us/web/api/fontface/family/index.md | 2 +- files/en-us/web/api/fontface/index.md | 2 +- .../web/api/fontface/linegapoverride/index.md | 2 +- files/en-us/web/api/fontface/load/index.md | 4 +- .../en-us/web/api/fontfaceset/check/index.md | 2 +- .../formdata/using_formdata_objects/index.md | 2 +- .../web/api/fullscreen_api/guide/index.md | 2 +- files/en-us/web/api/fullscreen_api/index.md | 2 +- .../en-us/web/api/gamepad/displayid/index.md | 2 +- files/en-us/web/api/gamepad/index.md | 2 +- .../using_the_gamepad_api/index.md | 10 ++-- .../web/api/gamepadevent/gamepad/index.md | 2 +- files/en-us/web/api/gamepadevent/index.md | 4 +- files/en-us/web/api/gpubuffer/index.md | 2 +- .../en-us/web/api/gpubuffer/mapstate/index.md | 2 +- .../begincomputepass/index.md | 2 +- .../copybuffertobuffer/index.md | 2 +- .../copybuffertotexture/index.md | 2 +- .../copytexturetobuffer/index.md | 2 +- .../copytexturetotexture/index.md | 2 +- .../resolvequeryset/index.md | 2 +- .../dispatchworkgroups/index.md | 2 +- .../dispatchworkgroupsindirect/index.md | 2 +- .../api/gpucomputepassencoder/end/index.md | 2 +- .../web/api/gpucomputepassencoder/index.md | 2 +- .../setbindgroup/index.md | 2 +- .../setpipeline/index.md | 2 +- .../createrenderpipelineasync/index.md | 2 +- .../gpurenderpassencoder/setviewport/index.md | 2 +- .../api/history/scrollrestoration/index.md | 2 +- files/en-us/web/api/history_api/index.md | 2 +- .../drag_operations/index.md | 6 +-- .../web/api/html_drag_and_drop_api/index.md | 2 +- .../recommended_drag_types/index.md | 16 +++---- .../en-us/web/api/html_sanitizer_api/index.md | 2 +- .../api/htmlanchorelement/rellist/index.md | 2 +- .../contextrestored_event/index.md | 2 +- .../web/api/htmlcanvaselement/toblob/index.md | 10 ++-- .../webglcontextcreationerror_event/index.md | 2 +- .../webglcontextrestored_event/index.md | 2 +- .../web/api/htmlelement/drag_event/index.md | 2 +- .../en-us/web/api/htmlelement/hidden/index.md | 14 ++++-- .../en-us/web/api/htmlelement/style/index.md | 2 +- files/en-us/web/api/htmlformelement/index.md | 2 +- .../htmlformelement/reportvalidity/index.md | 2 +- .../web/api/htmlimageelement/alt/index.md | 11 ++++- .../api/htmlimageelement/crossorigin/index.md | 5 +- .../web/api/htmlimageelement/sizes/index.md | 11 +++-- .../api/htmlinputelement/disabled/index.md | 2 +- .../web/api/htmlinputelement/files/index.md | 2 +- .../htmlinputelement/invalid_event/index.md | 2 +- .../htmlinputelement/select_event/index.md | 2 +- .../htmlinputelement/webkitdirectory/index.md | 2 +- .../canplaythrough_event/index.md | 4 +- .../api/htmlmediaelement/ended_event/index.md | 4 +- .../web/api/htmlmediaelement/error/index.md | 2 +- .../loadeddata_event/index.md | 4 +- .../loadedmetadata_event/index.md | 4 +- .../htmlmediaelement/loadstart_event/index.md | 2 +- .../api/htmlmediaelement/pause_event/index.md | 4 +- .../api/htmlmediaelement/play_event/index.md | 4 +- .../htmlmediaelement/progress_event/index.md | 2 +- .../en-us/web/api/htmlscriptelement/index.md | 2 +- .../api/htmlselectelement/disabled/index.md | 2 +- .../selectedoptions/index.md | 2 +- .../htmlslotelement/assignednodes/index.md | 2 +- files/en-us/web/api/htmlslotelement/index.md | 2 +- .../web/api/htmlslotelement/name/index.md | 2 +- .../htmlslotelement/slotchange_event/index.md | 2 +- .../web/api/htmlstyleelement/media/index.md | 2 +- .../htmltextareaelement/select_event/index.md | 2 +- files/en-us/web/api/htmltitleelement/index.md | 2 +- .../requestpictureinpicture/index.md | 2 +- .../api/htmlvideoelement/videoheight/index.md | 2 +- files/en-us/web/api/idbcursor/delete/index.md | 2 +- .../en-us/web/api/idbobjectstore/put/index.md | 2 +- files/en-us/web/api/idbrequest/error/index.md | 2 +- .../web/api/idbrequest/readystate/index.md | 2 +- .../web/api/idbrequest/transaction/index.md | 2 +- .../getfrequencyresponse/index.md | 4 +- files/en-us/web/api/imagecapture/index.md | 2 +- files/en-us/web/api/imagedecoder/index.md | 2 +- .../indexeddb_api/using_indexeddb/index.md | 4 +- files/en-us/web/api/installevent/index.md | 6 +-- .../api/intersection_observer_api/index.md | 17 ++++--- .../timing_element_visibility/index.md | 2 +- .../web/api/keyboardevent/altkey/index.md | 4 +- .../en-us/web/api/keyboardevent/code/index.md | 4 +- files/en-us/web/api/keyboardevent/index.md | 4 +- .../api/keyboardevent/initkeyevent/index.md | 2 +- .../en-us/web/api/keyboardevent/key/index.md | 2 +- .../web/api/keyboardevent/keycode/index.md | 2 +- .../web/api/keyboardevent/metakey/index.md | 2 +- .../web/api/keyboardevent/shiftkey/index.md | 2 +- files/en-us/web/api/keyframeeffect/index.md | 4 +- .../keyframeeffect/keyframeeffect/index.md | 4 +- .../api/keyframeeffect/pseudoelement/index.md | 2 +- .../web/api/keyframeeffect/target/index.md | 2 +- .../api/khr_parallel_shader_compile/index.md | 2 +- .../web/api/layoutshiftattribution/index.md | 2 +- files/en-us/web/api/location/assign/index.md | 2 +- files/en-us/web/api/location/replace/index.md | 2 +- files/en-us/web/api/lock/index.md | 2 +- files/en-us/web/api/lock/mode/index.md | 4 +- .../web/api/lockmanager/request/index.md | 8 ++-- .../web/api/media_capabilities_api/index.md | 2 +- .../using_the_media_capabilities_api/index.md | 2 +- .../constraints/index.md | 11 +++-- .../taking_still_photos/index.md | 8 ++-- .../mediacapabilities/decodinginfo/index.md | 2 +- .../mediacapabilities/encodinginfo/index.md | 2 +- .../mediadevices/devicechange_event/index.md | 7 ++- .../api/mediadevices/getdisplaymedia/index.md | 2 +- .../getsupportedconstraints/index.md | 4 +- files/en-us/web/api/mediadevices/index.md | 4 +- .../api/mediaerror/msextendedcode/index.md | 4 +- .../web/api/mediaquerylist/media/index.md | 4 +- .../istypesupported_static/index.md | 2 +- .../web/api/mediarecorder/stream/index.md | 2 +- .../mediasession/setactionhandler/index.md | 2 +- .../recording_a_media_element/index.md | 11 +++-- .../index.md | 2 +- .../mediastreamaudiosourcenode/index.md | 2 +- .../api/mediastreamtrack/mute_event/index.md | 4 +- .../mediastreamtrack/unmute_event/index.md | 4 +- .../suppresslocalaudioplayback/index.md | 2 +- .../aspectratio/index.md | 4 +- .../autogaincontrol/index.md | 4 +- .../channelcount/index.md | 4 +- .../deviceid/index.md | 4 +- .../displaysurface/index.md | 2 +- .../echocancellation/index.md | 4 +- .../facingmode/index.md | 4 +- .../framerate/index.md | 4 +- .../groupid/index.md | 4 +- .../height/index.md | 4 +- .../latency/index.md | 4 +- .../logicalsurface/index.md | 2 +- .../noisesuppression/index.md | 4 +- .../samplerate/index.md | 4 +- .../samplesize/index.md | 4 +- .../suppresslocalaudioplayback/index.md | 2 +- .../volume/index.md | 4 +- .../width/index.md | 4 +- .../api/metadata/modificationtime/index.md | 4 +- files/en-us/web/api/metadata/size/index.md | 2 +- files/en-us/web/api/midiport/index.md | 4 +- .../api/mouseevent/initmouseevent/index.md | 2 +- .../web/api/mouseevent/movementx/index.md | 2 +- files/en-us/web/api/mouseevent/pagex/index.md | 7 ++- .../web/api/mutationevent/attrchange/index.md | 2 +- .../web/api/mutationevent/attrname/index.md | 2 +- files/en-us/web/api/mutationevent/index.md | 2 +- .../web/api/mutationevent/newvalue/index.md | 2 +- .../web/api/mutationevent/prevvalue/index.md | 2 +- .../api/mutationevent/relatednode/index.md | 2 +- .../api/namednodemap/getnameditemns/index.md | 2 +- .../api/namednodemap/setnameditemns/index.md | 2 +- .../navigationpreloadmanager/disable/index.md | 2 +- .../navigationpreloadmanager/enable/index.md | 2 +- .../getstate/index.md | 2 +- .../web/api/navigationpreloadmanager/index.md | 6 +-- .../setheadervalue/index.md | 4 +- .../web/api/navigator/clipboard/index.md | 2 +- .../api/navigator/getautoplaypolicy/index.md | 4 +- .../web/api/navigator/getgamepads/index.md | 2 +- .../web/api/navigator/getusermedia/index.md | 2 +- .../api/navigator/mediacapabilities/index.md | 2 +- .../registerprotocolhandler/index.md | 2 +- .../web-based_protocol_handlers/index.md | 8 ++-- .../unregisterprotocolhandler/index.md | 2 +- files/en-us/web/api/ndefreader/index.md | 2 +- .../web/api/ndefreader/reading_event/index.md | 2 +- .../ndefreader/readingerror_event/index.md | 2 +- files/en-us/web/api/ndefreader/scan/index.md | 2 +- files/en-us/web/api/ndefreader/write/index.md | 2 +- .../web/api/ndefreadingevent/message/index.md | 2 +- .../ndefreadingevent/serialnumber/index.md | 2 +- .../web/api/ndefrecord/torecords/index.md | 2 +- .../web/api/network_information_api/index.md | 2 +- .../networkinformation/downlinkmax/index.md | 2 +- files/en-us/web/api/node/isequalnode/index.md | 6 +-- files/en-us/web/api/node/issamenode/index.md | 6 +-- .../en-us/web/api/node/lookupprefix/index.md | 4 +- .../web/api/nodeiterator/detach/index.md | 2 +- .../web/api/nodeiterator/filter/index.md | 2 +- .../web/api/nodeiterator/nextnode/index.md | 2 +- .../pointerbeforereferencenode/index.md | 2 +- .../api/nodeiterator/previousnode/index.md | 2 +- .../api/nodeiterator/referencenode/index.md | 2 +- .../en-us/web/api/nodeiterator/root/index.md | 2 +- .../web/api/nodeiterator/whattoshow/index.md | 2 +- .../notification/maxactions_static/index.md | 2 +- .../web/api/notificationevent/action/index.md | 2 +- .../en-us/web/api/notificationevent/index.md | 2 +- .../notificationevent/notification/index.md | 2 +- .../blendfuncseparateioes/index.md | 2 +- .../web/api/oes_draw_buffers_indexed/index.md | 2 +- .../oes_texture_half_float_linear/index.md | 2 +- .../framebuffertexturemultiviewovr/index.md | 2 +- files/en-us/web/api/ovr_multiview2/index.md | 4 +- .../web/api/pagetransitionevent/index.md | 2 +- .../web/api/payment_handler_api/index.md | 6 +-- .../using_the_payment_request_api/index.md | 14 +++--- .../web/api/paymentrequest/abort/index.md | 31 ++++++------ .../paymentrequest/canmakepayment/index.md | 4 +- .../paymentmethodchange_event/index.md | 4 +- .../paymentrequest/shippingaddress/index.md | 2 +- .../shippingaddresschange_event/index.md | 2 +- .../paymentrequest/shippingoption/index.md | 2 +- .../shippingoptionchange_event/index.md | 2 +- .../payerdetailchange_event/index.md | 2 +- .../web/api/paymentresponse/retry/index.md | 2 +- .../paymentresponse/shippingaddress/index.md | 2 +- .../paymentresponse/shippingoption/index.md | 2 +- .../web/api/performance/measure/index.md | 2 +- .../resourcetimingbufferfull_event/index.md | 4 +- .../navigation_timing/index.md | 2 +- .../performance_api/performance_data/index.md | 6 +-- .../performance_api/server_timing/index.md | 4 +- .../api/performance_api/user_timing/index.md | 2 +- .../api/performanceentry/entrytype/index.md | 2 +- .../web/api/performanceeventtiming/index.md | 2 +- .../domcontentloadedeventend/index.md | 4 +- .../domcontentloadedeventstart/index.md | 4 +- .../dominteractive/index.md | 2 +- .../unloadeventend/index.md | 2 +- .../unloadeventstart/index.md | 2 +- .../performanceobserver/index.md | 2 +- .../web/api/performancepainttiming/index.md | 2 +- .../servertiming/index.md | 4 +- .../workerstart/index.md | 4 +- .../description/index.md | 6 +-- .../performanceservertiming/duration/index.md | 6 +-- .../web/api/performanceservertiming/index.md | 6 +-- .../api/performanceservertiming/name/index.md | 6 +-- .../performanceservertiming/tojson/index.md | 2 +- .../using_the_permissions_api/index.md | 2 +- .../permissionstatus/change_event/index.md | 2 +- files/en-us/web/api/permissionstatus/index.md | 2 +- .../web/api/permissionstatus/name/index.md | 2 +- .../web/api/permissionstatus/state/index.md | 2 +- .../web/api/pictureinpicturewindow/index.md | 2 +- files/en-us/web/api/pluginarray/index.md | 4 +- .../multi-touch_interaction/index.md | 2 +- .../pinch_zoom_gestures/index.md | 4 +- .../using_pointer_events/index.md | 2 +- .../api/pointerevent/altitudeangle/index.md | 2 +- .../api/pointerevent/azimuthangle/index.md | 2 +- .../web/api/pointerevent/isprimary/index.md | 2 +- .../web/api/pointerevent/pointerid/index.md | 2 +- .../web/api/pointerevent/pointertype/index.md | 2 +- .../web/api/pointerevent/pressure/index.md | 2 +- .../pointerevent/tangentialpressure/index.md | 2 +- .../en-us/web/api/pointerevent/tiltx/index.md | 2 +- .../en-us/web/api/pointerevent/tilty/index.md | 2 +- .../en-us/web/api/pointerevent/twist/index.md | 2 +- .../en-us/web/api/pointerevent/width/index.md | 2 +- .../web/api/popstateevent/state/index.md | 2 +- .../getimmediatestate/index.md | 6 +-- .../positionsensorvrdevice/getstate/index.md | 6 +-- .../web/api/positionsensorvrdevice/index.md | 6 +-- .../api/processinginstruction/sheet/index.md | 2 +- .../api/processinginstruction/target/index.md | 4 +- files/en-us/web/api/pushevent/data/index.md | 2 +- files/en-us/web/api/pushevent/index.md | 2 +- files/en-us/web/api/pushmanager/index.md | 2 +- .../api/pushmanager/registrations/index.md | 2 +- .../web/api/pushmanager/subscribe/index.md | 2 +- .../web/api/range/intersectsnode/index.md | 2 +- .../web/api/readablestream/cancel/index.md | 6 +-- files/en-us/web/api/readablestream/index.md | 2 +- .../respondwithnewview/index.md | 2 +- files/en-us/web/api/report/index.md | 2 +- files/en-us/web/api/request/cache/index.md | 2 +- files/en-us/web/api/request/request/index.md | 2 +- .../web/api/resize_observer_api/index.md | 4 +- files/en-us/web/api/resizeobserver/index.md | 6 +-- .../web/api/resizeobserver/observe/index.md | 10 ++-- .../resizeobserver/resizeobserver/index.md | 10 ++-- .../web/api/resizeobserver/unobserve/index.md | 10 ++-- .../borderboxsize/index.md | 4 +- .../contentboxsize/index.md | 4 +- .../resizeobserverentry/contentrect/index.md | 6 +-- .../web/api/resizeobserverentry/index.md | 6 +-- .../api/resizeobserverentry/target/index.md | 4 +- .../en-us/web/api/response/bodyused/index.md | 2 +- files/en-us/web/api/response/json/index.md | 2 +- .../web/api/response/json_static/index.md | 2 +- .../rtccertificate/getfingerprints/index.md | 8 ++-- .../bufferedamountlow_event/index.md | 2 +- .../api/rtcdatachannel/close_event/index.md | 2 +- .../api/rtcdatachannel/error_event/index.md | 6 +-- .../web/api/rtcdatachannel/label/index.md | 2 +- .../api/rtcdatachannel/message_event/index.md | 2 +- .../api/rtcdatachannel/open_event/index.md | 2 +- .../rtcdtmfsender/tonechange_event/index.md | 2 +- .../web/api/rtcdtmftonechangeevent/index.md | 2 +- .../rtcicecandidate/relatedaddress/index.md | 6 +-- .../api/rtcicecandidate/relatedport/index.md | 2 +- .../gatheringstatechange_event/index.md | 2 +- .../index.md | 2 +- .../statechange_event/index.md | 2 +- .../cantrickleicecandidates/index.md | 4 +- .../connectionstatechange_event/index.md | 2 +- .../datachannel_event/index.md | 2 +- .../icecandidate_event/index.md | 2 +- .../iceconnectionstatechange_event/index.md | 2 +- .../icegatheringstatechange_event/index.md | 2 +- .../negotiationneeded_event/index.md | 6 +-- .../rtcpeerconnection/removestream/index.md | 2 +- .../rtcpeerconnection/removetrack/index.md | 2 +- .../setlocaldescription/index.md | 2 +- .../signalingstatechange_event/index.md | 2 +- .../rtcpeerconnection/track_event/index.md | 2 +- .../candidate/index.md | 2 +- .../api/rtcpeerconnectioniceevent/index.md | 2 +- .../localid/index.md | 6 +-- .../getcapabilities_static/index.md | 2 +- .../getcapabilities_static/index.md | 2 +- .../statechange_event/index.md | 2 +- .../web/api/rtcsessiondescription/index.md | 4 +- .../rtcsessiondescription/index.md | 2 +- files/en-us/web/api/rtctrackevent/index.md | 2 +- .../en-us/web/api/screen/availheight/index.md | 2 +- .../en-us/web/api/screen_capture_api/index.md | 2 +- .../using_screen_capture/index.md | 8 ++-- files/en-us/web/api/scrolltimeline/index.md | 2 +- .../using_service_workers/index.md | 10 ++-- .../api/serviceworker/postmessage/index.md | 2 +- .../controller/index.md | 2 +- .../web/api/serviceworkercontainer/index.md | 4 +- .../serviceworkercontainer/register/index.md | 6 +-- .../activate_event/index.md | 2 +- .../canmakepayment_event/index.md | 2 +- .../contentdelete_event/index.md | 2 +- .../web/api/serviceworkerglobalscope/index.md | 4 +- .../install_event/index.md | 4 +- .../notificationclick_event/index.md | 6 +-- .../push_event/index.md | 2 +- .../pushsubscriptionchange_event/index.md | 6 +-- .../backgroundfetch/index.md | 2 +- .../api/serviceworkerregistration/index.md | 2 +- .../pushmanager/index.md | 2 +- .../api/shadowroot/slotassignment/index.md | 2 +- .../web/api/speechsynthesis/cancel/index.md | 4 +- .../web/api/speechsynthesis/pause/index.md | 4 +- .../web/api/speechsynthesis/pending/index.md | 4 +- .../web/api/speechsynthesis/resume/index.md | 4 +- .../web/api/speechsynthesis/speaking/index.md | 4 +- .../speechsynthesiserrorevent/error/index.md | 2 +- .../api/speechsynthesiserrorevent/index.md | 2 +- .../speechsynthesisevent/charindex/index.md | 2 +- .../speechsynthesisevent/charlength/index.md | 4 +- .../speechsynthesisevent/elapsedtime/index.md | 2 +- .../web/api/speechsynthesisevent/index.md | 4 +- .../api/speechsynthesisevent/name/index.md | 2 +- .../speechsynthesisevent/utterance/index.md | 2 +- .../boundary_event/index.md | 4 +- .../end_event/index.md | 4 +- .../error_event/index.md | 4 +- .../web/api/speechsynthesisvoice/index.md | 2 +- .../using_readable_byte_streams/index.md | 24 +++++----- .../using_readable_streams/index.md | 2 +- .../using_writable_streams/index.md | 4 +- files/en-us/web/api/structuredclone/index.md | 2 +- .../web/api/stylepropertymap/append/index.md | 2 +- files/en-us/web/api/stylesheet/href/index.md | 2 +- files/en-us/web/api/stylesheet/media/index.md | 10 ++-- files/en-us/web/api/stylesheetlist/index.md | 2 +- files/en-us/web/api/submitevent/index.md | 2 +- .../web/api/subtlecrypto/decrypt/index.md | 4 +- .../web/api/subtlecrypto/derivebits/index.md | 12 ++--- .../web/api/subtlecrypto/derivekey/index.md | 14 +++--- .../web/api/subtlecrypto/digest/index.md | 2 +- .../web/api/subtlecrypto/encrypt/index.md | 12 ++--- .../web/api/subtlecrypto/exportkey/index.md | 8 ++-- .../web/api/subtlecrypto/generatekey/index.md | 8 ++-- .../web/api/subtlecrypto/importkey/index.md | 10 ++-- .../en-us/web/api/subtlecrypto/sign/index.md | 6 +-- .../web/api/subtlecrypto/unwrapkey/index.md | 12 ++--- .../web/api/subtlecrypto/verify/index.md | 10 ++-- .../web/api/subtlecrypto/wrapkey/index.md | 24 +++++----- .../en-us/web/api/svgellipseelement/index.md | 2 +- .../svggraphicselement/copy_event/index.md | 2 +- .../previouspriority/index.md | 2 +- .../tasksignal/prioritychange_event/index.md | 2 +- .../web/api/textencoder/encodeinto/index.md | 4 +- files/en-us/web/api/textmetrics/index.md | 2 +- files/en-us/web/api/touch/clientx/index.md | 4 +- files/en-us/web/api/touch/clienty/index.md | 4 +- files/en-us/web/api/touch/force/index.md | 2 +- files/en-us/web/api/touch/identifier/index.md | 4 +- files/en-us/web/api/touch/pagex/index.md | 2 +- files/en-us/web/api/touch/pagey/index.md | 2 +- files/en-us/web/api/touch/screenx/index.md | 2 +- files/en-us/web/api/touch/target/index.md | 2 +- files/en-us/web/api/touch_events/index.md | 4 +- .../multi-touch_interaction/index.md | 8 ++-- .../touch_events/using_touch_events/index.md | 2 +- .../en-us/web/api/touchevent/altkey/index.md | 2 +- .../api/touchevent/changedtouches/index.md | 4 +- .../en-us/web/api/touchevent/touches/index.md | 2 +- files/en-us/web/api/touchlist/item/index.md | 2 +- files/en-us/web/api/touchlist/length/index.md | 2 +- files/en-us/web/api/transformstream/index.md | 4 +- .../transformstream/transformstream/index.md | 2 +- .../transformstreamdefaultcontroller/index.md | 2 +- .../transitionevent/pseudoelement/index.md | 2 +- .../web/api/treewalker/currentnode/index.md | 2 +- .../en-us/web/api/treewalker/filter/index.md | 2 +- .../web/api/treewalker/firstchild/index.md | 2 +- files/en-us/web/api/treewalker/index.md | 2 +- .../web/api/treewalker/lastchild/index.md | 2 +- .../web/api/treewalker/nextnode/index.md | 2 +- .../web/api/treewalker/nextsibling/index.md | 2 +- .../web/api/treewalker/parentnode/index.md | 2 +- .../web/api/treewalker/previousnode/index.md | 2 +- .../api/treewalker/previoussibling/index.md | 2 +- files/en-us/web/api/treewalker/root/index.md | 2 +- .../web/api/treewalker/whattoshow/index.md | 2 +- files/en-us/web/api/trustedscripturl/index.md | 2 +- .../web/api/trustedscripturl/tojson/index.md | 2 +- .../api/trustedscripturl/tostring/index.md | 2 +- .../createscripturl/index.md | 2 +- .../createpolicy/index.md | 2 +- files/en-us/web/api/uievent/which/index.md | 4 +- files/en-us/web/api/url/hash/index.md | 2 +- files/en-us/web/api/url/hostname/index.md | 2 +- files/en-us/web/api/url/href/index.md | 2 +- files/en-us/web/api/url/index.md | 2 +- files/en-us/web/api/url/password/index.md | 2 +- files/en-us/web/api/url/pathname/index.md | 2 +- files/en-us/web/api/url/protocol/index.md | 2 +- files/en-us/web/api/url/search/index.md | 2 +- files/en-us/web/api/url/tojson/index.md | 2 +- files/en-us/web/api/url/tostring/index.md | 2 +- files/en-us/web/api/url/username/index.md | 2 +- files/en-us/web/api/url_pattern_api/index.md | 8 ++-- files/en-us/web/api/urlpattern/test/index.md | 6 +-- .../urlsearchparams/urlsearchparams/index.md | 2 +- files/en-us/web/api/usb/getdevices/index.md | 2 +- files/en-us/web/api/usbdevice/opened/index.md | 2 +- .../isconfigsupported_static/index.md | 2 +- .../isconfigsupported_static/index.md | 2 +- .../web/api/view_transitions_api/index.md | 4 +- files/en-us/web/api/viewtimeline/index.md | 2 +- .../web/api/viewtransition/finished/index.md | 2 +- files/en-us/web/api/viewtransition/index.md | 4 +- .../web/api/viewtransition/ready/index.md | 4 +- .../web/api/visibilitystateentry/index.md | 2 +- .../vrdisplay/cancelanimationframe/index.md | 2 +- .../web/api/vrdisplay/exitpresent/index.md | 2 +- .../web/api/vrdisplay/getframedata/index.md | 6 +-- .../web/api/vrdisplay/ispresenting/index.md | 2 +- .../vrdisplay/requestanimationframe/index.md | 6 +-- .../web/api/vrdisplay/requestpresent/index.md | 2 +- .../web/api/vrdisplay/submitframe/index.md | 6 +-- .../web/api/vrdisplayevent/display/index.md | 2 +- files/en-us/web/api/vrdisplayevent/index.md | 2 +- .../web/api/vrdisplayevent/reason/index.md | 2 +- .../keyframe_formats/index.md | 12 ++--- .../using_the_web_animations_api/index.md | 8 ++-- .../advanced_techniques/index.md | 16 +++---- .../api/web_audio_api/best_practices/index.md | 4 +- .../index.md | 2 +- .../api/web_audio_api/simple_synth/index.md | 16 +++++-- .../web_audio_api/using_iir_filters/index.md | 8 ++-- .../using_web_audio_api/index.md | 8 ++-- .../web_audio_spatialization_basics/index.md | 6 +-- .../web_components/using_shadow_dom/index.md | 2 +- .../using_templates_and_slots/index.md | 6 +-- files/en-us/web/api/web_locks_api/index.md | 2 +- files/en-us/web/api/web_midi_api/index.md | 4 +- .../using_the_web_speech_api/index.md | 4 +- .../using_the_web_storage_api/index.md | 2 +- .../using_web_workers/index.md | 26 +++++----- .../blitframebuffer/index.md | 2 +- .../compressedtexsubimage3d/index.md | 2 +- .../getactiveuniformblockparameter/index.md | 2 +- .../getactiveuniforms/index.md | 2 +- .../getbuffersubdata/index.md | 2 +- .../getinternalformatparameter/index.md | 2 +- .../invalidatesubframebuffer/index.md | 2 +- .../teximage3d/index.md | 2 +- .../texsubimage3d/index.md | 2 +- .../transformfeedbackvaryings/index.md | 2 +- .../basic_2d_animation_example/index.md | 4 +- .../by_example/basic_scissoring/index.md | 2 +- .../by_example/canvas_size_and_webgl/index.md | 2 +- .../by_example/clearing_by_clicking/index.md | 4 +- .../by_example/clearing_with_colors/index.md | 2 +- .../by_example/color_masking/index.md | 2 +- .../by_example/detect_webgl/index.md | 2 +- .../webgl_api/by_example/hello_glsl/index.md | 2 +- .../hello_vertex_attributes/index.md | 6 +-- .../by_example/raining_rectangles/index.md | 2 +- .../simple_color_animation/index.md | 4 +- .../by_example/textures_from_code/index.md | 2 +- .../compressed_texture_formats/index.md | 4 +- .../index.md | 16 +++---- .../animating_objects_with_webgl/index.md | 2 +- .../animating_textures_in_webgl/index.md | 8 ++-- .../creating_3d_objects_using_webgl/index.md | 8 ++-- .../getting_started_with_webgl/index.md | 4 +- .../tutorial/lighting_in_webgl/index.md | 6 +-- .../index.md | 2 +- .../tutorial/using_textures_in_webgl/index.md | 8 ++-- .../webgl_api/webgl_best_practices/index.md | 2 +- .../webgl_model_view_projection/index.md | 8 ++-- .../webgl_compressed_texture_astc/index.md | 2 +- .../api/webgl_compressed_texture_etc/index.md | 2 +- .../webgl_compressed_texture_etc1/index.md | 2 +- .../webgl_compressed_texture_pvrtc/index.md | 2 +- .../webgl_compressed_texture_s3tc/index.md | 2 +- .../index.md | 2 +- .../gettranslatedshadersource/index.md | 2 +- .../web/api/webgl_depth_texture/index.md | 2 +- .../en-us/web/api/webgl_draw_buffers/index.md | 8 ++-- .../webgl_lose_context/losecontext/index.md | 2 +- .../restorecontext/index.md | 2 +- files/en-us/web/api/webgl_multi_draw/index.md | 6 +-- .../multidrawarraysinstancedwebgl/index.md | 2 +- .../multidrawelementsinstancedwebgl/index.md | 2 +- .../multidrawelementswebgl/index.md | 2 +- .../en-us/web/api/webglcontextevent/index.md | 2 +- .../webglcontextevent/statusmessage/index.md | 4 +- .../compressedteximage2d/index.md | 2 +- .../compressedtexsubimage2d/index.md | 2 +- .../enablevertexattribarray/index.md | 2 +- .../framebufferrenderbuffer/index.md | 2 +- .../framebuffertexture2d/index.md | 2 +- .../index.md | 2 +- .../makexrcompatible/index.md | 4 +- .../webglrenderingcontext/readpixels/index.md | 4 +- .../texparameter/index.md | 2 +- .../unpackcolorspace/index.md | 2 +- files/en-us/web/api/webglshader/index.md | 2 +- files/en-us/web/api/webgpu_api/index.md | 4 +- .../connect_peers/index.md | 2 +- .../signaling_and_video_calling/index.md | 4 +- .../simple_rtcdatachannel_sample/index.md | 6 +-- .../web/api/webrtc_api/using_dtmf/index.md | 6 +-- .../index.md | 2 +- .../writing_websocket_server/index.md | 2 +- .../webvr_api/using_the_webvr_api/index.md | 8 ++-- .../using_vr_controllers_with_webvr/index.md | 4 +- .../bounded_reference_spaces/index.md | 2 +- .../web/api/webxr_device_api/cameras/index.md | 4 +- .../movement_and_motion/index.md | 26 +++++----- .../api/webxr_device_api/rendering/index.md | 2 +- .../spatial_tracking/index.md | 2 +- .../startup_and_shutdown/index.md | 4 +- .../web/api/window/customelements/index.md | 6 +-- .../window/deviceorientation_event/index.md | 2 +- .../web/api/window/devicepixelratio/index.md | 4 +- files/en-us/web/api/window/find/index.md | 2 +- .../web/api/window/getcomputedstyle/index.md | 2 +- .../web/api/window/hashchange_event/index.md | 2 +- files/en-us/web/api/window/location/index.md | 8 ++-- .../en-us/web/api/window/matchmedia/index.md | 4 +- .../en-us/web/api/window/ondragdrop/index.md | 2 +- files/en-us/web/api/window/open/index.md | 8 ++-- .../window/orientationchange_event/index.md | 4 +- .../web/api/window/pagehide_event/index.md | 2 +- .../en-us/web/api/window/pageyoffset/index.md | 5 +- .../web/api/window/popstate_event/index.md | 4 +- .../en-us/web/api/window/postmessage/index.md | 8 ++-- .../window/rejectionhandled_event/index.md | 2 +- files/en-us/web/api/window/resizeby/index.md | 2 +- .../en-us/web/api/window/screenleft/index.md | 2 +- files/en-us/web/api/window/screentop/index.md | 2 +- files/en-us/web/api/window/screenx/index.md | 2 +- files/en-us/web/api/window/screeny/index.md | 2 +- .../web/api/window/unload_event/index.md | 4 +- .../en-us/web/api/windowclient/focus/index.md | 2 +- .../web/api/windowclient/focused/index.md | 2 +- files/en-us/web/api/windowclient/index.md | 2 +- .../api/windowclient/visibilitystate/index.md | 2 +- .../geometrychange_event/index.md | 4 +- .../web/api/windowcontrolsoverlay/index.md | 2 +- .../index.md | 2 +- .../en-us/web/api/worker/postmessage/index.md | 10 ++-- .../mediacapabilities/index.md | 2 +- .../en-us/web/api/worklet/addmodule/index.md | 2 +- .../web/api/writablestream/abort/index.md | 2 +- .../web/api/writablestream/close/index.md | 2 +- .../web/api/writablestream/getwriter/index.md | 2 +- files/en-us/web/api/writablestream/index.md | 2 +- .../web/api/writablestream/locked/index.md | 2 +- .../writablestream/writablestream/index.md | 2 +- .../signal/index.md | 2 +- .../abort/index.md | 2 +- .../close/index.md | 2 +- .../closed/index.md | 2 +- .../desiredsize/index.md | 2 +- .../api/writablestreamdefaultwriter/index.md | 2 +- .../releaselock/index.md | 2 +- .../writablestreamdefaultwriter/index.md | 2 +- .../write/index.md | 2 +- .../html_in_xmlhttprequest/index.md | 2 +- .../api/xmlhttprequest/loadend_event/index.md | 4 +- .../xmlhttprequest/progress_event/index.md | 4 +- .../index.md | 2 +- .../using_xmlhttprequest/index.md | 10 ++-- .../web/api/xmlhttprequestupload/index.md | 4 +- .../progress_event/index.md | 2 +- .../xpathevaluator/createexpression/index.md | 2 +- .../web/api/xpathevaluator/evaluate/index.md | 2 +- files/en-us/web/api/xpathevaluator/index.md | 2 +- .../xpathevaluator/xpathevaluator/index.md | 2 +- .../web/api/xpathexpression/evaluate/index.md | 2 +- files/en-us/web/api/xpathexpression/index.md | 2 +- .../web/api/xpathresult/booleanvalue/index.md | 2 +- .../xpathresult/invaliditeratorstate/index.md | 2 +- .../web/api/xpathresult/iteratenext/index.md | 2 +- .../web/api/xpathresult/numbervalue/index.md | 2 +- .../web/api/xpathresult/resulttype/index.md | 2 +- .../api/xpathresult/singlenodevalue/index.md | 2 +- .../web/api/xpathresult/snapshotitem/index.md | 2 +- .../api/xpathresult/snapshotlength/index.md | 2 +- .../web/api/xpathresult/stringvalue/index.md | 2 +- files/en-us/web/api/xranchor/index.md | 2 +- .../web/api/xrframe/createanchor/index.md | 2 +- .../index.md | 2 +- .../api/xrhittestresult/createanchor/index.md | 2 +- files/en-us/web/api/xrhittestresult/index.md | 2 +- .../api/xrinputsourcearray/length/index.md | 2 +- .../web/api/xrinputsourceevent/frame/index.md | 2 +- .../en-us/web/api/xrinputsourceevent/index.md | 2 +- .../en-us/web/api/xrjointpose/radius/index.md | 2 +- .../xrprojectionlayer/textureheight/index.md | 2 +- .../xrprojectionlayer/texturewidth/index.md | 2 +- files/en-us/web/api/xrray/xrray/index.md | 2 +- .../getoffsetreferencespace/index.md | 4 +- files/en-us/web/api/xrreferencespace/index.md | 2 +- files/en-us/web/api/xrrigidtransform/index.md | 2 +- .../web/api/xrrigidtransform/inverse/index.md | 2 +- .../web/api/xrrigidtransform/matrix/index.md | 2 +- .../api/xrrigidtransform/orientation/index.md | 2 +- .../xrrigidtransform/index.md | 2 +- files/en-us/web/api/xrsession/index.md | 2 +- .../xrsession/requestanimationframe/index.md | 2 +- .../index.md | 2 +- .../web/api/xrsession/select_event/index.md | 4 +- .../web/api/xrsession/squeeze_event/index.md | 4 +- .../web/api/xrsystem/requestsession/index.md | 2 +- .../xrtransientinputhittestresult/index.md | 4 +- .../inputsource/index.md | 2 +- .../results/index.md | 2 +- .../xrtransientinputhittestsource/index.md | 2 +- files/en-us/web/api/xrview/index.md | 2 +- files/en-us/web/api/xrviewport/index.md | 2 +- .../api/xrwebglbinding/getsubimage/index.md | 2 +- .../xrwebglbinding/getviewsubimage/index.md | 4 +- .../api/xrwebglsubimage/colortexture/index.md | 4 +- .../depthstenciltexture/index.md | 4 +- .../api/xrwebglsubimage/imageindex/index.md | 4 +- .../web/css/-webkit-mask-position-x/index.md | 5 +- .../web/css/-webkit-mask-position-y/index.md | 5 +- .../@counter-style/additive-symbols/index.md | 13 +++-- .../web/css/@counter-style/fallback/index.md | 2 +- .../web/css/@counter-style/range/index.md | 14 ++++-- .../web/css/@counter-style/symbols/index.md | 4 +- .../web/css/@counter-style/system/index.md | 16 ++++++- .../web/css/@font-face/font-display/index.md | 5 +- .../web/css/@font-face/font-stretch/index.md | 5 +- .../font-variation-settings/index.md | 4 +- .../web/css/@font-face/font-weight/index.md | 5 +- files/en-us/web/css/@font-face/index.md | 10 ++-- files/en-us/web/css/@font-face/src/index.md | 24 ++++++---- .../@font-palette-values/font-family/index.md | 4 +- .../web/css/@font-palette-values/index.md | 4 +- .../override-colors/index.md | 10 +++- .../web/css/@media/forced-colors/index.md | 4 +- .../css/@media/prefers-reduced-data/index.md | 18 +++++-- files/en-us/web/css/@supports/index.md | 3 +- files/en-us/web/css/_colon_defined/index.md | 2 +- files/en-us/web/css/_colon_disabled/index.md | 2 +- files/en-us/web/css/_colon_lang/index.md | 4 +- .../web/css/_colon_nth-last-child/index.md | 3 +- .../web/css/_doublecolon_before/index.md | 2 +- .../en-us/web/css/_doublecolon_part/index.md | 6 ++- .../web/css/_doublecolon_slotted/index.md | 2 +- files/en-us/web/css/animation-name/index.md | 5 +- .../en-us/web/css/animation-timeline/index.md | 5 +- files/en-us/web/css/animation/index.md | 14 ++++-- .../en-us/web/css/background-origin/index.md | 4 +- .../web/css/background-position/index.md | 8 +++- files/en-us/web/css/blend-mode/index.md | 6 ++- files/en-us/web/css/box-align/index.md | 2 +- .../web/css/box-decoration-break/index.md | 4 +- files/en-us/web/css/box-flex/index.md | 2 +- files/en-us/web/css/box-shadow/index.md | 12 +++-- files/en-us/web/css/clip-path/index.md | 4 +- .../web/css/contain-intrinsic-size/index.md | 4 +- files/en-us/web/css/content/index.md | 4 +- .../web/css/css_animations/tips/index.md | 7 ++- .../using_multiple_backgrounds/index.md | 10 +++- .../css/css_colors/applying_color/index.md | 21 ++++++-- .../css_fonts/opentype_fonts_guide/index.md | 4 +- .../css_fonts/variable_fonts_guide/index.md | 4 +- .../index.md | 5 +- .../index.md | 25 ++++++++-- .../css_images/using_css_gradients/index.md | 16 +++++-- .../stacking_context/index.md | 4 +- .../using_css_transitions/index.md | 8 +++- files/en-us/web/css/cursor/index.md | 13 +++-- .../css/filter-function/brightness/index.md | 4 +- .../web/css/filter-function/contrast/index.md | 4 +- .../css/filter-function/hue-rotate/index.md | 4 +- files/en-us/web/css/font-family/index.md | 4 +- .../web/css/font-feature-settings/index.md | 4 +- files/en-us/web/css/font-stretch/index.md | 4 +- files/en-us/web/css/image/paint/index.md | 2 +- files/en-us/web/css/length/index.md | 10 ++-- files/en-us/web/css/line-height/index.md | 5 +- files/en-us/web/css/mask-position/index.md | 4 +- files/en-us/web/css/mask-repeat/index.md | 9 +++- files/en-us/web/css/mask/index.md | 4 +- files/en-us/web/css/max-block-size/index.md | 6 ++- files/en-us/web/css/mix-blend-mode/index.md | 4 +- files/en-us/web/css/object-fit/index.md | 4 +- files/en-us/web/css/place-content/index.md | 2 +- files/en-us/web/css/position/index.md | 10 +++- .../en-us/web/css/print-color-adjust/index.md | 4 +- .../web/css/shorthand_properties/index.md | 4 +- files/en-us/web/css/system-color/index.md | 4 +- files/en-us/web/css/text-rendering/index.md | 21 ++++++-- files/en-us/web/css/text-shadow/index.md | 9 +++- .../web/css/transition-property/index.md | 5 +- files/en-us/web/css/transition/index.md | 4 +- .../creating_and_triggering_events/index.md | 6 +-- .../en-us/web/events/event_handlers/index.md | 2 +- files/en-us/web/guide/ajax/index.md | 6 +-- .../index.md | 4 +- .../cross-browser_audio_basics/index.md | 2 +- .../cross_browser_video_player/index.md | 4 +- .../guide/audio_and_video_delivery/index.md | 8 ++-- .../video_player_styling_basics/index.md | 6 +-- .../webaudio_playbackrate_explained/index.md | 2 +- .../audio_and_video_manipulation/index.md | 6 +-- files/en-us/web/guide/printing/index.md | 8 ++-- files/en-us/web/html/element/a/index.md | 4 +- files/en-us/web/html/element/details/index.md | 10 +++- files/en-us/web/html/element/frame/index.md | 2 +- .../en-us/web/html/element/frameset/index.md | 2 +- files/en-us/web/html/element/head/index.md | 2 +- files/en-us/web/html/element/hgroup/index.md | 2 +- files/en-us/web/html/element/html/index.md | 2 +- .../web/html/element/input/button/index.md | 2 +- .../web/html/element/input/file/index.md | 2 +- files/en-us/web/html/element/input/index.md | 7 ++- .../web/html/element/input/radio/index.md | 2 +- .../web/html/element/input/time/index.md | 2 +- .../en-us/web/html/element/noframes/index.md | 2 +- files/en-us/web/html/element/select/index.md | 2 +- files/en-us/web/html/element/style/index.md | 6 +-- files/en-us/web/html/element/tbody/index.md | 12 ++++- files/en-us/web/html/element/tr/index.md | 12 ++++- files/en-us/web/html/element/var/index.md | 5 +- .../global_attributes/contextmenu/index.md | 4 +- .../html/global_attributes/hidden/index.md | 2 +- .../quirks_mode_and_standards_mode/index.md | 2 +- .../index.md | 4 +- files/en-us/web/http/csp/index.md | 2 +- .../index.md | 2 +- .../en-us/web/manifest/share_target/index.md | 2 +- files/en-us/web/mathml/authoring/index.md | 8 ++-- .../performance/how_browsers_work/index.md | 2 +- .../guides/making_pwas_installable/index.md | 2 +- .../offline_and_background_operation/index.md | 6 +-- .../how_to/share_data_between_apps/index.md | 2 +- .../cycletracker/html_and_css/index.md | 6 +-- .../javascript_functionality/index.md | 4 +- .../cycletracker/service_workers/index.md | 2 +- .../js13kgames/app_structure/index.md | 6 +-- .../offline_service_workers/index.md | 10 ++-- .../re-engageable_notifications_push/index.md | 6 +-- .../svg/attribute/dominant-baseline/index.md | 6 ++- .../en-us/web/svg/attribute/kerning/index.md | 6 ++- .../en-us/web/svg/attribute/operator/index.md | 5 +- files/en-us/web/svg/attribute/side/index.md | 5 +- files/en-us/web/svg/attribute/target/index.md | 5 +- .../web/svg/attribute/textlength/index.md | 9 ++-- .../web/svg/namespaces_crash_course/index.md | 2 +- .../svg_in_html_introduction/index.md | 2 +- .../index.md | 30 ++++++------ files/en-us/web/xpath/snippets/index.md | 4 +- .../index.md | 2 +- files/en-us/webassembly/c_to_wasm/index.md | 2 +- .../webassembly/existing_c_to_wasm/index.md | 2 +- .../global/global/index.md | 6 +-- .../javascript_interface/global/index.md | 6 +-- .../webassembly/javascript_interface/index.md | 2 +- .../instance/exports/index.md | 2 +- .../javascript_interface/instance/index.md | 2 +- .../instance/instance/index.md | 2 +- .../javascript_interface/instantiate/index.md | 2 +- .../instantiatestreaming/index.md | 2 +- .../module/exports/index.md | 2 +- .../javascript_interface/module/index.md | 2 +- .../module/module/index.md | 2 +- .../javascript_interface/table/index.md | 2 +- .../javascript_interface/table/set/index.md | 2 +- .../javascript_interface/table/table/index.md | 2 +- .../javascript_interface/tag/index.md | 2 +- .../javascript_interface/validate/index.md | 2 +- .../webassembly/loading_and_running/index.md | 4 +- files/en-us/webassembly/rust_to_wasm/index.md | 4 +- .../understanding_the_text_format/index.md | 4 +- .../using_the_javascript_api/index.md | 8 ++-- package.json | 2 +- yarn.lock | 8 ++-- 1142 files changed, 2535 insertions(+), 1964 deletions(-) diff --git a/files/en-us/games/techniques/2d_collision_detection/index.md b/files/en-us/games/techniques/2d_collision_detection/index.md index bbee16914b85745..929099bf7e4b29f 100644 --- a/files/en-us/games/techniques/2d_collision_detection/index.md +++ b/files/en-us/games/techniques/2d_collision_detection/index.md @@ -100,7 +100,7 @@ Crafty.c("Circle", { this.y + this.radius, this.radius, 0, - Math.PI * 2 + Math.PI * 2, ); ctx.closePath(); ctx.fill(); diff --git a/files/en-us/games/techniques/3d_collision_detection/bounding_volume_collision_detection_with_three.js/index.md b/files/en-us/games/techniques/3d_collision_detection/bounding_volume_collision_detection_with_three.js/index.md index d315ee75a843caf..57595b6dadf0301 100644 --- a/files/en-us/games/techniques/3d_collision_detection/bounding_volume_collision_detection_with_three.js/index.md +++ b/files/en-us/games/techniques/3d_collision_detection/bounding_volume_collision_detection_with_three.js/index.md @@ -19,13 +19,13 @@ To create a **`Box3` instance**, we need to provide the **lower and upper bounda ```js const knot = new THREE.Mesh( new THREE.TorusKnotGeometry(0.5, 0.1), - new MeshNormalMaterial({}) + new MeshNormalMaterial({}), ); knot.geometry.computeBoundingBox(); const knotBBox = new Box3( knot.geometry.boundingBox.min, - knot.geometry.boundingBox.max + knot.geometry.boundingBox.max, ); ``` @@ -36,7 +36,7 @@ A more simple alternative that fixes the previous issue is to set those boundari ```js const knot = new THREE.Mesh( new THREE.TorusKnotGeometry(0.5, 0.1), - new MeshNormalMaterial({}) + new MeshNormalMaterial({}), ); const knotBBox = new Box3(new THREE.Vector3(), new THREE.Vector3()); @@ -50,12 +50,12 @@ Instantiating **`Sphere` objects** is similar. We need to provide the sphere's c ```js const knot = new THREE.Mesh( new THREE.TorusKnotGeometry(0.5, 0.1), - new MeshNormalMaterial({}) + new MeshNormalMaterial({}), ); const knotBSphere = new Sphere( knot.position, - knot.geometry.boundingSphere.radius + knot.geometry.boundingSphere.radius, ); ``` @@ -144,7 +144,7 @@ To use it, we need to create a new `BoxHelper` instance and supply the geometry ```js const knot = new THREE.Mesh( new THREE.TorusKnotGeometry(0.5, 0.1), - new THREE.MeshNormalMaterial({}) + new THREE.MeshNormalMaterial({}), ); const knotBoxHelper = new THREE.BoxHelper(knot, 0x00ff00); scene.add(knotBoxHelper); diff --git a/files/en-us/games/techniques/3d_collision_detection/index.md b/files/en-us/games/techniques/3d_collision_detection/index.md index 22c585425be4423..7dc20922f620f7b 100644 --- a/files/en-us/games/techniques/3d_collision_detection/index.md +++ b/files/en-us/games/techniques/3d_collision_detection/index.md @@ -91,7 +91,7 @@ function isPointInsideSphere(point, sphere) { const distance = Math.sqrt( (point.x - sphere.x) * (point.x - sphere.x) + (point.y - sphere.y) * (point.y - sphere.y) + - (point.z - sphere.z) * (point.z - sphere.z) + (point.z - sphere.z) * (point.z - sphere.z), ); return distance < sphere.radius; } @@ -118,7 +118,7 @@ function intersect(sphere, other) { const distance = Math.sqrt( (sphere.x - other.x) * (sphere.x - other.x) + (sphere.y - other.y) * (sphere.y - other.y) + - (sphere.z - other.z) * (sphere.z - other.z) + (sphere.z - other.z) * (sphere.z - other.z), ); return distance < sphere.radius + other.radius; } @@ -143,7 +143,7 @@ function intersect(sphere, box) { const distance = Math.sqrt( (x - sphere.x) * (x - sphere.x) + (y - sphere.y) * (y - sphere.y) + - (z - sphere.z) * (z - sphere.z) + (z - sphere.z) * (z - sphere.z), ); return distance < sphere.radius; diff --git a/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_a-frame/index.md b/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_a-frame/index.md index cac3b1808d3b4c9..fcd7bb48728d3db 100644 --- a/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_a-frame/index.md +++ b/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_a-frame/index.md @@ -29,7 +29,7 @@ Let's start by setting up an environment to create something with A-Frame. We'll The first step is to create an HTML document — inside your project directory, create a new `index.html` file, and save the follow HTML inside it: ```html - + diff --git a/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_babylon.js/index.md b/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_babylon.js/index.md index 13d923fa76b1076..19850fcae6ba371 100644 --- a/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_babylon.js/index.md +++ b/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_babylon.js/index.md @@ -24,7 +24,7 @@ To start developing with Babylon.js, you don't need much. You should start off b Here's the HTML structure we will use: ```html - + @@ -98,7 +98,7 @@ Now the setup code is in place we need to think about implementing the standard const camera = new BABYLON.FreeCamera( "camera", new BABYLON.Vector3(0, 0, -10), - scene + scene, ); ``` @@ -114,7 +114,7 @@ There are various [light sources](https://doc.babylonjs.com/divingDeeper/lights/ const light = new BABYLON.PointLight( "light", new BABYLON.Vector3(10, 10, 0), - scene + scene, ); ``` diff --git a/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_playcanvas/engine/index.md b/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_playcanvas/engine/index.md index 2c296cf29d576a3..aba296219a646b5 100644 --- a/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_playcanvas/engine/index.md +++ b/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_playcanvas/engine/index.md @@ -28,7 +28,7 @@ To start developing with PlayCanvas, you don't need much. You should start off b Here's the HTML structure we will use. ```html - + diff --git a/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_three.js/index.md b/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_three.js/index.md index 7cf98858a2f354b..7b1e20495140d7b 100644 --- a/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_three.js/index.md +++ b/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_three.js/index.md @@ -24,7 +24,7 @@ To start developing with Three.js, you don't need much. You should: Here's the HTML structure we will use: ```html - + diff --git a/files/en-us/games/techniques/3d_on_the_web/glsl_shaders/index.md b/files/en-us/games/techniques/3d_on_the_web/glsl_shaders/index.md index 90f601ca7c741a2..d161e7d27e306cf 100644 --- a/files/en-us/games/techniques/3d_on_the_web/glsl_shaders/index.md +++ b/files/en-us/games/techniques/3d_on_the_web/glsl_shaders/index.md @@ -47,7 +47,7 @@ To start with the WebGL shaders you don't need much. You should: Here's the HTML structure we will use. ```html - + diff --git a/files/en-us/games/techniques/audio_for_web_games/index.md b/files/en-us/games/techniques/audio_for_web_games/index.md index 0298e27f923e5c2..47eae0abfe90249 100644 --- a/files/en-us/games/techniques/audio_for_web_games/index.md +++ b/files/en-us/games/techniques/audio_for_web_games/index.md @@ -177,7 +177,7 @@ for (const button of buttons) { stopTime = button.getAttribute("data-stop"); myAudio.play(); }, - false + false, ); } @@ -188,7 +188,7 @@ myAudio.addEventListener( myAudio.pause(); } }, - false + false, ); ``` diff --git a/files/en-us/games/techniques/control_mechanisms/desktop_with_mouse_and_keyboard/index.md b/files/en-us/games/techniques/control_mechanisms/desktop_with_mouse_and_keyboard/index.md index 3facd3484ebbe55..d91fb6b9fc23463 100644 --- a/files/en-us/games/techniques/control_mechanisms/desktop_with_mouse_and_keyboard/index.md +++ b/files/en-us/games/techniques/control_mechanisms/desktop_with_mouse_and_keyboard/index.md @@ -105,7 +105,7 @@ const buttonEnclave = this.add.button( 10, "logo-enclave", this.clickEnclave, - this + this, ); ``` @@ -117,7 +117,7 @@ this.buttonShoot = this.add.button( 0, "button-alpha", null, - this + this, ); this.buttonShoot.onInputDown.add(this.shootingPressed, this); this.buttonShoot.onInputUp.add(this.shootingReleased, this); diff --git a/files/en-us/games/techniques/control_mechanisms/mobile_touch/index.md b/files/en-us/games/techniques/control_mechanisms/mobile_touch/index.md index 68bb7dfef0f4f1f..ff0d1a06fe94f6e 100644 --- a/files/en-us/games/techniques/control_mechanisms/mobile_touch/index.md +++ b/files/en-us/games/techniques/control_mechanisms/mobile_touch/index.md @@ -115,7 +115,7 @@ const buttonEnclave = this.add.button( 10, "logo-enclave", this.clickEnclave, - this + this, ); ``` @@ -129,7 +129,7 @@ this.buttonShoot = this.add.button( 0, "button-alpha", null, - this + this, ); this.buttonShoot.onInputDown.add(this.goShootPressed, this); this.buttonShoot.onInputUp.add(this.goShootReleased, this); diff --git a/files/en-us/games/techniques/control_mechanisms/other/index.md b/files/en-us/games/techniques/control_mechanisms/other/index.md index b7a3dfef182bc08..0ee9c8512fbb553 100644 --- a/files/en-us/games/techniques/control_mechanisms/other/index.md +++ b/files/en-us/games/techniques/control_mechanisms/other/index.md @@ -36,7 +36,7 @@ window.addEventListener( (event) => { console.log(event.keyCode); }, - true + true, ); ``` @@ -62,7 +62,7 @@ window.addEventListener( // … } }, - true + true, ); ``` diff --git a/files/en-us/games/techniques/tilemaps/square_tilemaps_implementation_colon__scrolling_maps/index.md b/files/en-us/games/techniques/tilemaps/square_tilemaps_implementation_colon__scrolling_maps/index.md index 6036ae0f5268526..354f1f1e426ea96 100644 --- a/files/en-us/games/techniques/tilemaps/square_tilemaps_implementation_colon__scrolling_maps/index.md +++ b/files/en-us/games/techniques/tilemaps/square_tilemaps_implementation_colon__scrolling_maps/index.md @@ -64,7 +64,7 @@ for (let c = startCol; c <= endCol; c++) { Math.round(x), // target x Math.round(y), // target y map.tsize, // target width - map.tsize // target height + map.tsize, // target height ); } } diff --git a/files/en-us/games/techniques/tilemaps/square_tilemaps_implementation_colon__static_maps/index.md b/files/en-us/games/techniques/tilemaps/square_tilemaps_implementation_colon__static_maps/index.md index 3d5e6af5f79f3c2..a7265bd0c054b53 100644 --- a/files/en-us/games/techniques/tilemaps/square_tilemaps_implementation_colon__static_maps/index.md +++ b/files/en-us/games/techniques/tilemaps/square_tilemaps_implementation_colon__static_maps/index.md @@ -84,7 +84,7 @@ for (let c = 0; c < map.cols; c++) { c * map.tsize, // target x r * map.tsize, // target y map.tsize, // target width - map.tsize // target height + map.tsize, // target height ); } } diff --git a/files/en-us/games/tutorials/2d_breakout_game_phaser/buttons/index.md b/files/en-us/games/tutorials/2d_breakout_game_phaser/buttons/index.md index 71c12265efcc453..4be0bf3dc939ef3 100644 --- a/files/en-us/games/tutorials/2d_breakout_game_phaser/buttons/index.md +++ b/files/en-us/games/tutorials/2d_breakout_game_phaser/buttons/index.md @@ -46,7 +46,7 @@ startButton = game.add.button( this, 1, 0, - 2 + 2, ); startButton.anchor.set(0.5); ``` diff --git a/files/en-us/games/tutorials/2d_breakout_game_phaser/extra_lives/index.md b/files/en-us/games/tutorials/2d_breakout_game_phaser/extra_lives/index.md index 2b9f2804e68a741..9b0cd87f907c358 100644 --- a/files/en-us/games/tutorials/2d_breakout_game_phaser/extra_lives/index.md +++ b/files/en-us/games/tutorials/2d_breakout_game_phaser/extra_lives/index.md @@ -38,7 +38,7 @@ lifeLostText = game.add.text( game.world.width * 0.5, game.world.height * 0.5, "Life lost, click to continue", - { font: "18px Arial", fill: "#0095DD" } + { font: "18px Arial", fill: "#0095DD" }, ); lifeLostText.anchor.set(0.5); lifeLostText.visible = false; @@ -64,14 +64,14 @@ livesText = game.add.text( game.world.width - 5, 5, `Lives: ${lives}`, - textStyle + textStyle, ); livesText.anchor.set(1, 0); lifeLostText = game.add.text( game.world.width * 0.5, game.world.height * 0.5, "Life lost, click to continue", - textStyle + textStyle, ); lifeLostText.anchor.set(0.5); lifeLostText.visible = false; diff --git a/files/en-us/games/tutorials/2d_breakout_game_phaser/initialize_the_framework/index.md b/files/en-us/games/tutorials/2d_breakout_game_phaser/initialize_the_framework/index.md index 79a2dd5eab71f2b..5c5d5706bdf6f18 100644 --- a/files/en-us/games/tutorials/2d_breakout_game_phaser/initialize_the_framework/index.md +++ b/files/en-us/games/tutorials/2d_breakout_game_phaser/initialize_the_framework/index.md @@ -17,7 +17,7 @@ Before we can start writing the game's functionality, we need to create a basic The HTML document structure is quite simple, as the game will be rendered entirely on the {{htmlelement("canvas")}} element generated by the framework. Using your favorite text editor, create a new HTML document, save it as `index.html`, in a sensible location, and add the following code to it: ```html - + diff --git a/files/en-us/games/tutorials/2d_breakout_game_phaser/player_paddle_and_controls/index.md b/files/en-us/games/tutorials/2d_breakout_game_phaser/player_paddle_and_controls/index.md index bc3577b18fcbf90..3748fed46689024 100644 --- a/files/en-us/games/tutorials/2d_breakout_game_phaser/player_paddle_and_controls/index.md +++ b/files/en-us/games/tutorials/2d_breakout_game_phaser/player_paddle_and_controls/index.md @@ -46,7 +46,7 @@ Next up, we will initialize our paddle by adding the following `add.sprite()` ca paddle = game.add.sprite( game.world.width * 0.5, game.world.height - 5, - "paddle" + "paddle", ); ``` diff --git a/files/en-us/games/tutorials/2d_breakout_game_pure_javascript/create_the_canvas_and_draw_on_it/index.md b/files/en-us/games/tutorials/2d_breakout_game_pure_javascript/create_the_canvas_and_draw_on_it/index.md index f7dce00989b01f0..bffb99ff63ef1a1 100644 --- a/files/en-us/games/tutorials/2d_breakout_game_pure_javascript/create_the_canvas_and_draw_on_it/index.md +++ b/files/en-us/games/tutorials/2d_breakout_game_pure_javascript/create_the_canvas_and_draw_on_it/index.md @@ -17,7 +17,7 @@ Before we can start writing the game's functionality, we need to create a basic The HTML document structure is quite simple, as the game will be rendered entirely on the {{htmlelement("canvas")}} element. Using your favorite text editor, create a new HTML document, save it as `index.html`, in a sensible location, and add the following code to it: ```html - + diff --git a/files/en-us/games/tutorials/html5_gamedev_phaser_device_orientation/index.md b/files/en-us/games/tutorials/html5_gamedev_phaser_device_orientation/index.md index c6f342e0cf66eb8..179230d20c06dcc 100644 --- a/files/en-us/games/tutorials/html5_gamedev_phaser_device_orientation/index.md +++ b/files/en-us/games/tutorials/html5_gamedev_phaser_device_orientation/index.md @@ -35,7 +35,7 @@ You can open the index file in your favorite browser to launch the game and try We will be rendering our game on Canvas, but we won't do it manually — this will be taken care of by the framework. Let's set it up: our starting point is the `index.html` file with the following content. You can create this yourself if you want to follow along: ```html - + @@ -135,12 +135,12 @@ Ball.Preloader.prototype = { this.preloadBg = this.add.sprite( (Ball._WIDTH - 297) * 0.5, (Ball._HEIGHT - 145) * 0.5, - "preloaderBg" + "preloaderBg", ); this.preloadBar = this.add.sprite( (Ball._WIDTH - 158) * 0.5, (Ball._HEIGHT - 50) * 0.5, - "preloaderBar" + "preloaderBar", ); this.load.setPreloadSprite(this.preloadBar); @@ -181,7 +181,7 @@ Ball.MainMenu.prototype = { this, 2, 0, - 1 + 1, ); this.startButton.anchor.set(0.5, 0); this.startButton.input.useHandCursor = true; @@ -218,7 +218,7 @@ Ball.Howto.prototype = { 0, "screen-howtoplay", this.startGame, - this + this, ); }, startGame() { @@ -400,14 +400,14 @@ this.physics.arcade.collide( this.borderGroup, this.wallCollision, null, - this + this, ); this.physics.arcade.collide( this.ball, this.levels[this.level - 1], this.wallCollision, null, - this + this, ); ``` @@ -463,13 +463,13 @@ this.timerText = this.game.add.text( 15, 15, `Time: ${this.timer}`, - this.fontBig + this.fontBig, ); this.totalTimeText = this.game.add.text( 120, 30, `Total time: ${this.totalTimer}`, - this.fontSmall + this.fontSmall, ); ``` diff --git a/files/en-us/glossary/css_selector/index.md b/files/en-us/glossary/css_selector/index.md index 2942938c64b3ed7..055467b9d840c81 100644 --- a/files/en-us/glossary/css_selector/index.md +++ b/files/en-us/glossary/css_selector/index.md @@ -26,7 +26,11 @@ div.warning { } #customized { - font: 16px Lucida Grande, Arial, Helvetica, sans-serif; + font: + 16px Lucida Grande, + Arial, + Helvetica, + sans-serif; } ``` diff --git a/files/en-us/glossary/entity/index.md b/files/en-us/glossary/entity/index.md index 2cf00d94323f0a1..54590f91d06cb22 100644 --- a/files/en-us/glossary/entity/index.md +++ b/files/en-us/glossary/entity/index.md @@ -25,9 +25,9 @@ To display these characters as text, replace them with their corresponding chara | | ` ` | Interpreted as the non breaking space. | | – | `–` | Interpreted as the en dash (half the width of an em unit). | | — | `—` | Interpreted as the em dash (equal to width of an "m" character). | -| © | `©` | Interpreted as the copyright sign. | -| ® | `®` | Interpreted as the registered sign. | -| ™ | `™` | Interpreted as the trademark sign. | +| © | `©` | Interpreted as the copyright sign. | +| ® | `®` | Interpreted as the registered sign. | +| ™ | `™` | Interpreted as the trademark sign. | | ≈ | `≈` | Interpreted as almost equal to sign. | | ≠ | `≠` | Interpreted as not equal to sign. | | £ | `£` | Interpreted as the pound symbol. | diff --git a/files/en-us/glossary/xhtml/index.md b/files/en-us/glossary/xhtml/index.md index 15df0bc3583e8b3..daabf8b845f8bdb 100644 --- a/files/en-us/glossary/xhtml/index.md +++ b/files/en-us/glossary/xhtml/index.md @@ -15,7 +15,7 @@ The following example shows an HTML document and corresponding "XHTML" document, ```html - + diff --git a/files/en-us/learn/common_questions/design_and_accessibility/design_for_all_types_of_users/index.md b/files/en-us/learn/common_questions/design_and_accessibility/design_for_all_types_of_users/index.md index e8866f647976f9c..878ebac3dc8bf79 100644 --- a/files/en-us/learn/common_questions/design_and_accessibility/design_for_all_types_of_users/index.md +++ b/files/en-us/learn/common_questions/design_and_accessibility/design_for_all_types_of_users/index.md @@ -90,7 +90,7 @@ Suppose we wanted a base font size of 16px and an h1 (main heading) at the equiv Here is the HTML we're using: ```html - + @@ -182,7 +182,7 @@ Of course the problem doesn't go away when we switch to the Web. The reader's ey To achieve this, you can specify a size for your text's container. Let's consider this HTML: ```html - + diff --git a/files/en-us/learn/common_questions/tools_and_setup/what_are_browser_developer_tools/index.md b/files/en-us/learn/common_questions/tools_and_setup/what_are_browser_developer_tools/index.md index ea610fd55e098b4..3e3fcd3a5a4b527 100644 --- a/files/en-us/learn/common_questions/tools_and_setup/what_are_browser_developer_tools/index.md +++ b/files/en-us/learn/common_questions/tools_and_setup/what_are_browser_developer_tools/index.md @@ -175,7 +175,7 @@ document.querySelector("html").style.backgroundColor = "purple"; const loginImage = document.createElement("img"); loginImage.setAttribute( "src", - "https://raw.githubusercontent.com/mdn/learning-area/master/html/forms/image-type-example/login.png" + "https://raw.githubusercontent.com/mdn/learning-area/master/html/forms/image-type-example/login.png", ); document.querySelector("h1").appendChild(loginImage); ``` @@ -194,7 +194,7 @@ document.cheeseSelector("html").style.backgroundColor = "purple"; const loginImage = document.createElement("img"); banana.setAttribute( "src", - "https://raw.githubusercontent.com/mdn/learning-area/master/html/forms/image-type-example/login.png" + "https://raw.githubusercontent.com/mdn/learning-area/master/html/forms/image-type-example/login.png", ); document.querySelector("h1").appendChild(loginImage); ``` diff --git a/files/en-us/learn/css/building_blocks/advanced_styling_effects/index.md b/files/en-us/learn/css/building_blocks/advanced_styling_effects/index.md index aaf03c4e7438f40..ba8464831f70e7e 100644 --- a/files/en-us/learn/css/building_blocks/advanced_styling_effects/index.md +++ b/files/en-us/learn/css/building_blocks/advanced_styling_effects/index.md @@ -148,7 +148,9 @@ button { border-radius: 10px; border: none; background-image: linear-gradient(to bottom right, #777, #ddd); - box-shadow: 1px 1px 1px black, inset 2px 3px 5px rgba(0, 0, 0, 0.3), + box-shadow: + 1px 1px 1px black, + inset 2px 3px 5px rgba(0, 0, 0, 0.3), inset -2px -3px 5px rgba(255, 255, 255, 0.5); } @@ -158,7 +160,9 @@ button:hover { } button:active { - box-shadow: inset 2px 2px 1px black, inset 2px 3px 5px rgba(0, 0, 0, 0.3), + box-shadow: + inset 2px 2px 1px black, + inset 2px 3px 5px rgba(0, 0, 0, 0.3), inset -2px -3px 5px rgba(255, 255, 255, 0.5); } ``` diff --git a/files/en-us/learn/css/building_blocks/backgrounds_and_borders/index.md b/files/en-us/learn/css/building_blocks/backgrounds_and_borders/index.md index c53a937f66ca040..9fbccac44ec96f6 100644 --- a/files/en-us/learn/css/building_blocks/backgrounds_and_borders/index.md +++ b/files/en-us/learn/css/building_blocks/backgrounds_and_borders/index.md @@ -41,12 +41,14 @@ The CSS {{cssxref("background")}} property is a shorthand for a number of backgr ```css .box { - background: linear-gradient( + background: + linear-gradient( 105deg, rgba(255, 255, 255, 0.2) 39%, rgba(51, 56, 57, 1) 96% - ) center center / 400px 200px no-repeat, url(big-star.png) center - no-repeat, rebeccapurple; + ) center center / 400px 200px no-repeat, + url(big-star.png) center no-repeat, + rebeccapurple; } ``` @@ -182,7 +184,9 @@ The other `background-*` properties can also have comma-separated values in the background-image: url(image1.png), url(image2.png), url(image3.png), url(image4.png); background-repeat: no-repeat, repeat-x, repeat; -background-position: 10px 20px, top right; +background-position: + 10px 20px, + top right; ``` Each value of the different properties will match up to the values in the same position in the other properties. Above, for example, `image1`'s `background-repeat` value will be `no-repeat`. However, what happens when different properties have different numbers of values? The answer is that the smaller numbers of values will cycle — in the above example there are four background images but only two `background-position` values. The first two position values will be applied to the first two images, then they will cycle back around again — `image3` will be given the first position value, and `image4` will be given the second position value. diff --git a/files/en-us/learn/css/css_layout/floats/index.md b/files/en-us/learn/css/css_layout/floats/index.md index 71dde961fb498bc..32b9e6305892bea 100644 --- a/files/en-us/learn/css/css_layout/floats/index.md +++ b/files/en-us/learn/css/css_layout/floats/index.md @@ -85,7 +85,10 @@ body { width: 90%; max-width: 900px; margin: 0 auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .box { @@ -208,7 +211,10 @@ body { width: 90%; max-width: 900px; margin: 0 auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .box { @@ -281,7 +287,10 @@ body { width: 90%; max-width: 900px; margin: 0 auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .box { @@ -381,7 +390,10 @@ body { width: 90%; max-width: 900px; margin: 0 auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .wrapper { @@ -456,7 +468,10 @@ body { width: 90%; max-width: 900px; margin: 0 auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .wrapper { diff --git a/files/en-us/learn/css/css_layout/grids/index.md b/files/en-us/learn/css/css_layout/grids/index.md index 72b8d79c14164a4..607872cce5a1bda 100644 --- a/files/en-us/learn/css/css_layout/grids/index.md +++ b/files/en-us/learn/css/css_layout/grids/index.md @@ -77,7 +77,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .container > div { @@ -131,7 +134,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .container > div { @@ -181,7 +187,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .container > div { @@ -248,7 +257,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .container > div { @@ -310,7 +322,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .container > div { @@ -395,7 +410,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .container { @@ -500,7 +518,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } header, @@ -599,7 +620,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .container { diff --git a/files/en-us/learn/css/css_layout/media_queries/index.md b/files/en-us/learn/css/css_layout/media_queries/index.md index db031143d3d983c..93fec6ea8b22d1e 100644 --- a/files/en-us/learn/css/css_layout/media_queries/index.md +++ b/files/en-us/learn/css/css_layout/media_queries/index.md @@ -220,7 +220,10 @@ Our starting point is an HTML document with some CSS applied to add background c body { width: 90%; margin: 2em auto; - font: 1em/1.3 Arial, Helvetica, sans-serif; + font: + 1em/1.3 Arial, + Helvetica, + sans-serif; } a:link, diff --git a/files/en-us/learn/css/css_layout/multiple-column_layout/index.md b/files/en-us/learn/css/css_layout/multiple-column_layout/index.md index b9f5a228f39bd8d..5b7a4b47b8c6b9e 100644 --- a/files/en-us/learn/css/css_layout/multiple-column_layout/index.md +++ b/files/en-us/learn/css/css_layout/multiple-column_layout/index.md @@ -53,7 +53,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } ``` @@ -105,7 +108,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } ``` @@ -166,7 +172,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } ``` @@ -214,7 +223,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .container { column-count: 3; @@ -263,7 +275,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } ``` @@ -384,7 +399,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } ``` diff --git a/files/en-us/learn/css/first_steps/getting_started/index.md b/files/en-us/learn/css/first_steps/getting_started/index.md index a73d0e720e08fcf..df7b16f60caee11 100644 --- a/files/en-us/learn/css/first_steps/getting_started/index.md +++ b/files/en-us/learn/css/first_steps/getting_started/index.md @@ -42,7 +42,7 @@ In this article, we will take a simple HTML document and apply CSS to it, learni Our starting point is an HTML document. You can copy the code from below if you want to work on your own computer. Save the code below as `index.html` in a folder on your machine. ```html - + diff --git a/files/en-us/learn/css/first_steps/how_css_is_structured/index.md b/files/en-us/learn/css/first_steps/how_css_is_structured/index.md index f7f395799f09123..d8665379c4ebcf7 100644 --- a/files/en-us/learn/css/first_steps/how_css_is_structured/index.md +++ b/files/en-us/learn/css/first_steps/how_css_is_structured/index.md @@ -48,7 +48,7 @@ An external stylesheet contains CSS in a separate file with a `.css` extension. You reference an external CSS stylesheet from an HTML `` element: ```html - + @@ -96,7 +96,7 @@ An internal stylesheet resides within an HTML document. To create an internal st The HTML for an internal stylesheet might look like this: ```html - + @@ -129,7 +129,7 @@ But for sites with more than one page, an internal stylesheet becomes a less eff Inline styles are CSS declarations that affect a single HTML element, contained within a `style` attribute. The implementation of an inline style in an HTML document might look like this: ```html - + @@ -155,7 +155,7 @@ For the exercise that follows, create a folder on your computer. You can name th **index.html:** ```html - + @@ -425,7 +425,10 @@ CSS comments begin with `/*` and end with `*/`. In the example below, comments m /* Handle basic element styling */ /* -------------------------------------------------------------------------------------------- */ body { - font: 1em/150% Helvetica, Arial, sans-serif; + font: + 1em/150% Helvetica, + Arial, + sans-serif; padding: 1em; margin: 0 auto; max-width: 33em; @@ -482,7 +485,10 @@ In the example below, each declaration (and rule start/end) has its own line. Th ```css body { - font: 1em/150% Helvetica, Arial, sans-serif; + font: + 1em/150% Helvetica, + Arial, + sans-serif; padding: 1em; margin: 0 auto; max-width: 33em; diff --git a/files/en-us/learn/css/howto/create_fancy_boxes/index.md b/files/en-us/learn/css/howto/create_fancy_boxes/index.md index 117d4e7df572c92..dc4a1a77db1ffb7 100644 --- a/files/en-us/learn/css/howto/create_fancy_boxes/index.md +++ b/files/en-us/learn/css/howto/create_fancy_boxes/index.md @@ -239,7 +239,11 @@ blockquote::before, blockquote::after { position: absolute; height: 3rem; - font: 6rem/100% Georgia, "Times New Roman", Times, serif; + font: + 6rem/100% Georgia, + "Times New Roman", + Times, + serif; } blockquote::before { diff --git a/files/en-us/learn/css/howto/css_faq/index.md b/files/en-us/learn/css/howto/css_faq/index.md index 11b29e2f4715894..fbc3b58f484fea7 100644 --- a/files/en-us/learn/css/howto/css_faq/index.md +++ b/files/en-us/learn/css/howto/css_faq/index.md @@ -22,7 +22,7 @@ Gecko-based browsers, have a third _[Almost Standards Mode](/en-US/docs/Mozilla/ The standard `DOCTYPE` declaration that will trigger standards mode is: ```html - + ``` When at all possible, you should just use the above doctype. There are other valid legacy doctypes that will trigger Standards or Almost Standards mode: diff --git a/files/en-us/learn/css/styling_text/fundamentals/index.md b/files/en-us/learn/css/styling_text/fundamentals/index.md index 3ef860cfcdc9cd2..48ce1c2ceb4f7df 100644 --- a/files/en-us/learn/css/styling_text/fundamentals/index.md +++ b/files/en-us/learn/css/styling_text/fundamentals/index.md @@ -432,7 +432,9 @@ You can apply multiple shadows to the same text by including multiple shadow val ```css h1 { - text-shadow: 1px 1px 1px red, 2px 2px 1px red; + text-shadow: + 1px 1px 1px red, + 2px 2px 1px red; } ``` @@ -514,7 +516,9 @@ html { h1 { font-size: 5rem; text-transform: capitalize; - text-shadow: 1px 1px 1px red, 2px 2px 1px red; + text-shadow: + 1px 1px 1px red, + 2px 2px 1px red; text-align: center; } @@ -565,7 +569,9 @@ html { h1 { font-size: 5rem; text-transform: capitalize; - text-shadow: 1px 1px 1px red, 2px 2px 1px red; + text-shadow: + 1px 1px 1px red, + 2px 2px 1px red; text-align: center; } @@ -620,7 +626,9 @@ html { h1 { font-size: 5rem; text-transform: capitalize; - text-shadow: 1px 1px 1px red, 2px 2px 1px red; + text-shadow: + 1px 1px 1px red, + 2px 2px 1px red; text-align: center; letter-spacing: 2px; } @@ -685,7 +693,10 @@ A forward slash has to be put in between the {{cssxref("font-size")}} and {{cssx A full example would look like this: ```css -font: italic normal bold normal 3em/1.5 Helvetica, Arial, sans-serif; +font: + italic normal bold normal 3em/1.5 Helvetica, + Arial, + sans-serif; ``` ## Active learning: Playing with styling text diff --git a/files/en-us/learn/css/styling_text/web_fonts/index.md b/files/en-us/learn/css/styling_text/web_fonts/index.md index cb38c3a2ea03601..647892654666103 100644 --- a/files/en-us/learn/css/styling_text/web_fonts/index.md +++ b/files/en-us/learn/css/styling_text/web_fonts/index.md @@ -139,8 +139,9 @@ To implement these fonts in your demo, follow these steps: ```css @font-face { font-family: "zantrokeregular"; - src: url("fonts/zantroke-webfont.woff2") format("woff2"), url("fonts/zantroke-webfont.woff") - format("woff"); + src: + url("fonts/zantroke-webfont.woff2") format("woff2"), + url("fonts/zantroke-webfont.woff") format("woff"); font-weight: normal; font-style: normal; } @@ -178,8 +179,9 @@ Let's explore that `@font-face` syntax generated for you by Fontsquirrel. This i ```css @font-face { font-family: "zantrokeregular"; - src: url("zantroke-webfont.woff2") format("woff2"), url("zantroke-webfont.woff") - format("woff"); + src: + url("zantroke-webfont.woff2") format("woff2"), + url("zantroke-webfont.woff") format("woff"); font-weight: normal; font-style: normal; } diff --git a/files/en-us/learn/forms/how_to_build_custom_form_controls/example_3/index.md b/files/en-us/learn/forms/how_to_build_custom_form_controls/example_3/index.md index 8c6cb7a7e8d7a51..0fbe1b1aeaeb766 100644 --- a/files/en-us/learn/forms/how_to_build_custom_form_controls/example_3/index.md +++ b/files/en-us/learn/forms/how_to_build_custom_form_controls/example_3/index.md @@ -223,7 +223,7 @@ window.addEventListener("load", () => { (event) => { toggleOptList(select); }, - false + false, ); select.addEventListener("focus", (event) => { diff --git a/files/en-us/learn/forms/sending_forms_through_javascript/index.md b/files/en-us/learn/forms/sending_forms_through_javascript/index.md index 9d51ab934c6d4ad..3783ed814adb74e 100644 --- a/files/en-us/learn/forms/sending_forms_through_javascript/index.md +++ b/files/en-us/learn/forms/sending_forms_through_javascript/index.md @@ -67,7 +67,7 @@ function sendData(data) { // Turn the data object into an array of URL-encoded key/value pairs. for (const [name, value] of Object.entries(data)) { urlEncodedDataPairs.push( - `${encodeURIComponent(name)}=${encodeURIComponent(value)}` + `${encodeURIComponent(name)}=${encodeURIComponent(value)}`, ); } @@ -351,7 +351,7 @@ window.addEventListener("load", () => { // Add the required HTTP header to handle a multipart form data POST request XHR.setRequestHeader( "Content-Type", - `multipart/form-data; boundary=${boundary}` + `multipart/form-data; boundary=${boundary}`, ); // Send the data diff --git a/files/en-us/learn/forms/styling_web_forms/index.md b/files/en-us/learn/forms/styling_web_forms/index.md index 0dfee44d0de30b2..4ac15d3ebe34aa2 100644 --- a/files/en-us/learn/forms/styling_web_forms/index.md +++ b/files/en-us/learn/forms/styling_web_forms/index.md @@ -215,16 +215,18 @@ First, we prepare by defining our {{cssxref("@font-face")}} rules, and all the b ```css @font-face { font-family: "handwriting"; - src: url("fonts/journal-webfont.woff2") format("woff2"), url("fonts/journal-webfont.woff") - format("woff"); + src: + url("fonts/journal-webfont.woff2") format("woff2"), + url("fonts/journal-webfont.woff") format("woff"); font-weight: normal; font-style: normal; } @font-face { font-family: "typewriter"; - src: url("fonts/momot___-webfont.woff2") format("woff2"), url("fonts/momot___-webfont.woff") - format("woff"); + src: + url("fonts/momot___-webfont.woff2") format("woff2"), + url("fonts/momot___-webfont.woff") format("woff"); font-weight: normal; font-style: normal; } @@ -257,7 +259,9 @@ Notice that we've used some [CSS Grid](/en-US/docs/Web/CSS/CSS_Grid_Layout) and ```css h1 { - font: 1em "typewriter", monospace; + font: + 1em "typewriter", + monospace; align-self: end; } @@ -277,7 +281,9 @@ Now we can start working on the form elements themselves. First, let's ensure th ```css label { - font: 0.8em "typewriter", sans-serif; + font: + 0.8em "typewriter", + sans-serif; } ``` @@ -286,7 +292,10 @@ The text fields require some common rules. In other words, we remove their {{css ```css input, textarea { - font: 1.4em/1.5em "handwriting", cursive, sans-serif; + font: + 1.4em/1.5em "handwriting", + cursive, + sans-serif; border: none; padding: 0 10px; margin: 0; diff --git a/files/en-us/learn/forms/ui_pseudo-classes/index.md b/files/en-us/learn/forms/ui_pseudo-classes/index.md index 98e931395030fce..7427a7776508a8e 100644 --- a/files/en-us/learn/forms/ui_pseudo-classes/index.md +++ b/files/en-us/learn/forms/ui_pseudo-classes/index.md @@ -408,7 +408,7 @@ document.addEventListener( .getElementById("billing-checkbox") .addEventListener("change", toggleBilling); }, - false + false, ); function toggleBilling() { diff --git a/files/en-us/learn/getting_started_with_the_web/dealing_with_files/index.md b/files/en-us/learn/getting_started_with_the_web/dealing_with_files/index.md index c92cd939adf26a9..3bb3fd541be742b 100644 --- a/files/en-us/learn/getting_started_with_the_web/dealing_with_files/index.md +++ b/files/en-us/learn/getting_started_with_the_web/dealing_with_files/index.md @@ -43,7 +43,7 @@ To make files talk to one another, you have to provide a file path between them 2. Open up your `index.html` file, and insert the following code into the file exactly as shown. Don't worry about what it all means for now — we'll look at the structures in more detail later in the series. ```html - + diff --git a/files/en-us/learn/getting_started_with_the_web/html_basics/index.md b/files/en-us/learn/getting_started_with_the_web/html_basics/index.md index b6727547a9beca4..683fc95313cd9b0 100644 --- a/files/en-us/learn/getting_started_with_the_web/html_basics/index.md +++ b/files/en-us/learn/getting_started_with_the_web/html_basics/index.md @@ -81,7 +81,7 @@ This contains two attributes, but there is no closing `` tag and no inner That wraps up the basics of individual HTML elements, but they aren't handy on their own. Now we'll look at how individual elements are combined to form an entire HTML page. Let's revisit the code we put into our `index.html` example (which we first met in the [Dealing with files](/en-US/docs/Learn/Getting_started_with_the_web/Dealing_with_files) article): ```html - + diff --git a/files/en-us/learn/html/introduction_to_html/advanced_text_formatting/index.md b/files/en-us/learn/html/introduction_to_html/advanced_text_formatting/index.md index 2a66cfa64dfd8f7..59f8ac626e3ce96 100644 --- a/files/en-us/learn/html/introduction_to_html/advanced_text_formatting/index.md +++ b/files/en-us/learn/html/introduction_to_html/advanced_text_formatting/index.md @@ -213,7 +213,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; @@ -444,7 +444,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; @@ -603,7 +603,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; diff --git a/files/en-us/learn/html/introduction_to_html/document_and_website_structure/index.md b/files/en-us/learn/html/introduction_to_html/document_and_website_structure/index.md index d49c971d636965f..56721819743b53c 100644 --- a/files/en-us/learn/html/introduction_to_html/document_and_website_structure/index.md +++ b/files/en-us/learn/html/introduction_to_html/document_and_website_structure/index.md @@ -83,7 +83,7 @@ To implement such semantic mark up, HTML provides dedicated tags that you can us Our example seen above is represented by the following code (you can also [find the example in our GitHub repository](https://github.com/mdn/learning-area/blob/main/html/introduction-to-html/document_and_website_structure/index.html)). We'd like you to look at the example above, and then look over the listing below to see what parts make up what section of the visual. ```html - + diff --git a/files/en-us/learn/html/introduction_to_html/getting_started/index.md b/files/en-us/learn/html/introduction_to_html/getting_started/index.md index d002d9cf3f23c3d..ad11e1f16eb2d46 100644 --- a/files/en-us/learn/html/introduction_to_html/getting_started/index.md +++ b/files/en-us/learn/html/introduction_to_html/getting_started/index.md @@ -168,7 +168,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; @@ -365,7 +365,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; @@ -475,7 +475,7 @@ Instead, you need to do this: Individual HTML elements aren't very useful on their own. Next, let's examine how individual elements combine to form an entire HTML page: ```html - + @@ -635,7 +635,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; diff --git a/files/en-us/learn/html/introduction_to_html/html_text_fundamentals/index.md b/files/en-us/learn/html/introduction_to_html/html_text_fundamentals/index.md index 17d0e065032baa5..77f2f7110f28e5e 100644 --- a/files/en-us/learn/html/introduction_to_html/html_text_fundamentals/index.md +++ b/files/en-us/learn/html/introduction_to_html/html_text_fundamentals/index.md @@ -215,7 +215,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; @@ -408,7 +408,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; @@ -567,7 +567,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; @@ -729,7 +729,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; @@ -948,7 +948,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; diff --git a/files/en-us/learn/html/introduction_to_html/the_head_metadata_in_html/index.md b/files/en-us/learn/html/introduction_to_html/the_head_metadata_in_html/index.md index 98a110d5a7f9a8b..380853043e14e37 100644 --- a/files/en-us/learn/html/introduction_to_html/the_head_metadata_in_html/index.md +++ b/files/en-us/learn/html/introduction_to_html/the_head_metadata_in_html/index.md @@ -34,7 +34,7 @@ The {{glossary("Head", "head")}} of an HTML document is the part that is not dis Let's revisit the simple [HTML document we covered in the previous article](/en-US/docs/Learn/HTML/Introduction_to_HTML/Getting_started#anatomy_of_an_html_document): ```html - + diff --git a/files/en-us/learn/html/multimedia_and_embedding/adding_vector_graphics_to_the_web/index.md b/files/en-us/learn/html/multimedia_and_embedding/adding_vector_graphics_to_the_web/index.md index 0132d441473e092..d60c51b736f600b 100644 --- a/files/en-us/learn/html/multimedia_and_embedding/adding_vector_graphics_to_the_web/index.md +++ b/files/en-us/learn/html/multimedia_and_embedding/adding_vector_graphics_to_the_web/index.md @@ -294,7 +294,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; diff --git a/files/en-us/learn/html/multimedia_and_embedding/images_in_html/index.md b/files/en-us/learn/html/multimedia_and_embedding/images_in_html/index.md index a8fe844513c79c3..728d745029d26ab 100644 --- a/files/en-us/learn/html/multimedia_and_embedding/images_in_html/index.md +++ b/files/en-us/learn/html/multimedia_and_embedding/images_in_html/index.md @@ -280,7 +280,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; @@ -525,7 +525,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; diff --git a/files/en-us/learn/html/multimedia_and_embedding/other_embedding_technologies/index.md b/files/en-us/learn/html/multimedia_and_embedding/other_embedding_technologies/index.md index ed31a4e2a1a6305..7dc3d84c1e22df2 100644 --- a/files/en-us/learn/html/multimedia_and_embedding/other_embedding_technologies/index.md +++ b/files/en-us/learn/html/multimedia_and_embedding/other_embedding_technologies/index.md @@ -169,7 +169,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; diff --git a/files/en-us/learn/html/tables/advanced/index.md b/files/en-us/learn/html/tables/advanced/index.md index f05e2659c2d8022..d0fe7eb5a475e58 100644 --- a/files/en-us/learn/html/tables/advanced/index.md +++ b/files/en-us/learn/html/tables/advanced/index.md @@ -101,7 +101,7 @@ Let's put these new elements into action. Your finished table should look something like the following: ```html hidden - + diff --git a/files/en-us/learn/javascript/asynchronous/introducing/index.md b/files/en-us/learn/javascript/asynchronous/introducing/index.md index fe87252fa1e16a0..b82f94e2af3867c 100644 --- a/files/en-us/learn/javascript/asynchronous/introducing/index.md +++ b/files/en-us/learn/javascript/asynchronous/introducing/index.md @@ -243,7 +243,7 @@ document.querySelector("#xhr").addEventListener("click", () => { xhr.open( "GET", - "https://raw.githubusercontent.com/mdn/content/main/files/en-us/_wikihistory.json" + "https://raw.githubusercontent.com/mdn/content/main/files/en-us/_wikihistory.json", ); xhr.send(); log.textContent = `${log.textContent}Started XHR request\n`; diff --git a/files/en-us/learn/javascript/asynchronous/introducing_workers/index.md b/files/en-us/learn/javascript/asynchronous/introducing_workers/index.md index 4ffc471135d7324..cfb91a772e4d53e 100644 --- a/files/en-us/learn/javascript/asynchronous/introducing_workers/index.md +++ b/files/en-us/learn/javascript/asynchronous/introducing_workers/index.md @@ -76,7 +76,7 @@ document.querySelector("#generate").addEventListener("click", () => { const quota = document.querySelector("#quota").value; const primes = generatePrimes(quota); document.querySelector( - "#output" + "#output", ).textContent = `Finished generating ${quota} primes!`; }); @@ -101,7 +101,7 @@ For this example, start by making a local copy of the files at + @@ -160,7 +160,7 @@ document.querySelector("#generate").addEventListener("click", () => { // primes that were generated, taken from the message data. worker.addEventListener("message", (message) => { document.querySelector( - "#output" + "#output", ).textContent = `Finished generating ${message.data} primes!`; }); diff --git a/files/en-us/learn/javascript/asynchronous/promises/index.md b/files/en-us/learn/javascript/asynchronous/promises/index.md index cffd4af4126b568..71ac55f95e0ba50 100644 --- a/files/en-us/learn/javascript/asynchronous/promises/index.md +++ b/files/en-us/learn/javascript/asynchronous/promises/index.md @@ -44,7 +44,7 @@ Copy this into your browser's JavaScript console: ```js const fetchPromise = fetch( - "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json" + "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json", ); console.log(fetchPromise); @@ -83,7 +83,7 @@ Try this: ```js const fetchPromise = fetch( - "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json" + "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json", ); fetchPromise.then((response) => { @@ -104,7 +104,7 @@ It is, of course. But the elegant feature of promises is that _`then()` itself r ```js const fetchPromise = fetch( - "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json" + "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json", ); fetchPromise @@ -120,7 +120,7 @@ Before we move on to the next step, there's one more piece to add. We need to ch ```js const fetchPromise = fetch( - "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json" + "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json", ); fetchPromise @@ -149,7 +149,7 @@ Try this version of our `fetch()` code. We've added an error handler using `catc ```js const fetchPromise = fetch( - "bad-scheme://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json" + "bad-scheme://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json", ); fetchPromise @@ -202,13 +202,13 @@ For example: ```js const fetchPromise1 = fetch( - "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json" + "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json", ); const fetchPromise2 = fetch( - "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/not-found" + "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/not-found", ); const fetchPromise3 = fetch( - "https://mdn.github.io/learning-area/javascript/oojs/json/superheroes.json" + "https://mdn.github.io/learning-area/javascript/oojs/json/superheroes.json", ); Promise.all([fetchPromise1, fetchPromise2, fetchPromise3]) @@ -236,13 +236,13 @@ If we try the same code with a badly formed URL, like this: ```js const fetchPromise1 = fetch( - "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json" + "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json", ); const fetchPromise2 = fetch( - "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/not-found" + "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/not-found", ); const fetchPromise3 = fetch( - "bad-scheme://mdn.github.io/learning-area/javascript/oojs/json/superheroes.json" + "bad-scheme://mdn.github.io/learning-area/javascript/oojs/json/superheroes.json", ); Promise.all([fetchPromise1, fetchPromise2, fetchPromise3]) @@ -266,13 +266,13 @@ Sometimes, you might need any one of a set of promises to be fulfilled, and don' ```js const fetchPromise1 = fetch( - "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json" + "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json", ); const fetchPromise2 = fetch( - "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/not-found" + "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/not-found", ); const fetchPromise3 = fetch( - "https://mdn.github.io/learning-area/javascript/oojs/json/superheroes.json" + "https://mdn.github.io/learning-area/javascript/oojs/json/superheroes.json", ); Promise.any([fetchPromise1, fetchPromise2, fetchPromise3]) @@ -308,7 +308,7 @@ async function fetchProducts() { // after this line, our function will wait for the `fetch()` call to be settled // the `fetch()` call will either return a Response or throw an error const response = await fetch( - "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json" + "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json", ); if (!response.ok) { throw new Error(`HTTP error: ${response.status}`); @@ -335,7 +335,7 @@ Note though that async functions always return a promise, so you can't do someth async function fetchProducts() { try { const response = await fetch( - "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json" + "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json", ); if (!response.ok) { throw new Error(`HTTP error: ${response.status}`); @@ -357,7 +357,7 @@ Instead, you'd need to do something like: async function fetchProducts() { try { const response = await fetch( - "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json" + "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json", ); if (!response.ok) { throw new Error(`HTTP error: ${response.status}`); @@ -379,7 +379,7 @@ Also, note that you can only use `await` inside an `async` function, unless your try { // using await outside an async function is only allowed in a module const response = await fetch( - "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json" + "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json", ); if (!response.ok) { throw new Error(`HTTP error: ${response.status}`); diff --git a/files/en-us/learn/javascript/building_blocks/build_your_own_function/index.md b/files/en-us/learn/javascript/building_blocks/build_your_own_function/index.md index 3ed7bbca8c1d210..847b634ad33c056 100644 --- a/files/en-us/learn/javascript/building_blocks/build_your_own_function/index.md +++ b/files/en-us/learn/javascript/building_blocks/build_your_own_function/index.md @@ -81,7 +81,7 @@ To begin with, let's put together a basic function. panel.appendChild(closeBtn); closeBtn.addEventListener("click", () => - panel.parentNode.removeChild(panel) + panel.parentNode.removeChild(panel), ); ``` @@ -221,7 +221,7 @@ As it stands, the function is still not very useful — we don't want to just sh ```js btn.addEventListener("click", () => - displayMessage("Woo, this is a different message!") + displayMessage("Woo, this is a different message!"), ); ``` diff --git a/files/en-us/learn/javascript/building_blocks/conditionals/index.md b/files/en-us/learn/javascript/building_blocks/conditionals/index.md index 0f8c7faddbd342d..daab3fe1c5b2275 100644 --- a/files/en-us/learn/javascript/building_blocks/conditionals/index.md +++ b/files/en-us/learn/javascript/building_blocks/conditionals/index.md @@ -401,7 +401,9 @@ function update(bgColor, textColor) { } select.addEventListener("change", () => - select.value === "black" ? update("black", "white") : update("white", "black") + select.value === "black" + ? update("black", "white") + : update("white", "black"), ); ``` @@ -619,7 +621,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; @@ -806,7 +808,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; diff --git a/files/en-us/learn/javascript/building_blocks/functions/index.md b/files/en-us/learn/javascript/building_blocks/functions/index.md index 83f4f3324e27765..141236eb555bb17 100644 --- a/files/en-us/learn/javascript/building_blocks/functions/index.md +++ b/files/en-us/learn/javascript/building_blocks/functions/index.md @@ -267,7 +267,7 @@ You can use the same concise syntax to rewrite the `addEventListener` example. ```js textBox.addEventListener("keydown", (event) => - console.log(`You pressed "${event.key}".`) + console.log(`You pressed "${event.key}".`), ); ``` diff --git a/files/en-us/learn/javascript/building_blocks/looping_code/index.md b/files/en-us/learn/javascript/building_blocks/looping_code/index.md index 491e257528466e7..b5cbe66517ce374 100644 --- a/files/en-us/learn/javascript/building_blocks/looping_code/index.md +++ b/files/en-us/learn/javascript/building_blocks/looping_code/index.md @@ -88,7 +88,7 @@ function draw() { random(canvas.height), random(50), 0, - 2 * Math.PI + 2 * Math.PI, ); ctx.fill(); } @@ -110,7 +110,7 @@ for (let i = 0; i < 100; i++) { random(canvas.height), random(50), 0, - 2 * Math.PI + 2 * Math.PI, ); ctx.fill(); } @@ -132,7 +132,7 @@ ctx.arc( random(canvas.height), random(50), 0, - 2 * Math.PI + 2 * Math.PI, ); ctx.fill(); ``` @@ -726,7 +726,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; @@ -907,7 +907,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; diff --git a/files/en-us/learn/javascript/client-side_web_apis/client-side_storage/index.md b/files/en-us/learn/javascript/client-side_web_apis/client-side_storage/index.md index 61bb18df611d027..4637d0a9007dba4 100644 --- a/files/en-us/learn/javascript/client-side_web_apis/client-side_storage/index.md +++ b/files/en-us/learn/javascript/client-side_web_apis/client-side_storage/index.md @@ -294,7 +294,7 @@ Now let's look at what we have to do in the first place, to actually set up a da ```js // error handler signifies that the database didn't open successfully openRequest.addEventListener("error", () => - console.error("Database failed to open") + console.error("Database failed to open"), ); // success handler signifies that the database opened successfully @@ -398,7 +398,7 @@ function addData(e) { }); transaction.addEventListener("error", () => - console.log("Transaction not opened due to error") + console.log("Transaction not opened due to error"), ); } ``` @@ -569,7 +569,7 @@ Let's walk through the most interesting parts of the example. We won't look at i displayVideo( request.result.mp4, request.result.webm, - request.result.name + request.result.name, ); } else { // Fetch the videos from the network @@ -590,10 +590,10 @@ Let's walk through the most interesting parts of the example. We won't look at i // Fetch the MP4 and WebM versions of the video using the fetch() function, // then expose their response bodies as blobs const mp4Blob = fetch(`videos/${video.name}.mp4`).then((response) => - response.blob() + response.blob(), ); const webmBlob = fetch(`videos/${video.name}.webm`).then((response) => - response.blob() + response.blob(), ); // Only run the next code when both promises have fulfilled @@ -619,7 +619,7 @@ Let's walk through the most interesting parts of the example. We won't look at i const request = objectStore.add({ mp4, webm, name }); request.addEventListener("success", () => - console.log("Record addition attempt finished") + console.log("Record addition attempt finished"), ); request.addEventListener("error", () => console.error(request.error)); } @@ -685,7 +685,7 @@ The first thing to note is that there's an extra bit of code placed in the main if ("serviceWorker" in navigator) { navigator.serviceWorker .register( - "/learning-area/javascript/apis/client-side-storage/cache-sw/video-store-offline/sw.js" + "/learning-area/javascript/apis/client-side-storage/cache-sw/video-store-offline/sw.js", ) .then(() => console.log("Service Worker Registered")); } @@ -714,8 +714,8 @@ self.addEventListener("install", (e) => { "/learning-area/javascript/apis/client-side-storage/cache-sw/video-store-offline/index.html", "/learning-area/javascript/apis/client-side-storage/cache-sw/video-store-offline/index.js", "/learning-area/javascript/apis/client-side-storage/cache-sw/video-store-offline/style.css", - ]) - ) + ]), + ), ); }); ``` @@ -738,7 +738,7 @@ If a match is found, we return it as the custom response. If not, we [fetch()](/ self.addEventListener("fetch", (e) => { console.log(e.request.url); e.respondWith( - caches.match(e.request).then((response) => response || fetch(e.request)) + caches.match(e.request).then((response) => response || fetch(e.request)), ); }); ``` diff --git a/files/en-us/learn/javascript/client-side_web_apis/drawing_graphics/index.md b/files/en-us/learn/javascript/client-side_web_apis/drawing_graphics/index.md index 45b4b0918bdf107..d620802af12ffb3 100644 --- a/files/en-us/learn/javascript/client-side_web_apis/drawing_graphics/index.md +++ b/files/en-us/learn/javascript/client-side_web_apis/drawing_graphics/index.md @@ -676,7 +676,7 @@ function draw() { sizePicker.value, degToRad(0), degToRad(360), - false + false, ); ctx.fill(); } @@ -723,7 +723,7 @@ Let's look at a simple example of how to create something with a WebGL library. 75, window.innerWidth / window.innerHeight, 0.1, - 1000 + 1000, ); camera.position.z = 5; ``` diff --git a/files/en-us/learn/javascript/client-side_web_apis/manipulating_documents/index.md b/files/en-us/learn/javascript/client-side_web_apis/manipulating_documents/index.md index edfcc649eb04726..3e028c41519bf5f 100644 --- a/files/en-us/learn/javascript/client-side_web_apis/manipulating_documents/index.md +++ b/files/en-us/learn/javascript/client-side_web_apis/manipulating_documents/index.md @@ -48,7 +48,7 @@ The document currently loaded in each one of your browser tabs is represented by We have created a simple example page at [dom-example.html](https://github.com/mdn/learning-area/blob/main/javascript/apis/document-manipulation/dom-example.html) ([see it live also](https://mdn.github.io/learning-area/javascript/apis/document-manipulation/dom-example.html)). Try opening this up in your browser — it is a very simple page containing a {{htmlelement("section")}} element inside which you can find an image, and a paragraph with a link inside. The HTML source code looks like this: ```html - + @@ -146,7 +146,7 @@ The above has given you a little taste of what you can do, but let's go further ```js const text = document.createTextNode( - " — the premier source for web development knowledge." + " — the premier source for web development knowledge.", ); ``` diff --git a/files/en-us/learn/javascript/client-side_web_apis/video_and_audio_apis/index.md b/files/en-us/learn/javascript/client-side_web_apis/video_and_audio_apis/index.md index 01ed3bc6a4b0951..8d3c3e2ea95980c 100644 --- a/files/en-us/learn/javascript/client-side_web_apis/video_and_audio_apis/index.md +++ b/files/en-us/learn/javascript/client-side_web_apis/video_and_audio_apis/index.md @@ -143,7 +143,8 @@ Next, let's look at our button icons: @font-face { font-family: "HeydingsControlsRegular"; src: url("fonts/heydings_controls-webfont.eot"); - src: url("fonts/heydings_controls-webfont.eot?#iefix") format("embedded-opentype"), + src: + url("fonts/heydings_controls-webfont.eot?#iefix") format("embedded-opentype"), url("fonts/heydings_controls-webfont.woff") format("woff"), url("fonts/heydings_controls-webfont.ttf") format("truetype"); font-weight: normal; diff --git a/files/en-us/learn/javascript/first_steps/arrays/index.md b/files/en-us/learn/javascript/first_steps/arrays/index.md index a96168fff67d9f6..f8a63defadfe189 100644 --- a/files/en-us/learn/javascript/first_steps/arrays/index.md +++ b/files/en-us/learn/javascript/first_steps/arrays/index.md @@ -411,7 +411,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; @@ -645,7 +645,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; diff --git a/files/en-us/learn/javascript/first_steps/useful_string_methods/index.md b/files/en-us/learn/javascript/first_steps/useful_string_methods/index.md index 254145d6bd5af1d..0a6c830ce46b3f9 100644 --- a/files/en-us/learn/javascript/first_steps/useful_string_methods/index.md +++ b/files/en-us/learn/javascript/first_steps/useful_string_methods/index.md @@ -358,7 +358,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; @@ -522,7 +522,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; @@ -705,7 +705,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; diff --git a/files/en-us/learn/javascript/objects/classes_in_javascript/index.md b/files/en-us/learn/javascript/objects/classes_in_javascript/index.md index be6a04e76f39c73..7052952654e8919 100644 --- a/files/en-us/learn/javascript/objects/classes_in_javascript/index.md +++ b/files/en-us/learn/javascript/objects/classes_in_javascript/index.md @@ -113,7 +113,7 @@ class Professor extends Person { introduceSelf() { console.log( - `My name is ${this.name}, and I will be your ${this.teaches} professor.` + `My name is ${this.name}, and I will be your ${this.teaches} professor.`, ); } diff --git a/files/en-us/learn/javascript/objects/object_building_practice/index.md b/files/en-us/learn/javascript/objects/object_building_practice/index.md index 4a704c52519633c..630cd3511b31d04 100644 --- a/files/en-us/learn/javascript/objects/object_building_practice/index.md +++ b/files/en-us/learn/javascript/objects/object_building_practice/index.md @@ -213,7 +213,7 @@ while (balls.length < 25) { random(-7, 7), random(-7, 7), randomRGB(), - size + size, ); balls.push(ball); diff --git a/files/en-us/learn/mathml/first_steps/fractions_and_roots/index.md b/files/en-us/learn/mathml/first_steps/fractions_and_roots/index.md index 374f852357ee14d..97ea05719444328 100644 --- a/files/en-us/learn/mathml/first_steps/fractions_and_roots/index.md +++ b/files/en-us/learn/mathml/first_steps/fractions_and_roots/index.md @@ -175,7 +175,9 @@ Here is a simple exercise to verify whether you understood the relation between ```css hidden math { - font-family: Latin Modern Math, STIX Two Math; + font-family: + Latin Modern Math, + STIX Two Math; font-size: 200%; } math .highlight { @@ -213,7 +215,7 @@ function verifyOption(checkbox) { } } const finished = checkboxes.every( - (checkbox) => !!checkbox.checked === !!checkbox.dataset.highlight + (checkbox) => !!checkbox.checked === !!checkbox.dataset.highlight, ); status.textContent = finished ? "Congratulations, you checked all the correct answers!" diff --git a/files/en-us/learn/mathml/first_steps/getting_started/index.md b/files/en-us/learn/mathml/first_steps/getting_started/index.md index cfad32e3f1fbb65..f961d0dc8cb9464 100644 --- a/files/en-us/learn/mathml/first_steps/getting_started/index.md +++ b/files/en-us/learn/mathml/first_steps/getting_started/index.md @@ -42,7 +42,7 @@ In this article, we will take a simple HTML document and see how to add MathML f MathML uses the same syntax as HTML to represent a tree of elements and attributes. In particular, each mathematical formula is represented by an element `` which can be placed inside an HTML page. In the following document, it is inside a paragraph of text: ```html - + My first math page @@ -73,7 +73,7 @@ The `` element specifies a fraction with a numerator (its first child) an Note that in the previous example, the formula is on the same line as the text of the paragraph. However, it is quite common to instead render large mathematical formulas centered on their own line as shown below. To achieve that, you need to attach a `display="block"` attribute on the `` element. ```html hidden - + My first math page diff --git a/files/en-us/learn/mathml/first_steps/scripts/index.md b/files/en-us/learn/mathml/first_steps/scripts/index.md index cb49fb28e6e17c6..f43c0e57df06df2 100644 --- a/files/en-us/learn/mathml/first_steps/scripts/index.md +++ b/files/en-us/learn/mathml/first_steps/scripts/index.md @@ -151,7 +151,7 @@ document.getElementById("showSolution").addEventListener("click", () => { The following MathML formula contains a more complex expression, nesting fractions, roots and scripts. Try to guess the elements laid out with scripted elements ``, ``, ``, ``, ``, ``. Each time you click such an element, it is highlighted and a confirmation message is displayed. Finally, read the MathML source to verify whether that corresponds to your expectation. ```html hidden - + @@ -230,7 +230,7 @@ math { ```js hidden const scriptedElements = Array.from( - document.querySelectorAll("msub, msup, msubsup, munder, mover, munderover") + document.querySelectorAll("msub, msup, msubsup, munder, mover, munderover"), ); const outputDiv = document.getElementById("output"); function clearHighlight() { @@ -244,7 +244,7 @@ scriptedElements.forEach((scripted) => { scripted.classList.add("highlight"); outputDiv.insertAdjacentHTML( "beforeend", - `

You clicked an <${scripted.tagName}> element.

` + `

You clicked an <${scripted.tagName}> element.

`, ); }); }); @@ -265,7 +265,7 @@ We have previously seen some [properties of the `` element](/en-US/docs/Lear Let's first perform the substitutions β z 1 + z 2 and α v 1 + v 2 : ```html hidden - + @@ -371,7 +371,7 @@ We now realize that the bottom bracket "⎵" and the rightward arrow "→" stret So far our example has actually been rendered with the [`display="block"`](/en-US/docs/Learn/MathML/First_steps/Getting_started#the_display_attribute) attribute. Let's look at the same example, as rendered without that attribute: ```html hidden - + diff --git a/files/en-us/learn/mathml/first_steps/tables/index.md b/files/en-us/learn/mathml/first_steps/tables/index.md index 36600ee98cddba3..7a26364e1209e81 100644 --- a/files/en-us/learn/mathml/first_steps/tables/index.md +++ b/files/en-us/learn/mathml/first_steps/tables/index.md @@ -131,7 +131,7 @@ Tables are typically used for matrix-like expressions (including vectors). Here This is again similar to [HTML tables](/en-US/docs/Learn/HTML/Tables/Basics#allowing_cells_to_span_multiple_rows_and_columns). The `` element accepts the `columnspan` and `rowspan` attributes to indicate that the cell spans multiples rows and columns. Below the inner matrix spans two columns of the outer matrix: ```html hidden - + @@ -222,7 +222,7 @@ This is again similar to [HTML tables](/en-US/docs/Learn/HTML/Tables/Basics#allo Besides representing matrix-like objects, MathML tables are sometimes used for advanced layout inside mathematical formulas, for example in [Wikipedia's definition of Legendre symbol](https://en.wikipedia.org/wiki/Legendre_symbol). Here, the different cases are written on three different rows while the values and conditions are placed on two different columns. ```html hidden - + diff --git a/files/en-us/learn/mathml/first_steps/text_containers/index.md b/files/en-us/learn/mathml/first_steps/text_containers/index.md index c2bb53bd91b79d0..8b666c357bde51c 100644 --- a/files/en-us/learn/mathml/first_steps/text_containers/index.md +++ b/files/en-us/learn/mathml/first_steps/text_containers/index.md @@ -45,7 +45,7 @@ Mathematical formulas involve many special characters, for example greek letters Since most of these characters are not part of Basic Latin Unicode block, it is recommended to specify your [document's character encoding](/en-US/docs/Learn/HTML/Introduction_to_HTML/The_head_metadata_in_HTML#specifying_your_documents_character_encoding) and to serve it with appropriate [web fonts](/en-US/docs/Learn/CSS/Styling_text/Web_fonts). Here is a basic template to use UTF-8 encoding and the [Latin Modern Math](/en-US/docs/Web/MathML/Fonts#fonts_with_a_math_table) font: ```html - + @@ -76,7 +76,7 @@ We noticed in the [getting started with MathML](/en-US/docs/Learn/MathML/First_s Below is a more complex example, which says that the absolute value of a real number is equal to that number if and only if it is nonnegative. Spot the different token elements and what they are used for. Each time you click the corresponding text, it is highlighted and a confirmation message is displayed. ```html hidden - + @@ -120,7 +120,7 @@ math { ```js hidden const tokenElements = Array.from( - document.querySelectorAll("mi, mo, mn, mtext") + document.querySelectorAll("mi, mo, mn, mtext"), ); const outputDiv = document.getElementById("output"); function clearHighlight() { @@ -134,7 +134,7 @@ tokenElements.forEach((token) => { token.classList.add("highlight"); outputDiv.insertAdjacentHTML( "beforeend", - `

You clicked an <${token.tagName}> element.

` + `

You clicked an <${token.tagName}> element.

`, ); }); }); @@ -242,7 +242,7 @@ Operators have many other properties that we will see in more details later. For Now that you are a bit familiar with special features of `` and ``, let's rewrite the `

` element in the [example at the top of the page](#unicode_characters_for_mathematics) with some actual MathML. Compare the visual rendering in your browser and explain the differences with the text-only version. ```html - + @@ -302,10 +302,10 @@ document.getElementById("showSolution").addEventListener( `

  • The <mi> elements containing the "A" and "n" variables are rendered in italic. However, the <mi> elements with multiple characters "𝔰𝔩" or whose character is "𝔽" are still rendered upright.
  • Spacing is automatically added around the <mo> elements whose text is "∀", "∊", "=" or a comma. However, some of them have no spacing added before while the parentheses still have no spacing around them.
  • -
` + `, ); }, - { once: true } + { once: true }, ); ``` @@ -318,7 +318,7 @@ document.getElementById("showSolution").addEventListener( The operator dictionary defines a default _stretchy_ property as well as corresponding _stretch axis_ for some operators. For example, an operator can stretch vertically by default to cover the maximum height of non-stretchy siblings within its `` container. By tweaking a bit the [previous exercise](#active_learning_recognize_token_elements), one can make operators stretch vertically. Can you find them? ```html hidden - + @@ -377,10 +377,10 @@ math { ```js hidden const tokenElements = Array.from( - document.querySelectorAll("mi, mo, mn, mtext") + document.querySelectorAll("mi, mo, mn, mtext"), ); const stretchyMoElements = Array.from( - document.getElementsByTagName("mo") + document.getElementsByTagName("mo"), ).slice(0, 2); const outputDiv = document.getElementById("output"); function clearHighlight() { @@ -401,7 +401,7 @@ tokenElements.forEach((token) => { message = `Correct, this ${tagName} element is indeed stretched to the height of its <mfrac> sibling.`; outputDiv.insertAdjacentHTML( "beforeend", - `

${message}

` + `

${message}

`, ); }); }); diff --git a/files/en-us/learn/mathml/first_steps/three_famous_mathematical_formulas/index.md b/files/en-us/learn/mathml/first_steps/three_famous_mathematical_formulas/index.md index 996583f04438b60..64a9a802f8e1831 100644 --- a/files/en-us/learn/mathml/first_steps/three_famous_mathematical_formulas/index.md +++ b/files/en-us/learn/mathml/first_steps/three_famous_mathematical_formulas/index.md @@ -92,7 +92,7 @@ using the following expression: To get this assessment started, you can rely on our usual HTML template. By default it uses UTF-8 encoding, special Web fonts for the `` and `` tags (with similar look & feel as the LaTeX output). The goal is to replace the question marks `???` with actual MathML content. ```html - + diff --git a/files/en-us/learn/server-side/express_nodejs/deployment/index.md b/files/en-us/learn/server-side/express_nodejs/deployment/index.md index 6fd03916972b9f4..618c9be1b5b5ecb 100644 --- a/files/en-us/learn/server-side/express_nodejs/deployment/index.md +++ b/files/en-us/learn/server-side/express_nodejs/deployment/index.md @@ -236,7 +236,7 @@ app.use( directives: { "script-src": ["'self'", "code.jquery.com", "cdn.jsdelivr.net"], }, - }) + }), ); // … diff --git a/files/en-us/learn/server-side/express_nodejs/mongoose/index.md b/files/en-us/learn/server-side/express_nodejs/mongoose/index.md index dbb40870daca5ea..0765c5eabb45420 100644 --- a/files/en-us/learn/server-side/express_nodejs/mongoose/index.md +++ b/files/en-us/learn/server-side/express_nodejs/mongoose/index.md @@ -405,7 +405,7 @@ const Athlete = mongoose.model("Athlete", yourSchema); // find all athletes who play tennis, selecting the 'name' and 'age' fields const tennisPlayers = await Athlete.find( { sport: "Tennis" }, - "name age" + "name age", ).exec(); ``` diff --git a/files/en-us/learn/server-side/express_nodejs/routes/index.md b/files/en-us/learn/server-side/express_nodejs/routes/index.md index 6754e7b7c08bf82..fecf3f84c2b8231 100644 --- a/files/en-us/learn/server-side/express_nodejs/routes/index.md +++ b/files/en-us/learn/server-side/express_nodejs/routes/index.md @@ -224,7 +224,7 @@ exports.get( asyncHandler(async (req, res, next) => { const successfulResult = await About.find({}).exec(); res.render("about_view", { title: "About", list: successfulResult }); - }) + }), ); ``` @@ -593,37 +593,37 @@ router.get("/genres", genre_controller.genre_list); // GET request for creating a BookInstance. NOTE This must come before route that displays BookInstance (uses id). router.get( "/bookinstance/create", - book_instance_controller.bookinstance_create_get + book_instance_controller.bookinstance_create_get, ); // POST request for creating BookInstance. router.post( "/bookinstance/create", - book_instance_controller.bookinstance_create_post + book_instance_controller.bookinstance_create_post, ); // GET request to delete BookInstance. router.get( "/bookinstance/:id/delete", - book_instance_controller.bookinstance_delete_get + book_instance_controller.bookinstance_delete_get, ); // POST request to delete BookInstance. router.post( "/bookinstance/:id/delete", - book_instance_controller.bookinstance_delete_post + book_instance_controller.bookinstance_delete_post, ); // GET request to update BookInstance. router.get( "/bookinstance/:id/update", - book_instance_controller.bookinstance_update_get + book_instance_controller.bookinstance_update_get, ); // POST request to update BookInstance. router.post( "/bookinstance/:id/update", - book_instance_controller.bookinstance_update_post + book_instance_controller.bookinstance_update_post, ); // GET request for one BookInstance. diff --git a/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/angular_styling/index.md b/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/angular_styling/index.md index 38d2ab545e77afb..24d5b3aeb99cf27 100644 --- a/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/angular_styling/index.md +++ b/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/angular_styling/index.md @@ -114,7 +114,9 @@ In `app.component.css`, add the following styles: margin: 2rem auto; padding: 1rem; text-align: center; - box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 2.5rem 5rem 0 rgba(0, 0, 0, 0.1); + box-shadow: + 0 2px 4px 0 rgba(0, 0, 0, 0.2), + 0 2.5rem 5rem 0 rgba(0, 0, 0, 0.1); } @media screen and (min-width: 600px) { diff --git a/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/main_features/index.md b/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/main_features/index.md index 9a528565c2a6bc4..27b8ce007cb1511 100644 --- a/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/main_features/index.md +++ b/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/main_features/index.md @@ -57,7 +57,7 @@ const subject = "World"; const header = React.createElement( "header", null, - React.createElement("h1", null, "Hello, ", subject, "!") + React.createElement("h1", null, "Hello, ", subject, "!"), ); ``` diff --git a/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/react_components/index.md b/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/react_components/index.md index fa4fac71e69bbd2..749676e7f8353a9 100644 --- a/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/react_components/index.md +++ b/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/react_components/index.md @@ -247,7 +247,7 @@ const root = ReactDOM.createRoot(document.getElementById("root")); root.render( - + , ); ``` diff --git a/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/react_getting_started/index.md b/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/react_getting_started/index.md index b9cd5380bb2d9b8..6cabca520e96be6 100644 --- a/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/react_getting_started/index.md +++ b/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/react_getting_started/index.md @@ -97,7 +97,7 @@ Of course, your browser can't read JSX without help. When compiled (using a tool const header = React.createElement( "header", null, - React.createElement("h1", null, "Mozilla Developer Network") + React.createElement("h1", null, "Mozilla Developer Network"), ); ``` @@ -310,7 +310,7 @@ const root = ReactDOM.createRoot(document.getElementById("root")); root.render( - + , ); // If you want to start measuring performance in your app, pass a function @@ -347,7 +347,7 @@ const root = ReactDOM.createRoot(document.getElementById("root")); root.render( - + , ); ``` diff --git a/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md b/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md index e00157ca366c707..b2dfe750daee3e4 100644 --- a/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md +++ b/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md @@ -313,7 +313,9 @@ body { width: 100%; max-width: 68rem; margin: 0 auto; - font: 1.6rem/1.25 Arial, sans-serif; + font: + 1.6rem/1.25 Arial, + sans-serif; background-color: #f5f5f5; color: #4d4d4d; } @@ -406,7 +408,9 @@ body { margin: 2rem 0 4rem 0; padding: 1rem; position: relative; - box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 2.5rem 5rem 0 rgba(0, 0, 0, 0.1); + box-shadow: + 0 2px 4px 0 rgba(0, 0, 0, 0.2), + 0 2.5rem 5rem 0 rgba(0, 0, 0, 0.1); } @media screen and (min-width: 550px) { .todoapp { diff --git a/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/svelte_getting_started/index.md b/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/svelte_getting_started/index.md index a5a84f13abc0d7d..893b4290da859f8 100644 --- a/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/svelte_getting_started/index.md +++ b/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/svelte_getting_started/index.md @@ -376,7 +376,7 @@ It also compiles the markup and `
- - -