Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
Webãµã¤ããã¹ããã¢ããªã®å®è£ ã«ããã¿ã³ã¯æ¬ ãããªãè¦ç´ ã®ä¸ã¤ã§ãããããªãã¿ã³ã®å®è£ ã«è¨å®ãã¦ããã¨ä¾¿å©ãªCSSã®ã¹ã¿ã¤ã«ãç´¹ä»ãã¾ãã ã¹ããã§ãã¿ã³ãã¿ããããéã«ãºã¼ã ãªã©ã®èª¤åä½ãèµ·ããªãããã«ããCSSããã¿ã³ã®ããã¹ããé¸æããã¦ãã¤ã©ã¤ãã«ãªããªãããã«ããCSSããã©ã¼ã«ã¹æã®ã¢ã¦ãã©ã¤ã³ãããè¦ãããããCSSããã¿ã³ã®è«çãµã¤ãºãè¨å®ããCSSãªã©ãããã©ã«ãã®ã¹ã¿ã¤ã«ã¨ãã¦è¨å®ãã¦ããã¨ä¾¿å©ã§ãã CSS Button Styles You Might Not Know by David Bushell ä¸è¨ã¯åãã¤ã³ããæ訳ãããã®ã§ãã â»å½ããã°ã§ã®ç¿»è¨³è¨äºã¯ãå ãµã¤ãæ§ã«ã©ã¤ã»ã³ã¹ãå¾ã¦ç¿»è¨³ãã¦ãã¾ãã ã¯ããã« ã¹ããã§ãã¿ã³ãã¿ããããéã®èª¤åä½ãé²æ¢ ãã¿ã³ã®ããã¹ãã®æå³ããªãé¸æ ãã¡ã¤ã«é¸æã®ãã¿ã³ ãã¿ã³ããã©ã¼ã«ã¹æã®è¦è¦çãªã¢ã¦ãã©ã¤ã³
CSSã§ãã使ç¨ããåä½ã¨ããã°ãpx, r(em)ãããã§ãããããCSSã¯ããã以å¤ã«ãããããã®åä½ã使ç¨ã§ãã¾ãã 第3å¼¾ã¨ãªãä»åã¯ã³ã³ããã¯ã¨ãªã«åºã¥ãåä½ï¼cqw, cqh, cqi, cqb, cqmin, cqmaxãªã©ï¼ã®ä¾¿å©ãªä½¿ãæ¹ãç´¹ä»ãã¾ãã Container query length units -Going beyond pixels and (r)ems in CSS by Brecht De Ruyte 第1å¼¾ã»ç¬¬2å¼¾ã¯ãä¸è¨ãã覧ãã ããã ãã©ã³ãã«åºã¥ãç¸å¯¾åä½ï¼em, rem, cap, ch, ex, ic, lhãªã©ï¼ã®ä¾¿å©ãªä½¿ãæ¹ã解説 ãã¥ã¼ãã¼ãã«åºã¥ãç¸å¯¾åä½ï¼vw, vh, lvh, svh, dvh, vb, viãªã©ï¼ã®ä¾¿å©ãªä½¿ãæ¹ã解説 ä¸è¨ã¯åãã¤ã³ããæ訳ãããã®ã§ãã â»å½ããã°ã§ã®ç¿»è¨³è¨äºã¯ãå ãµã¤ãæ§ã«ã©ã¤ã»ã³ã¹ãå¾
CSSã§ãã使ç¨ããåä½ã¨ããã°ãpx, r(em)ãããã§ãããããCSSã¯ããã以å¤ã«ãããããã®åä½ã使ç¨ã§ãã¾ãã ååã¯ãã©ã³ãã«åºã¥ãç¸å¯¾åä½ã§ããããä»åã¯ãã¥ã¼ãã¼ãã«åºã¥ãç¸å¯¾åä½ï¼vw, vh, lvh, svh, dvh, vb, viãªã©ï¼ã®ä¾¿å©ãªä½¿ãæ¹ãç´¹ä»ãã¾ãã Relative length units based on the viewport -Going beyond pixels and (r)ems in CSS by Brecht De Ruyte ä¸è¨ã¯åãã¤ã³ããæ訳ãããã®ã§ãã â»å½ããã°ã§ã®ç¿»è¨³è¨äºã¯ãå ãµã¤ãæ§ã«ã©ã¤ã»ã³ã¹ãå¾ã¦ç¿»è¨³ãã¦ãã¾ãã ã¯ããã« CSSã®åä½: vwã¨ã¯ CSSã®åä½: vhã¨ã¯ CSSã®åä½: vbã¨viã¨ã¯ããããã¯ã¨ã¤ã³ã©ã¤ã³ CSSã®åä½: lvh, svh, dvhã¨ã¯ ãã¥ã¼ãã¼ãåä½ã®è§£èª¬åç»
ç°ãªãã«ã©ã¼ãæ¿ããããèããããããã¨ããåå¥ã«ã«ã©ã¼ãè¨å®ãã¦ãã§ãã¾ãããCSSã®ç¸å¯¾ã«ã©ã¼æ§æï¼color: rgb(from green r g b);ï¼ã使ç¨ããã¨ç°¡åã«å®è£ ã§ãã¾ãã ä¸è¨ã¯ããããå ã®ã«ã©ã¼ã«å¯¾ãã¦ç¸å¯¾ã«ã©ã¼æ§æ1ã¤ã§ãã®ã«ã©ã¼ãæ¿ããããèãããããã¦ãã¾ãã1ã¤ã®ã«ã©ã¼ã«å¯¾ãã¦è¤æ°ã®æ¿ããå¿ è¦ãªå ´åã«ä¾¿å©ã§ãã CSSã®ç¸å¯¾ã«ã©ã¼æ§æã¨ã¯ CSSã®ç¸å¯¾ã«ã©ã¼æ§æã®ã㢠CSSã®ç¸å¯¾ã«ã©ã¼æ§æã¨ã¯ CSSã®ç¸å¯¾ã«ã©ã¼ï¼CSS Relative colorsï¼æ§æã使ç¨ããã¨ãä»ã®ã«ã©ã¼ã®ãã©ã¡ã¼ã¿ãå¤æ´ãã¦ã«ã©ã¼ãå®ç¾©ã§ãã¾ããç¸å¯¾ã«ã©ã¼æ§æã¯è¨å®ããè²ãç¸å¯¾è²ã«å¤æãã¾ããå¤æã«ã¯ãfromãã¼ã¯ã¼ãã使ç¨ãã¾ãããã©ã¦ã¶ã¯ãã¼ã¹ã®ã«ã©ã¼ãå¤æãã¦å解ããæ°ããã«ã©ã¼ã®å®ç¾©ã§ä½¿ç¨ããå¤æ°ã¨ãã¦ä½¿ç¨ã§ãã¾ãã
ä»åã®ã¢ãããã¼ãã§ã¯ãããªã便å©ãªCSSã®ããããã£ã追å ããã¾ããã ã©ã¤ãã¢ã¼ãã¨ãã¼ã¯ã¢ã¼ãã®ã¹ã¿ã¤ã«ãç°¡åã«å®ç¾©ã§ããlight-dark()ã«ã©ã¼é¢æ°ãåç´æ¹åã®ä¸å¤®ã«é ç½®ããalign-contentããããã£ããã©ã¼ã ã®ãµã¤ãºãå ¥åãããæåéã«åããã¦èªåå¤æ´ããfield-sizingããããã£ãCSSã§å¥èªç¹æ¬å¼§ã®ã«ã¼ãã³ã°ãã§ããtext-spacing-trimããããã£ããããããã©ã¦ã¶ã«ãµãã¼ããããã®ãå¾ ã£ã¦ãã人ãå¤ãã¨æãã¾ãã Chrome 123 beta New in Chrome 123 ä¸è¨ã¯åãã¤ã³ããæ訳ãããã®ã§ãã â»å ãµã¤ãæ§ã®ã©ã¤ã»ã³ã¹ã«åºã¥ãã¦ç¿»è¨³ãã¦ãã¾ããåºã¥ãã¦ã¨ããã®ã¯ãè²¢ç®é¨åã«é¢ãã¦åã©ã¤ã»ã³ã¹ãå«ã¿ã¾ãã ã¯ããã« CSSã®light-dark()ã«ã©ã¼é¢æ° CSSã®display-modeã§picture-in-p
Xã®åå¦è ã®ãã¹ãã«ã¦å¤ã®ææ³ãæãã£ã¦ããæ¹ãããè¦ãããã®ã§ã2024å¹´ç¾å¨ãã®CSSãã¯ããã¯ã¯ããå¤ãã£ã¦ãã®ãããã¤ãåæãã¾ããã ãããã¯ã®ã»ã³ã¿ãªã³ã°ã« margin ã使ããªã margin-inline:auto ã使ããªããmarginã使ã£ã¦ãããã¯ã®ã»ã³ã¿ãªã³ã°ãè¡ãéã«ããæããã®ã¯margin:0 autoãããã¯margin:autoã§ãããã
2024.03.15 ç¦å²¡ããã³ãã¨ã³ãåå¼·ä¼ #1
CSSã®:has()çä¼¼ã¯ã©ã¹ã¯2023å¹´æ®ãã«Firefoxã§ããµãã¼ãããããã¹ã¦ã®ä¸»è¦ãã©ã¦ã¶ã§ãµãã¼ãããã¾ãããä»ã¾ã§ã®CSSã§ã¯ãè¦ç´ ã®åå¨ã®ããã»ãªãã«ãã£ã¦ç¹å®ã®è¦ªãè¦ç´ ã«ã¹ã¿ã¤ã«ãè¨å®ãããã¨ã¯ä¸å¯è½ã§ãããã:has()çä¼¼ã¯ã©ã¹ã®ãããã§ãæå®ããè¦ç´ ãããå ´åã«ã®ã¿ã¹ã¿ã¤ã«ãé©ç¨ã§ããããã«ãªãã¾ããã Webãµã¤ãã®UIã§ããè¦ãããCSSã®:has()çä¼¼ã¯ã©ã¹ã®ä¾¿å©ãªä½¿ãæ¹ãç´¹ä»ãã¾ããä»ã¾ã§ã¯å°ãé¢åãªCSSããããã¯JavaScriptãå¿ è¦ã§ãããã:has()çä¼¼ã¯ã©ã¹ãç¨ããã¨ç°¡åã«å®è£ ã§ãã¾ãã Some little ways Iâm using CSS :has() in the real world by Andy Bell ä¸è¨ã¯åãã¤ã³ããæ訳ãããã®ã§ãã â»å½ããã°ã§ã®ç¿»è¨³è¨äºã¯ãå ãµã¤ãæ§ã«ã©ã¤ã»ã³ã¹ãå¾ã¦ç¿»è¨³ãã¦ãã¾ãã ã¯ããã«
CSSã®:has()çä¼¼ã¯ã©ã¹ã¯å»å¹´æ«ã«Firefoxã§ãµãã¼ããããããã§ãã¹ã¦ã®ãã©ã¦ã¶ã«ãµãã¼ãããã¾ããã2024å¹´ã¯ã:has()çä¼¼ã¯ã©ã¹ã使ç¨ããæ©ä¼ãå¢ãã¾ããã CSSã®:has()çä¼¼ã¯ã©ã¹ã¯æå®ããè¦ç´ ãããå ´åã«ã®ã¿ã¹ã¿ã¤ã«ãé©ç¨ã§ãããifæã®ãããªé常ã«ä¾¿å©ãªCSSã®æ©è½ã§ãããã®:has()çä¼¼ã¯ã©ã¹ã®åºæ¬çãªä½¿ãæ¹ã¨ã·ã³ãã«ã ãã©ã¯ã¼ã«ãªä½¿ãæ¹ãç´¹ä»ãã¾ãã âï¸ Sideway selection in CSS with :has() by Francesco Vetere ä¸è¨ã¯åãã¤ã³ããæ訳ãããã®ã§ãã â»å½ããã°ã§ã®ç¿»è¨³è¨äºã¯ãå ãµã¤ãæ§ã«ã©ã¤ã»ã³ã¹ãå¾ã¦ç¿»è¨³ãã¦ãã¾ãã :has()çä¼¼ã¯ã©ã¹ã®ã·ã³ãã«ã§ã¯ã¼ã«ãªä½¿ãæ¹ å®è£ ã®è§£èª¬ :has()çä¼¼ã¯ã©ã¹ã®ã·ã³ãã«ã§ã¯ã¼ã«ãªä½¿ãæ¹ ã¿ãªãããããã«ã¡ãï¼ð ãã®è¨äºã§ã¯ãæè¿ãã¹ã¦ã®ãã©ã¦ã¶ã«
ã¢ãã³CSSã§ãã¼ãã«ãã¼ãã©ã¹ãã©ã¤ããããããã¼ãã«ã®åé ãè§ä¸¸ã«ãããï¼æã¯ããªãé¢åã§ããï¼ãåãè¡ãåå²ããããããã¼ã§ãã¤ã©ã¤ããã¢ã¦ãã©ã¤ã³ã表示ããããªã©ã表ã®ãã¼ã¿ãèªã¿ããããããã¼ãã«ï¼<table>ï¼ã®ãã¾ãã¾ãªã¹ã¿ã¤ã«ãç´¹ä»ãã¾ãã A Guide to Styling Tables by Mads Stoumann ä¸è¨ã¯åãã¤ã³ããæ訳ãããã®ã§ãã â»å½ããã°ã§ã®ç¿»è¨³è¨äºã¯ãå ãµã¤ãæ§ã«ã©ã¤ã»ã³ã¹ãå¾ã¦ç¿»è¨³ãã¦ãã¾ãã ã¯ããã« ãã¼ãã«ãæ§æããHTMLã®è¦ç´ ãã¼ãã«ãã¼ãã©ã¹ãã©ã¤ãã«ããCSS ãã¼ãã«ãè§ä¸¸ã«ããCSS ãã¼ãã«ã®åãåå²ããCSS ãã¼ãã«ã®è¡ãåå²ããCSS ããã¼ã»ãã©ã¼ã«ã¹ã§ãã¤ã©ã¤ãããCSS ããã¼ã§ã¢ã¦ãã©ã¤ã³ã表示ããCSS ãã¼ã¿ãå·¦å³ã»ä¸å¤®ã«æããCSS çµããã« ã¯ããã« ç§ã¯æè¿ãå°ããªçç¾ã«æ°ãã¤ãã¾ããã
ãã¤ã®æ代ã«ã z-index ã®ç®¡çã«ã¯é ãæ©ã¾ãã¾ããz-index ã®å¤ã«ã¯ 1 以å¤ã®å¤ã許å¯ããªããªã©ã®ç®¡çæ¹æ³ãããã¾ãããå¤é¨ã®ã©ã¤ãã©ãªã使ç¨ãã¦ãå ´åã«åã¤ãã¨ãã§ãã¾ããã ããã§ãz-index ã®å¤ã« calc(infinity) ãæå®ããã¨ã絶対ã«æåé¢ã«è¡¨ç¤ºããããã¨ãã§ãã¾ãã infinity 㯠calc() ã®ä¸ã§ä½¿ç¨ã§ããç¹æ®ãªå¤ã§ããååã®éãæã大ããªå¤ã表ãã¾ãã ãã®ãããã©ããªã«å¤§ã㪠z-index ã®å¤ãæå®ããã¦ããcalc(infinity) ãæã大ããªå¤ã«ãªããããæåé¢ã«è¡¨ç¤ºãããããã§ããã
CSSã®:has()çä¼¼ã¯ã©ã¹ã¯ä¾¿å©ããã ãã©ãã©ã¦ã¶ã®ãµãã¼ããã¾ã ãã¨è¦éã£ã¦ãã人ã«æå ±ã§ãã12/19ã«ãªãªã¼ã¹ãããFirefox 121ï¼ãªãªã¼ã¹æ å ±ï¼ã§ãµãã¼ããããããã§:has()çä¼¼ã¯ã©ã¹ããã¹ã¦ã®ãã©ã¦ã¶ã«ãµãã¼ãããã¾ããã ãããª:has()çä¼¼ã¯ã©ã¹ã®ä¾¿å©ãªä½¿ãæ¹ãç´¹ä»ãã¾ãã :has()çä¼¼ã¯ã©ã¹ã®ãµãã¼ãç¶æ³ â»ã¾ã Firefox 121ã®åãã¢ãããã¼ãããã¦ããªãããã§ãã Chrome, Edgeã¯105ãããSafariã¯15.4ãããµãã¼ãããã¦ããã®ã§ãæ¥å¹´ã¯:has()çä¼¼ã¯ã©ã¹ã使ç¨ããæ©ä¼ãå¢ããã§ãããã ã¾ãã12/20ã«ã¢ãããã¼ããããTailwind CSS v3.4ï¼ãªãªã¼ã¹æ å ±ï¼ã§ã:has()çä¼¼ã¯ã©ã¹ããµãã¼ãããã¾ããã :has()çä¼¼ã¯ã©ã¹ã®åºç¤ç¥è CSSã®:has()çä¼¼ã¯ã©ã¹ã¨ã¯ãæå®ããè¦ç´ ãããå ´åã«ã®ã¿
CSSã®ãã®æ©è½ãå¾ ã£ã¦ãã人ãå¤ãã¨æãã¾ãï¼ CSSã§ãå¥èªç¹æ¬å¼§ã®ã«ã¼ãã³ã°ãèªåã§ã§ãããããã¬ã¼ãºã®éä¸ã§æ¹è¡ãããªãããã«ããããæ¥æ¬èªã¨è±èªãæ··å¨ããããã¹ãã§ã¹ãã¼ã·ã³ã°ãèªå調æ´ããããã10px以ä¸ã§ãæå®ãµã¤ãºéãã«è¡¨ç¤ºãããããªã©ãæ¥æ¬èªãèªã¿ããããªãæè¿ãµãã¼ããããã»è¿æ¥ãµãã¼ããããCSSã®æ©è½ãç´¹ä»ãã¾ãã Introducing four new international features in CSS by Jack J ä¸è¨ã¯åãã¤ã³ããæ訳ãããã®ã§ãã â»å ãµã¤ãæ§ã®ã©ã¤ã»ã³ã¹ã«åºã¥ãã¦ç¿»è¨³ãã¦ãã¾ããåºã¥ãã¦ã¨ããã®ã¯ãè²¢ç®é¨åã«é¢ãã¦åã©ã¤ã»ã³ã¹ãå«ã¿ã¾ãã ã¯ããã« word-break: auto-phrase;ã«ãããã¬ã¼ãºã§èªåæ¹è¡ text-autospaceã«ããæåéã®ã¹ãã¼ã·ã³ã° text-spacing-trimã«ããå¥èª
:root { --hue: 210; --size: 100px; --border: 10px; --speed: 1s; --blur: var(--border); } body { background: hsl(var(--hue) 50% 8%); } .loader { width: var(--border); aspect-ratio: 1; background: white; border-radius: 50%; position: absolute; --y: calc((var(--size) * -0.5) + (var(--border) * 0.5)); transform: rotate(0deg) translateY(var(--y)); animation: spin var(--speed) infinite linear; } .loader
ä»ã¾ã§ã¯JavaScriptã使ç¨ããªãã¨ã§ããªãã£ããã¨ãããã£ã1è¡ã®CSSã§ç°¡åã«å®è£ ã§ããããã«ãªãã¾ãããã©ã¼ã ã®textareaã«æåãå ¥åããã¨ããã®æåéã«åããã¦ãµã¤ãºãèªåã§å¤æ´ããCSSã®æ°ããããããã£ãç´¹ä»ãã¾ãã ä¸è¨ã®ããã«å ¥åãããæåéã«åããã¦ãµã¤ãºãèªåã§æ¡å¼µãã¦ããã¾ããã¾ããmin-heightãmax-heightãåæã«è¨å®ã§ããã®ã§ãä¸éä¸éã®ãµã¤ãºãè¨å®ãããã¨ãã§ãã¾ãã CSSã®æ°ããããããã£ã¯field-sizingã§ããfield-sizingããããã£ã使ç¨ããã¨ããã©ã¼ã ã³ã³ããã¼ã«ã®ããã©ã«ãã®ãµã¤ãºãç¡å¹ã«ãããã©ã¼ã ã®ãµã¤ãºãã³ã³ãã³ãã«ä¾åããããã¨ãã§ãã¾ãããã®ãããèªåã§æ¡å¼µãããtextareaãå®è£ ããã®ãç°¡åã«ãªãã¾ãã åè: Feature: field-sizing CSS property CSSã¯
ã¢ãã³ãã©ã¦ã¶ãã¿ã¼ã²ããã«ããWebå¶ä½ã§ã¯ããªã»ããCSSèªä½ãå¿ è¦ãªãããããã¾ãããã¨ã¯è¨ã£ã¦ããè¨å®ãã¦ããããã¹ã¿ã¤ã«ãä¸é¨ã®ãã©ã¦ã¶ç¨ã«è¨å®ãã¦ããããã¹ã¿ã¤ã«ãããã¾ãã ç¾å¨ã®Webå¶ä½ã«åããã¦å¶ä½ããããªã»ããCSSãç´¹ä»ãã¾ãããªãããããã®ãããªãããã使ç¨ããªãã®ããCSSã®ç¥è¦ããã¯ããã¯ãæºè¼ã§ãï¼ A (more) Modern CSS Reset by Andy Bell ä»ã®ãªã»ããCSSãæ°ã«ãªã人ã¯ããã¡ãã注ç®ã§ãã A (more) Modern CSS Resetã®åã®ãã¼ã¸ã§ã³ã解説ãã¦ãã¾ãã 2023å¹´ãç¾å¨ã®ç°å¢ã«é©ãããªã»ããCSSã®ã¾ã¨ã ä¸è¨ã¯åãã¤ã³ããæ訳ãããã®ã§ãã â»å½ããã°ã§ã®ç¿»è¨³è¨äºã¯ãå ãµã¤ãæ§ã«ã©ã¤ã»ã³ã¹ãå¾ã¦ç¿»è¨³ãã¦ãã¾ãã ã¯ããã« ã¢ãã³ãã©ã¦ã¶ã«é©åãªããã©ã«ãã®ãªã»ããCSS åãªã»ããCSSã®è§£èª¬
å æ¥ã®è¨äºï¼Chrome 117ã§ãµãã¼ããããCSSã®6ã¤ã®æ°ããæ©è½ã¨ããããã£ï¼ã§è§¦ãã¾ãããCCSS Gridã®subgridå¤ããgrid-template-columnsã¨grid-template-rowsã®2ã¤ã§è¨å®ã§ããããã«ãªãã¾ãããSafari, Firefoxã§ã¯ãã§ã«ãµãã¼ãããã¦ããã®ã§ãããã§ä¸»è¦ãã©ã¦ã¶ã®ãã¹ã¦ã§å©ç¨ã§ãã¾ãã CSSã®ãµãã°ãªããï¼subgridï¼ã使ç¨ããã¨ãä¸è¨ã®ããã«åè¦ç´ ï¼ç»åã»è¦åºãã»ããã¹ãï¼ã®æ°´å¹³ã°ãªãããç°¡åã«æãããã¨ãã§ãã¾ãã CSSã®ãµãã°ãªããï¼subgridï¼ã§åè¦ç´ ã®ã°ãªãããæãã CSSã®ãµãã°ãªããï¼subgridï¼ã®ãµãã¼ããã©ã¦ã¶ ãã¢ãã¼ã¸ã®è§£èª¬ CSSã®ãµãã°ãªããï¼subgridï¼ã§åè¦ç´ ã®ã°ãªãããæãã 3ã¤ã®ã«ã¼ãããããããããã«ç»åã»è¦åºãã»ããã¹ããããã¾ããsubgrid以åã¯ã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}