file stringlengths 16 94 | text stringlengths 32 24.4k | vector list |
|---|---|---|
html/reference/attributes/autocomplete/index.md | HTML - Attributes - autocomplete - Accessibility - Avoid disabling autocomplete:
Setting `autocomplete="off"` prevents the browser from offering stored data for a field. While developers sometimes use this to prevent autofill for security reasons (such as one-time codes), it removes a feature that many users depend on... | [
-0.8282909393310547,
-0.30091455578804016,
-1.0491966009140015,
0.08312053978443146,
0.02041289210319519,
-1.8113441467285156,
1.7484714984893799,
1.2762514352798462,
0.37378638982772827,
-0.2773039937019348,
-0.8256771564483643,
-0.037811022251844406,
-0.3235222399234772,
0.16233491897583... |
html/reference/attributes/autocomplete/index.md | HTML - Attributes - autocomplete - Accessibility - Avoid invalid autocomplete values:
Using invalid or non-standard values (such as made-up strings to circumvent autofill) has a similar effect: the browser cannot match the field to any known purpose, so it cannot offer relevant suggestions. This also fails the WCAG re... | [
-1.0653157234191895,
-0.2070358544588089,
-0.6042046546936035,
0.09972384572029114,
0.16548457741737366,
-2.7542340755462646,
2.1139235496520996,
0.8583793640136719,
-0.15458473563194275,
0.5587208867073059,
-0.625153124332428,
-0.14423596858978271,
-0.21304605901241302,
-0.379962831735610... |
html/reference/attributes/autocomplete/index.md | HTML - Attributes - autocomplete - Examples:
Example:
<div>
<label for="cc-number">Enter your credit card number</label>
<input name="cc-number" id="cc-number" autocomplete="off" />
</div> | [
-1.4394699335098267,
-0.23270049691200256,
-0.5623838901519775,
-0.5332409143447876,
0.16863247752189636,
-0.6023678779602051,
0.9983243942260742,
0.9948523044586182,
-0.032130397856235504,
0.0065595791675150394,
-0.07624657452106476,
-0.34754249453544617,
-0.32459431886672974,
-0.50602042... |
html/reference/attributes/autocomplete/index.md | HTML - Attributes - autocomplete - Examples - Administrative levels in addresses:
The four administrative level fields (`address-level1` through `address-level4`) describe the address in terms of increasing levels of precision within the country in which the address is located. Each country has its own system of admin... | [
-0.3779069483280182,
0.20356477797031403,
-0.34180694818496704,
-0.46041086316108704,
0.6486967206001282,
-1.2306926250457764,
0.8373318314552307,
-0.5100838541984558,
0.27691376209259033,
-0.11115805804729462,
-0.3574971854686737,
0.6177809834480286,
-0.16119937598705292,
0.38584703207015... |
html/reference/attributes/autocomplete/index.md | HTML - Attributes - autocomplete - Examples - Form layout flexibility:
Given that different countries write their address in different ways, with each field in different places within the address, and even different sets and numbers of fields entirely, it can be helpful if, when possible, your site is able to switch t... | [
0.49303939938545227,
0.2570175528526306,
-0.7528561353683472,
-0.12737438082695007,
-0.1543329656124115,
-1.0156112909317017,
1.5917649269104004,
-0.04179879277944565,
0.493895947933197,
-0.2005006968975067,
-0.32332903146743774,
0.6766025424003601,
-0.6508073806762695,
-0.1182964891195297... |
html/reference/attributes/autocomplete/index.md | HTML - Attributes - autocomplete - Examples - Variations:
The way each administrative level is used will vary from country to country. Below are some examples; this is not meant to be an exhaustive list. | [
0.36794552206993103,
0.2091735601425171,
-0.7709043622016907,
-0.1246434673666954,
-0.7026361227035522,
-1.1773501634597778,
1.8696717023849487,
1.3674144744873047,
-0.3036830425262451,
-0.19607363641262054,
-0.1083168163895607,
0.01011618971824646,
-0.8315028548240662,
0.5556212663650513,... |
html/reference/attributes/autocomplete/index.md | HTML - Attributes - autocomplete - Examples - Variations - United States:
A typical home address within the United States looks like this:
432 Anywhere St Exampleville CA 95555
In the United States, the least-specific portion of the address is the state, in this case "CA" (the official US Postal Service shorthand fo... | [
-1.0716501474380493,
-0.24815060198307037,
-0.7994904518127441,
0.10685701668262482,
0.3854537010192871,
-1.2604368925094604,
1.114291787147522,
0.7057463526725769,
-0.4287254214286804,
0.4001745581626892,
0.25918570160865784,
0.9160321354866028,
0.025664933025836945,
-0.029402533546090126... |
html/reference/attributes/autocomplete/index.md | HTML - Attributes - autocomplete - Examples - Variations - United Kingdom:
Address input forms in the UK should contain one or two address levels and one, two or three address lines, depending on the address. A complete address would look like so:
103 Frogmarch Street Upper-Wapping Winchelsea Whereshire TN99 8ZZ
The... | [
-0.2196803092956543,
-0.5526357293128967,
-1.1629377603530884,
-0.7610762715339661,
0.985066294670105,
-1.8976644277572632,
1.5168617963790894,
-0.8492259979248047,
-0.7663182616233826,
-0.32807695865631104,
-0.08361884951591492,
1.0333162546157837,
-0.14573732018470764,
-0.306524813175201... |
html/reference/attributes/autocomplete/index.md | HTML - Attributes - autocomplete - Examples - Variations - China:
China can use as many as three administrative levels: the province, the city, and the district.
The 6 digit postal code is not always needed but when supplied it is placed separately with a label for clarity. For example:
北京市东城区建国门北大街 8 号华润大厦 17 层 170... | [
-1.0693615674972534,
0.12639039754867554,
-1.0459531545639038,
-0.31205588579177856,
0.4312596321105957,
-0.5461157560348511,
-0.423858106136322,
-0.33550572395324707,
-0.08379340171813965,
-0.04589634761214256,
-0.6934619545936584,
1.4753066301345825,
-0.2456514686346054,
0.33705449104309... |
html/reference/attributes/autocomplete/index.md | HTML - Attributes - autocomplete - Examples - Variations - Japan:
An address in Japan is typically written in one line, in an order from the least-specific to more-specific portions (in reverse order to the United States). There are two or three administrative levels in an address. Additional line can be used to show ... | [
-0.3332623243331909,
-0.7103956937789917,
-1.2030677795410156,
-0.9193926453590393,
0.9451745748519897,
-0.27325570583343506,
0.9739998579025269,
-0.19113314151763916,
-0.7645217180252075,
-0.27332934737205505,
-0.4836265444755554,
0.6505250334739685,
-0.6194060444831848,
0.426996916532516... |
svg/reference/attribute/method/index.md | SVG - Attribute - method:
The `method` attribute indicates the method by which text should be rendered along the path of a `textPath` element.
You can use this attribute with the following SVG elements:
- `textPath` | [
-0.6781978011131287,
-0.8957220315933228,
-0.08455409109592438,
0.41112083196640015,
0.0008093118667602539,
-1.4935643672943115,
0.908166766166687,
1.0003489255905151,
-0.15758538246154785,
-0.3350645899772644,
0.08477756381034851,
-0.31520792841911316,
0.14645543694496155,
0.1978328824043... |
svg/reference/attribute/method/index.md | SVG - Attribute - method - textPath:
For `textPath`, `method` indicates the method by which text should be rendered along the path.
- align: This value indicates that the characters should be rendered so that they are not stretched or warped. The characters are rotated, scaled and stretched when they are rendered. As... | [
-0.4800080955028534,
-0.03232041001319885,
-0.2963992655277252,
0.5307190418243408,
0.4150094985961914,
-0.6199308037757874,
0.18236184120178223,
0.6202266812324524,
0.10121168196201324,
-0.039943575859069824,
0.27584367990493774,
-0.18290942907333374,
1.1172376871109009,
0.183116450905799... |
svg/reference/attribute/download/index.md | SVG - Attribute - download:
The `download` attribute instructs browsers to download a `URL` instead of navigating to it, so the user will be prompted to save it as a local file.
You can use this attribute with the following SVG elements:
- `a` | [
-1.758852481842041,
-0.18369069695472717,
-1.1035963296890259,
-0.051290109753608704,
-0.706511914730072,
-1.3062808513641357,
1.0465490818023682,
0.43809351325035095,
-0.07696619629859924,
-0.6256032586097717,
-0.6096838116645813,
0.16102132201194763,
-0.8040053248405457,
0.28601488471031... |
svg/reference/attribute/download/index.md | SVG - Attribute - download - Value:
The `download` attribute can take an optional string value:
- Without a value (boolean form), the browser will suggest a filename and extension for the download, which may be derived from the following sources:
- The `Content-Disposition` HTTP header
- The final segment in the ... | [
-0.41595983505249023,
-0.45509621500968933,
-0.8006523847579956,
0.7270435094833374,
0.31590306758880615,
-0.4824110269546509,
0.4465632140636444,
1.2975643873214722,
-0.23638761043548584,
-0.13567334413528442,
0.043593667447566986,
0.15286202728748322,
-0.31432655453681946,
-0.15209165215... |
svg/reference/attribute/download/index.md | SVG - Attribute - download - Description:
The `download` attribute works for only same-origin URLs or for the `blob:` and `data:` schemes.
The download behavior varies by browser, user settings, and other factors. The user may be prompted before the download starts, and the file may be saved and/or opened automatical... | [
-0.39113056659698486,
-0.6603473424911499,
-0.9973140954971313,
0.6435298323631287,
0.3659736216068268,
-0.8437556028366089,
0.008707433938980103,
1.0902307033538818,
0.09222294390201569,
-0.12236517667770386,
-0.5461286306381226,
-0.13147324323654175,
-0.5374894738197327,
-0.1445116400718... |
svg/reference/attribute/download/index.md | SVG - Attribute - download - Examples - Demonstrating the effect of `download`:
This example shows the effect of adding the `download` attribute to an SVG link.
Example:
html,
body {
height: 100%;
}
svg {
height: 100px;
} | [
-1.763382911682129,
-0.14076988399028778,
-1.2059874534606934,
-0.4622800946235657,
-0.49871793389320374,
-1.0223617553710938,
1.8741971254348755,
1.138919711112976,
-0.32505476474761963,
-0.5519171953201294,
-0.3068138062953949,
0.5388136506080627,
-1.2394251823425293,
0.43039995431900024... |
svg/reference/attribute/download/index.md | SVG - Attribute - download - Examples - Demonstrating the effect of `download` - HTML:
In this example, we present two very similar SVG links that point to the same `data:` URL, which encodes a red heart-shaped image. The first one doesn't include the `download` attribute and has the link text "Display my image". The ... | [
-0.9599282741546631,
-0.120879627764225,
-0.3319881558418274,
0.3151705861091614,
0.23031485080718994,
-0.9753367900848389,
0.37807613611221313,
1.4163280725479126,
-0.36459997296333313,
-0.27917250990867615,
-0.31723469495773315,
0.3869677484035492,
-0.2324715405702591,
0.1585149616003036... |
svg/reference/attribute/spacing/index.md | SVG - Attribute - spacing:
The `spacing` attribute indicates how the user agent should determine the spacing between typographic characters that are to be rendered along a path.
You can use this attribute with the following SVG elements:
- `textPath` | [
-1.33004629611969,
-0.7923727035522461,
-0.16052915155887604,
0.704145073890686,
0.09106220304965973,
-1.7745795249938965,
0.529108464717865,
0.46614542603492737,
0.4722273349761963,
-0.14967212080955505,
0.3363139033317566,
-0.16821220517158508,
-0.08076461404561996,
-0.5911661386489868,
... |
svg/reference/attribute/spacing/index.md | SVG - Attribute - spacing - Usage notes:
- `auto`: This value indicates that the user agent should use text-on-a-path layout algorithms to adjust the spacing between typographic characters in order to achieve visually appealing results.
- `exact`: This value indicates that the typographic characters should be rendered... | [
-1.2390378713607788,
-1.1622297763824463,
-0.2524875998497009,
0.05028557777404785,
0.15119613707065582,
-1.4416675567626953,
0.7182507514953613,
0.39748311042785645,
0.6169068813323975,
0.0027116574347019196,
0.21323132514953613,
-0.10175232589244843,
0.5042382478713989,
-0.74916368722915... |
svg/reference/attribute/rotate/index.md | SVG - Attribute - rotate:
The `rotate` attribute has two different uses depending on the element it is applied to:
- On `animateMotion` elements it specifies how the animated element rotates as it travels along a motion path.
- On `text` and `tspan` elements it specifies rotation for each glyph in the text element.
... | [
-1.6158756017684937,
-0.691996157169342,
-0.5830284357070923,
1.1120041608810425,
-0.46303674578666687,
-1.1718188524246216,
1.0089508295059204,
0.3011957108974457,
0.05839437246322632,
-0.3084297478199005,
0.126829132437706,
-0.47657570242881775,
-0.574690580368042,
-0.2241351306438446,
... |
svg/reference/attribute/rotate/index.md | SVG - Attribute - rotate - animateMotion:
The `auto` and `auto-reverse` values allow the animated element's rotation to change dynamically as it travels along the path. If the value of `rotate` is `auto`, the element turns to align its right-hand side in the current direction of motion. If the value is `auto-reverse`,... | [
-1.707926869392395,
-1.163679599761963,
-0.4042533338069916,
0.6668195724487305,
-0.6639642119407654,
-0.5959254503250122,
1.2960283756256104,
0.5824588537216187,
0.155470073223114,
-0.1860060840845108,
-0.41519999504089355,
-0.6655639410018921,
-0.29979661107063293,
0.25412219762802124,
... |
svg/reference/attribute/rotate/index.md | SVG - Attribute - rotate - text and tspan:
A list of numbers (separated by spaces or commas), each specifying the rotation in degrees to apply to the corresponding glyph. If there are fewer numbers than glyphs, the last number is applied to all remaining glyphs. If there are more numbers than glyphs, the extra numbers... | [
-1.8687744140625,
-0.40618905425071716,
-0.4639577567577362,
0.24217653274536133,
0.5260656476020813,
-0.6573020219802856,
0.9638991355895996,
-0.3803320527076721,
0.3988898694515228,
-0.22540909051895142,
-0.3564317226409912,
-0.2139917016029358,
-0.5530326962471008,
0.5990614295005798,
... |
svg/reference/attribute/rotate/index.md | SVG - Attribute - rotate - Examples - Rotation along a motion path (animateMotion) - SVG:
Example:
<svg
width="400"
height="120"
viewBox="0 0 480 120"
xmlns="http://www.w3.org/2000/svg">
<!-- Draw the outline of the motion path in grey -->
<path
d="M10,110 A120,120 -45 0,1 110 10 A120,120 -45 0,1 10,1... | [
-1.2526988983154297,
-0.15359707176685333,
-0.7277806401252747,
0.1487150490283966,
-0.05616213008761406,
-0.6007929444313049,
-0.26578786969184875,
0.8168500065803528,
-0.1435004472732544,
-0.20623494684696198,
0.1208047866821289,
-0.4939574897289276,
1.1747242212295532,
0.091678887605667... |
svg/reference/attribute/rotate/index.md | SVG - Attribute - rotate - Examples - Per-glyph rotation (text) - SVG:
Example:
<svg width="200" height="80" xmlns="http://www.w3.org/2000/svg">
<text x="20" y="50" font-size="28" rotate="0 15 30 45 60 75">Hello!</text>
</svg> | [
-2.705796241760254,
-0.4046977460384369,
-0.33795422315597534,
-0.25546061992645264,
-0.6045238971710205,
-0.8743550777435303,
1.2803679704666138,
-0.17898908257484436,
0.23233550786972046,
-0.5565377473831177,
0.4886389374732971,
0.6076428890228271,
0.035744160413742065,
-0.64170587062835... |
svg/reference/attribute/transform/index.md | SVG - Attribute - transform:
The `transform` attribute defines a list of transform definitions that are applied to an element and the element's children.
Note: As a presentation attribute, `transform` also has a CSS property counterpart: `transform`. When both are specified, the CSS property takes priority. Note that... | [
-0.8113081455230713,
-0.5405234098434448,
-1.029321312904358,
0.7588444948196411,
-0.11665544658899307,
-1.7498003244400024,
1.0372689962387085,
1.607696771621704,
0.8017311096191406,
-0.0033375341445207596,
0.14750774204730988,
-0.6621702909469604,
-1.0101244449615479,
0.7545441389083862,... |
svg/reference/attribute/transform/index.md | SVG - Attribute - transform - Elements:
In SVG 2, you can use the `transform` attribute on any element, including the `svg` root. Note that using `transform` on the `<svg>` root is a newer feature, and you should check browser compatibility for support. Using `transform` on the `<svg>` root is convenient for applying ... | [
0.10038957744836807,
-0.06005340814590454,
0.26420074701309204,
0.5284801125526428,
0.9062440991401672,
-2.2079906463623047,
0.6606572866439819,
1.7813819646835327,
-0.2971698045730591,
0.25222623348236084,
0.9070311784744263,
0.2636113166809082,
0.13785575330257416,
0.3242015540599823,
... |
svg/reference/attribute/transform/index.md | SVG - Attribute - transform - Examples - Apply a transform to a single SVG element:
In this example, we apply a `transform` to a single `g` element inside an SVG document:
Example:
html,
body,
svg {
height: 100%;
}
Example:
<svg
viewBox="-40 0 150 100"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http:/... | [
-0.9090731143951416,
-0.14762979745864868,
-0.47351422905921936,
0.07006964832544327,
0.12477023899555206,
-1.086880087852478,
1.8057379722595215,
0.7690775394439697,
-0.41651085019111633,
-0.46604230999946594,
0.11385740339756012,
0.2950316071510315,
-0.10207217931747437,
0.14271514117717... |
svg/reference/attribute/transform/index.md | SVG - Attribute - transform - Examples - Apply a transform to an entire SVG document:
In this example, we apply a `transform` to the `svg` root element, meaning that the transform is applied to the entire SVG document:
Example:
<svg
viewBox="-40 0 150 100"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http:/... | [
-0.6420133709907532,
-0.05718844011425972,
-0.6155543327331543,
0.41388094425201416,
-0.056225452572107315,
-1.458340048789978,
1.8934322595596313,
0.8755953907966614,
0.08517229557037354,
-0.5722014307975769,
0.019573133438825607,
0.5941565632820129,
-0.4138025641441345,
0.361062675714492... |
svg/reference/attribute/transform/index.md | SVG - Attribute - transform - Transform functions:
The following transform functions can be used by the `transform` attribute `<transform-list>`.
Warning: As per the spec, you should be able to also use CSS transform functions. However, the compatibility isn't guaranteed. | [
-0.9159387946128845,
0.13941210508346558,
-0.9153775572776794,
0.4160521328449249,
-0.5702522397041321,
-1.0306901931762695,
0.908780574798584,
1.0457905530929565,
-0.0628625676035881,
-0.21418121457099915,
0.027152515947818756,
-0.8250593543052673,
-0.23506410419940948,
0.1352606415748596... |
svg/reference/attribute/transform/index.md | SVG - Attribute - transform - Transform functions - Matrix:
The `matrix(<a> <b> <c> <d> <e> <f>)` transform function specifies a transformation in the form of a transformation matrix of six values. `matrix(a,b,c,d,e,f)` is equivalent to applying the transformation matrix:
Which maps coordinates from a previous coordi... | [
0.38698142766952515,
-0.5219438672065735,
-1.6137328147888184,
-0.3396214246749878,
0.18719467520713806,
-0.7539915442466736,
0.768435001373291,
1.3790544271469116,
0.5222942233085632,
-0.5629675984382629,
-0.6349921822547913,
-0.43104350566864014,
0.30306318402290344,
0.2043936550617218,
... |
svg/reference/attribute/transform/index.md | SVG - Attribute - transform - Transform functions - Matrix - Example:
Example:
html,
body,
svg {
height: 100%;
}
Example:
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
<rect x="10" y="10" width="30" height="20" fill="green" />
<!--
In the following example we are applying the matrix:
[a ... | [
-0.7955493330955505,
-0.09116334468126297,
-0.5019288063049316,
0.15906350314617157,
0.43390583992004395,
-0.945841908454895,
0.5866156220436096,
1.2225990295410156,
-0.43468889594078064,
-0.03794101998209953,
-0.349551796913147,
0.8437798619270325,
0.5215514898300171,
-0.27975597977638245... |
svg/reference/attribute/transform/index.md | SVG - Attribute - transform - Transform functions - Translate:
The `translate(<x> [<y>])` transform function moves the object by `x` and `y`. If `y` is not provided, it is assumed to be `0`.
In other words:
Example:
xNew = xOld + <x>
yNew = yOld + <y> | [
-1.108727216720581,
-0.3504905104637146,
-0.8601232767105103,
0.9712529182434082,
0.27112844586372375,
-0.27688783407211304,
-0.05537031963467598,
1.4973688125610352,
0.46758097410202026,
-0.5333127379417419,
-0.19620411098003387,
-0.40304914116859436,
-0.14119376242160797,
0.4181009829044... |
svg/reference/attribute/transform/index.md | SVG - Attribute - transform - Transform functions - Translate - Example:
Example:
html,
body,
svg {
height: 100%;
}
Example:
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<!-- No translation -->
<rect x="5" y="5" width="40" height="40" fill="green" />
<!-- Horizontal translation -->
<rec... | [
-1.1253827810287476,
-0.4152674376964569,
-0.29376906156539917,
0.02889268845319748,
-0.07197871804237366,
-0.5076953172683716,
1.1558666229248047,
1.0798075199127197,
-0.05971237272024155,
-0.415299654006958,
-0.09255506098270416,
0.3978058993816376,
0.005538467317819595,
0.68566691875457... |
svg/reference/attribute/transform/index.md | SVG - Attribute - transform - Transform functions - Scale:
The `scale(<x> [<y>])` transform function specifies a scale operation by `x` and `y`. If `y` is not provided, it is assumed to be equal to `x`. | [
-1.0366657972335815,
0.00969252735376358,
-1.6664958000183105,
-0.01591423712670803,
0.40968263149261475,
0.5251749157905579,
0.7813621759414673,
1.8058205842971802,
0.8192195892333984,
-0.02932330220937729,
0.2252349853515625,
-0.03419182449579239,
0.7624183893203735,
0.6310474276542664,
... |
svg/reference/attribute/transform/index.md | SVG - Attribute - transform - Transform functions - Scale - Example:
Example:
html,
body,
svg {
height: 100%;
}
Example:
<svg viewBox="-50 -50 100 100" xmlns="http://www.w3.org/2000/svg">
<!-- uniform scale -->
<circle cx="0" cy="0" r="10" fill="red" transform="scale(4)" />
<!-- vertical scale -->
<circl... | [
-1.6225851774215698,
0.11638374626636505,
-0.9368299245834351,
-0.31278103590011597,
0.017716288566589355,
-0.59414142370224,
1.5219810009002686,
1.0034477710723877,
0.01675853133201599,
-0.2411276400089264,
0.4022759795188904,
0.4378589391708374,
-0.08705586940050125,
0.2888132631778717,
... |
svg/reference/attribute/transform/index.md | SVG - Attribute - transform - Transform functions - Rotate:
The `rotate(<a> [<x> <y>])` transform function specifies a rotation by `a` degrees about a given point. If optional parameters `x` and `y` are not supplied, the rotation is about the origin of the current user coordinate system. If optional parameters `x` and... | [
-1.1081888675689697,
-0.19581231474876404,
-1.650084376335144,
-0.09717585146427155,
-0.21702425181865692,
-0.5139931440353394,
0.803440511226654,
0.9754469394683838,
1.0574259757995605,
-0.48423075675964355,
-0.18050174415111542,
-0.026226289570331573,
0.7619739174842834,
0.38753706216812... |
svg/reference/attribute/transform/index.md | SVG - Attribute - transform - Transform functions - Rotate - Example:
Example:
html,
body,
svg {
height: 100%;
}
Example:
<svg viewBox="-12 -2 34 14" xmlns="http://www.w3.org/2000/svg">
<rect x="0" y="0" width="10" height="10" />
<!-- rotation is done around the point 0,0 -->
<rect x="0" y="0" width="10" h... | [
-1.380019187927246,
-0.30004289746284485,
-0.7550550699234009,
0.06083700805902481,
-0.26901572942733765,
0.10894764959812164,
1.595577359199524,
0.9797241687774658,
-0.24163414537906647,
-0.42661646008491516,
-0.107122503221035,
0.3142366409301758,
-0.06464358419179916,
0.3854849338531494... |
svg/reference/attribute/transform/index.md | SVG - Attribute - transform - Transform functions - SkewX:
The `skewX(<a>)` transform function specifies a skew transformation along the x axis by `a` degrees. | [
-0.6930288076400757,
0.07363607734441757,
-1.5721383094787598,
-0.547267735004425,
-0.6692557334899902,
-0.1729331612586975,
0.7437155246734619,
0.9877448081970215,
0.4658316373825073,
-0.010084843263030052,
0.07166580110788345,
-0.21324864029884338,
0.6474626064300537,
0.0297391340136528,... |
svg/reference/attribute/transform/index.md | SVG - Attribute - transform - Transform functions - SkewX - Example:
Example:
html,
body,
svg {
height: 100%;
}
Example:
<svg viewBox="-5 -5 10 10" xmlns="http://www.w3.org/2000/svg">
<rect x="-3" y="-3" width="6" height="6" />
<rect x="-3" y="-3" width="6" height="6" fill="red" transform="skewX(30)" />
</sv... | [
-1.2508938312530518,
0.1470319628715515,
-0.5848926305770874,
-0.2967466413974762,
-0.47028225660324097,
-0.6289799809455872,
1.786318063735962,
0.8850789070129395,
-0.33278021216392517,
-0.4552713930606842,
0.09168113023042679,
0.5623724460601807,
-0.18618033826351166,
0.09788975119590759... |
svg/reference/attribute/transform/index.md | SVG - Attribute - transform - Transform functions - SkewY:
The `skewY(<a>)` transform function specifies a skew transformation along the y axis by `a` degrees. | [
-0.9997913241386414,
0.1365121752023697,
-1.0464342832565308,
-0.4253059923648834,
-0.05131872370839119,
-0.2694087326526642,
0.04206781089305878,
0.9931334257125854,
0.575977087020874,
0.43765464425086975,
-0.035825032740831375,
0.17971473932266235,
0.6570759415626526,
0.3143148422241211,... |
svg/reference/attribute/transform/index.md | SVG - Attribute - transform - Transform functions - SkewY - Example:
Example:
html,
body,
svg {
height: 100%;
}
Example:
<svg viewBox="-5 -5 10 10" xmlns="http://www.w3.org/2000/svg">
<rect x="-3" y="-3" width="6" height="6" />
<rect x="-3" y="-3" width="6" height="6" fill="red" transform="skewY(30)" />
</sv... | [
-1.2743703126907349,
0.11589013040065765,
-0.2784669101238251,
-0.19024883210659027,
-0.09704656898975372,
-0.5621870756149292,
1.4853472709655762,
0.7583860754966736,
-0.31476956605911255,
-0.2607269287109375,
0.1053752601146698,
0.5999927520751953,
-0.17687737941741943,
0.151082709431648... |
svg/reference/attribute/side/index.md | SVG - Attribute - side:
The `side` attribute determines the side of a path the text is placed on (relative to the path direction).
You can use this attribute with the following SVG elements:
- `textPath` | [
-1.5941145420074463,
-0.26355263590812683,
-0.35339802503585815,
0.895530104637146,
-0.14237773418426514,
-0.9412708282470703,
0.996888279914856,
1.7953729629516602,
0.7316782474517822,
0.21529923379421234,
-0.2442551553249359,
-0.41716253757476807,
-0.1776859164237976,
0.13989120721817017... |
svg/reference/attribute/side/index.md | SVG - Attribute - side - Example - Basic usage:
The following example draws two circular text paths, displaying text on the left-hand side and the right-hand side, respectively. | [
-1.290198802947998,
-0.1953744739294052,
-0.22061485052108765,
0.8796879053115845,
-0.4998675286769867,
-0.036559097468853,
0.9343489408493042,
1.2168444395065308,
-0.03656328096985817,
0.274646520614624,
-0.18111641705036163,
-0.30369776487350464,
0.2551836669445038,
-0.38371625542640686,... |
svg/reference/attribute/side/index.md | SVG - Attribute - side - Example - Basic usage - HTML:
Example:
html,
body,
svg {
height: 100%;
}
text {
font:
25px "Helvetica",
"Arial",
sans-serif;
}
Example:
<svg viewBox="0 0 420 200" xmlns="http://www.w3.org/2000/svg">
<text>
<textPath href="#circle1" side="left">Text on left of path</te... | [
-1.7903317213058472,
0.317903995513916,
0.10445569455623627,
0.1616216003894806,
0.2900886833667755,
-0.953391969203949,
1.4411863088607788,
1.0997586250305176,
0.20690828561782837,
-0.628690242767334,
-0.13163486123085022,
0.19291821122169495,
-0.0947776511311531,
-0.39283010363578796,
... |
svg/reference/attribute/side/index.md | SVG - Attribute - side - Usage notes:
- `left`: This value places the text on the left side of the path (relative to the path direction).
- `right`: This value places the text on the right side of the path (relative to the path direction). This effectively reverses the path direction. | [
-1.3470125198364258,
-0.5678362846374512,
-0.34813711047172546,
0.8287790417671204,
-0.4433020055294037,
-1.249342918395996,
1.2111103534698486,
1.6896185874938965,
1.4839121103286743,
0.2755748927593231,
-0.45248961448669434,
-0.2940586507320404,
0.5760564804077148,
-0.2844727635383606,
... |
svg/reference/element/a/index.md | SVG - Element - a:
The `<a>` SVG element creates a hyperlink to other web pages, files, locations in the same page, email addresses, or any other URL. It is very similar to HTML's `a` element.
SVG's `<a>` element is a container, which means you can create a link around text (like in HTML) but also around any shape. | [
-1.1983180046081543,
-0.32935965061187744,
-0.5866655111312866,
-0.3121030330657959,
0.05268998444080353,
-0.8890376687049866,
0.9904930591583252,
1.355336308479309,
0.1769157350063324,
-0.6209943294525146,
0.3367721438407898,
0.8574836254119873,
-0.11728136986494064,
-0.09218816459178925,... |
svg/reference/element/a/index.md | SVG - Element - a - Attributes:
- `download`: Instructs browsers to download a `URL` instead of navigating to it, so the user will be prompted to save it as a local file. Value type: string>; Default value: none; Animatable: no
- `href`: The `URL` or URL fragment the hyperlink points to. Value type: URL>; Default valu... | [
0.7221137285232544,
-0.3201139569282532,
-0.14065125584602356,
0.06240657716989517,
0.5194277167320251,
-0.5336175560951233,
1.671700119972229,
0.6103555560112,
-0.9841617941856384,
-0.20884254574775696,
-0.13900220394134521,
0.33378714323043823,
-0.012873262166976929,
-0.09507277607917786... |
svg/reference/element/a/index.md | SVG - Element - a - DOM Interface:
This element implements the `SVGAElement` interface. | [
0.353915274143219,
-0.32478150725364685,
-0.2913302779197693,
-1.0277256965637207,
-0.8882296681404114,
-0.8692101240158081,
1.6025246381759644,
1.491300106048584,
0.48332005739212036,
-0.29416623711586,
0.5756056308746338,
0.04141927510499954,
0.7874897122383118,
-0.3680025041103363,
-0... |
svg/reference/element/a/index.md | SVG - Element - a - Example:
Example:
@namespace svg url("http://www.w3.org/2000/svg");
html,
body,
svg {
height: 100%;
}
Example:
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<!-- A link around a shape -->
<a href="/docs/Web/SVG/Reference/Element/circle">
<circle cx="50" cy="40" r="35" ... | [
-0.5371519923210144,
-0.02172314003109932,
-0.1825016736984253,
-1.0290000438690186,
0.16687098145484924,
-1.0345557928085327,
-0.28103598952293396,
1.259097695350647,
-0.9163712859153748,
0.10944993048906326,
0.12949663400650024,
0.9062409400939941,
0.33976173400878906,
-0.283766984939575... |
svg/reference/element/g/index.md | SVG - Element - g:
The `<g>` SVG element is a container used to group other SVG elements.
Transformations applied to the `<g>` element are performed on its child elements, and most of its presentation attributes are inherited by its children. It can also group multiple elements to be referenced later with the `use` e... | [
-0.6250125169754028,
-0.25620147585868835,
-0.8601755499839783,
0.2903584837913513,
-0.040434643626213074,
-1.6365315914154053,
1.1400046348571777,
1.5261240005493164,
-0.08034604787826538,
0.15565325319766998,
0.15339893102645874,
0.5548721551895142,
-0.6535825133323669,
0.622587561607360... |
svg/reference/element/g/index.md | SVG - Element - g - Attributes:
This element only includes global attributes.
Most of the presentation attributes applied to the element are inherited by its children. However, geometry properties are only valid as presentation attributes on their designated elements — they have no effect on a `<g>` element and are n... | [
-0.8632924556732178,
0.8508955836296082,
0.3221491873264313,
-0.015989433974027634,
-0.21790389716625214,
-1.160836935043335,
-0.03227173164486885,
1.3532133102416992,
0.15408019721508026,
-0.11853030323982239,
-0.07214295864105225,
0.40753304958343506,
0.5693405270576477,
0.26512926816940... |
svg/reference/element/g/index.md | SVG - Element - g - DOM Interface:
This element implements the `SVGGElement` interface. | [
0.10253220796585083,
-0.4422155022621155,
-0.08154745399951935,
-0.5909408330917358,
-0.35703909397125244,
-1.1400076150894165,
1.6961675882339478,
1.2265615463256836,
0.016961097717285156,
-0.21579085290431976,
0.48924386501312256,
-0.036987096071243286,
0.618218183517456,
-0.251932978630... |
svg/reference/element/g/index.md | SVG - Element - g - Example:
Example:
html,
body,
svg {
height: 100%;
}
Example:
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<!-- Using g to inherit presentation attributes -->
<g fill="white" stroke="green" stroke-width="5">
<circle cx="40" cy="40" r="25" />
<circle cx="60" cy="60"... | [
-1.324033260345459,
-0.17972715198993683,
-0.1978926658630371,
-0.054684966802597046,
0.0480094850063324,
-1.7458348274230957,
1.2762277126312256,
0.8586608171463013,
-0.40297889709472656,
-0.6759162545204163,
0.5457979440689087,
0.609082043170929,
-0.05812457203865051,
0.2557470500469208,... |
css/reference/at-rules/@container/index.md | CSS - At-rules - @container:
The `@container` CSS at-rule is a conditional group rule that applies styles to a containment context. Style declarations are filtered by a condition and applied to the elements within the container if the condition is true. The condition is evaluated when the queried container size, `<sty... | [
-0.29324424266815186,
0.058946289122104645,
-1.4309206008911133,
-0.02654104121029377,
0.48255085945129395,
-2.4796953201293945,
-1.108447551727295,
1.7334855794906616,
-0.9303684234619141,
0.6496634483337402,
0.8370983004570007,
-0.6128117442131042,
-0.6544281244277954,
0.2348254024982452... |
css/reference/at-rules/@container/index.md | CSS - At-rules - @container - Syntax:
Example:
/* With a <size-query> */
@container (width > 400px) {
h2 {
font-size: 1.5em;
}
}
/* With an optional <container-name> */
@container tall (height > 30rem) {
p {
line-height: 1.6;
}
}
/* With a <container-name> only (query is optional) */
@container side... | [
-0.991126298904419,
0.22290433943271637,
-0.2853020429611206,
0.18695276975631714,
0.27856823801994324,
-1.2155596017837524,
-1.1948528289794922,
1.5436112880706787,
-0.05087966471910477,
0.3999616503715515,
0.11998799443244934,
0.4001501500606537,
0.3559175729751587,
0.3283509910106659,
... |
css/reference/at-rules/@container/index.md | CSS - At-rules - @container - Syntax - Parameters:
- `<container-condition>`: One or both of `<container-name>` and `<container-query>`. Styles defined in the `<stylesheet>` are applied if the condition is `true`.
- `<container-name>` (optional): The name of the container to query; it is specified as an `ident`. If ... | [
-0.3506633937358856,
-0.3016408383846283,
-1.0408345460891724,
0.08286838233470917,
-0.7218856811523438,
-1.3698161840438843,
-0.06841567158699036,
1.6081405878067017,
-0.272028386592865,
0.2200721949338913,
-0.3803527057170868,
0.014455929398536682,
-0.6959356069564819,
1.012655258178711,... |
css/reference/at-rules/@container/index.md | CSS - At-rules - @container - Syntax - Logical keywords in container queries:
Logical keywords can be used to define the container condition:
- `and` combines two or more conditions.
- `or` combines two or more conditions.
- `not` negates the condition. Only one `not` condition is allowed per container query and it c... | [
-0.7390190362930298,
0.19385100901126862,
-0.34595611691474915,
-0.15115618705749512,
0.4396589994430542,
-1.1650245189666748,
-0.7581047415733337,
0.9830490350723267,
-0.11892388761043549,
-0.16831651329994202,
-0.13484753668308258,
-0.3580798804759979,
-0.47081324458122253,
0.27968502044... |
css/reference/at-rules/@container/index.md | CSS - At-rules - @container - Syntax - Named containment contexts:
A containment context can be named using the `container-name` property.
Example:
.post {
container-name: sidebar;
container-type: inline-size;
}
The shorthand syntax for this is to use `container` in the form `container: <name> / <type>`, for ex... | [
-0.43628448247909546,
-0.20278100669384003,
-0.42564907670021057,
0.4669399857521057,
0.14124861359596252,
-1.4734069108963013,
-0.4471500515937805,
1.2930492162704468,
0.02956266701221466,
0.1465808004140854,
-0.7344492673873901,
0.2920120358467102,
-0.09998457878828049,
0.130112543702125... |
css/reference/at-rules/@container/index.md | CSS - At-rules - @container - Syntax - Descriptors:
The `<container-condition>` queries include size, scroll-state, and anchored container descriptors. | [
-0.8242042064666748,
-0.2873239815235138,
-0.8900436758995056,
-0.37770283222198486,
-1.245672583580017,
0.6410955786705017,
-0.9771115183830261,
1.3499507904052734,
-0.3333585560321808,
0.24106687307357788,
0.06944908946752548,
-0.30332785844802856,
-0.474312961101532,
0.3744077682495117,... |
css/reference/at-rules/@container/index.md | CSS - At-rules - @container - Syntax - Descriptors - Size container descriptors:
The `<container-condition>` can include one or more boolean size queries, each within a set of parentheses. A size query includes a size descriptor, a value, and — depending on the descriptor — a comparison operator. The queries always me... | [
-0.6048060655593872,
0.33719947934150696,
-0.5612710118293762,
-0.2886623740196228,
0.501275897026062,
-0.5678699612617493,
-0.32224828004837036,
1.4303938150405884,
0.17192557454109192,
-0.0779571533203125,
-0.15099719166755676,
0.2459723949432373,
-0.21704822778701782,
-0.064688019454479... |
css/reference/at-rules/@container/index.md | CSS - At-rules - @container - Syntax - Descriptors - Scroll-state container descriptors:
Scroll-state container descriptors are specified inside the `<container-condition>` as an argument for the `scroll-state()` function, for example:
Example:
@container scroll-state(scrollable: top) {
/* … */
}
@container scroll... | [
0.15572147071361542,
0.18764761090278625,
-0.4190281927585602,
0.15264184772968292,
0.7346739172935486,
-0.5626680254936218,
0.5688828229904175,
1.2329230308532715,
-0.7022449970245361,
-0.12439946830272675,
-0.20620684325695038,
0.6043996810913086,
-0.4312223494052887,
0.5962184071540833,... |
css/reference/at-rules/@container/index.md | CSS - At-rules - @container - Syntax - Descriptors - Anchored container descriptors:
Anchored container descriptors are specified inside the `<container-condition>` as an argument for the `anchored()` function, for example:
Example:
@container anchored(fallback: top) {
/* … */
}
@container anchored(fallback: flip-... | [
-0.6313171982765198,
-0.7773874998092651,
-0.9588689208030701,
-0.03436572477221489,
-0.20336133241653442,
-1.3004916906356812,
0.5361761450767517,
1.5725820064544678,
-0.43536511063575745,
1.1209465265274048,
-0.2383788824081421,
-0.2260371297597885,
-0.14027589559555054,
1.49489140510559... |
css/reference/at-rules/@container/index.md | CSS - At-rules - @container - Examples - Setting styles based on a container's size:
Consider the following example of a card component with a title and some text:
Example:
<div class="post">
<div class="card">
<h2>Card title</h2>
<p>Card content</p>
</div>
</div>
A container context can be created usin... | [
-0.8197890520095825,
-0.01800074428319931,
-0.9536316990852356,
0.3076833486557007,
0.4308640956878662,
-1.290828824043274,
-1.0147242546081543,
1.8109098672866821,
-0.4388560652732849,
0.060726098716259,
0.4165913462638855,
0.45596808195114136,
-0.38464289903640747,
0.46995723247528076,
... |
css/reference/at-rules/@container/index.md | CSS - At-rules - @container - Examples - Creating named container contexts:
Given the following HTML example which is a card component with a title and some text:
Example:
<div class="post">
<div class="card">
<h2>Card title</h2>
<p>Card content</p>
</div>
</div>
First, create a container context using ... | [
-1.331131100654602,
-0.19405856728553772,
0.19314897060394287,
0.22752848267555237,
0.8593520522117615,
-1.2253987789154053,
0.22191444039344788,
0.8223584294319153,
-0.4033048748970032,
0.3858577311038971,
-0.1494244635105133,
0.2573111057281494,
0.0680999606847763,
0.3431617319583893,
... |
css/reference/at-rules/@container/index.md | CSS - At-rules - @container - Examples - Nested container queries:
It's not possible to target multiple containers in a single container query. It is possible to nest container queries which has the same effect.
The following query evaluates to true and applies the declared style if the container named `summary` is w... | [
-1.6309692859649658,
0.2591281533241272,
-0.5972405672073364,
0.045711398124694824,
0.4499218463897705,
-1.2031246423721313,
-0.4200719892978668,
1.390567660331726,
-0.17949482798576355,
-0.0862160176038742,
0.14500553905963898,
0.4808785319328308,
-0.2538180947303772,
0.09106823801994324,... |
css/reference/at-rules/@container/index.md | CSS - At-rules - @container - Examples - Container style queries:
Container queries can also evaluate the computed style of the container element. A container style query is a `@container` query that uses one or more `style()` functional notations. The boolean syntax and logic combining style features into a style que... | [
-0.3021394610404968,
-0.17741429805755615,
-1.410133719444275,
-0.10740891844034195,
0.6390650868415833,
-1.3253114223480225,
-0.6049449443817139,
2.29697322845459,
-0.13346096873283386,
-0.19397659599781036,
0.5549191236495972,
0.35645827651023865,
0.5090137124061584,
0.09766434133052826,... |
css/reference/at-rules/@container/index.md | CSS - At-rules - @container - Examples - Container style queries - Range syntax:
In addition to the plain `<style-feature-name>: <value>` form described above, a `<style-feature>` can be written as a range comparison using `=`, `<`, `<=`, `>`, or `>=`. Range syntax enables numeric comparisons that the plain form can't... | [
-0.47760435938835144,
-0.09171737730503082,
-0.5325515270233154,
-0.13638140261173248,
0.9699198007583618,
-0.6139043569564819,
-0.17409349977970123,
1.9538770914077759,
0.30156829953193665,
-0.4490622580051422,
-0.10618379712104797,
1.109381079673767,
-0.5008604526519775,
0.10755278170108... |
css/reference/at-rules/@container/index.md | CSS - At-rules - @container - Examples - Scroll-state queries:
See Using container scroll-state queries for scroll-state query examples. | [
-1.2582392692565918,
0.26902884244918823,
-0.74691241979599,
0.34648558497428894,
-0.9113090634346008,
0.9530082941055298,
-0.18063102662563324,
1.7540096044540405,
-0.8588950634002686,
0.3083922266960144,
-0.0057957470417022705,
0.11840875446796417,
-0.5554923415184021,
0.2329893112182617... |
css/reference/at-rules/@container/index.md | CSS - At-rules - @container - Examples - Anchored queries:
See Using anchored container queries for anchored query examples. | [
-0.08930926024913788,
0.4352717697620392,
-0.10897737741470337,
0.012235064059495926,
-1.5141068696975708,
0.11894528567790985,
-0.09656111896038055,
1.4310277700424194,
-0.9030115604400635,
0.5516955256462097,
0.022779464721679688,
-0.17941002547740936,
-0.7209469676017761,
0.036977544426... |
css/reference/at-rules/@media/prefers-reduced-data/index.md | CSS - At-rules - @media - prefers-reduced-data:
Warning: This feature is not supported by any user agent and its specifics are subject to change.
The `prefers-reduced-data` CSS media feature is used to detect if the user has requested web content that consumes less internet traffic.
The browser typically achieves th... | [
-1.7387001514434814,
-0.27836307883262634,
-1.354781150817871,
1.1813547611236572,
-0.4140056371688843,
-1.1346570253372192,
0.3379661440849304,
0.8977647423744202,
0.22017529606819153,
1.0723859071731567,
-0.8098657131195068,
-0.7175090312957764,
-0.6857939958572388,
-0.004940900951623917... |
css/reference/at-rules/@media/prefers-reduced-data/index.md | CSS - At-rules - @media - prefers-reduced-data - Syntax:
- `no-preference`: Indicates that the user has made no preference known to the system. This keyword evaluates to false in the Boolean context.
- `reduce`: Indicates that the user has expressed a preference for lightweight alternate content. | [
-0.8795042037963867,
-0.023335369303822517,
-0.8176704049110413,
0.9244258403778076,
-0.8005319237709045,
-1.6007142066955566,
1.0733468532562256,
1.630487322807312,
0.446006715297699,
0.48466119170188904,
-0.9199837446212769,
-0.610630989074707,
-0.8505048155784607,
-0.08374150842428207,
... |
css/reference/at-rules/@media/prefers-reduced-data/index.md | CSS - At-rules - @media - prefers-reduced-data - Examples - Basic usage:
In this example, the `montserrat-regular.woff2` font file will neither be preloaded nor downloaded if the user prefers reduced data; in this case, the "system font stack" will serve as the fallback font: | [
-1.665201187133789,
0.18295420706272125,
-1.5149199962615967,
0.15092571079730988,
-0.4260803163051605,
-1.5497909784317017,
0.6172860860824585,
1.2143744230270386,
0.12802620232105255,
0.5848692059516907,
-1.047614574432373,
-0.3075626492500305,
-0.5098298788070679,
-0.339450865983963,
... |
css/reference/at-rules/@media/prefers-reduced-data/index.md | CSS - At-rules - @media - prefers-reduced-data - Examples - HTML:
Example:
<head>
<link
rel="preload"
href="fonts/montserrat-regular.woff2"
as="font"
media="(prefers-reduced-data: no-preference)"
crossorigin />
<link rel="stylesheet" href="style.css" />
</head> | [
-0.7819327116012573,
0.31877872347831726,
-0.8710068464279175,
0.23568791151046753,
0.1278696060180664,
-1.355269432067871,
-0.5602751970291138,
1.5848684310913086,
-0.5283855199813843,
-0.26535648107528687,
-0.3219129741191864,
-0.44606736302375793,
-0.7315921783447266,
-0.019260704517364... |
css/reference/at-rules/@media/prefers-reduced-data/index.md | CSS - At-rules - @media - prefers-reduced-data - Examples - CSS:
Example:
@media (prefers-reduced-data: no-preference) {
@font-face {
font-family: "Montserrat";
font-style: normal;
font-weight: normal;
font-display: swap;
/* latin */
src:
local("Montserrat Regular"),
local("Monts... | [
-1.6240143775939941,
0.23447318375110626,
-1.0383356809616089,
-0.11362981051206589,
0.5941108465194702,
-1.7703715562820435,
-0.537655770778656,
1.5181622505187988,
0.12445445358753204,
-0.20459464192390442,
0.07019368559122086,
-0.6422175765037537,
-0.41672685742378235,
0.080106630921363... |
css/reference/at-rules/@media/prefers-reduced-motion/index.md | CSS - At-rules - @media - prefers-reduced-motion:
Warning: An embedded example at the bottom of this page has a scaling movement that may be problematic for some readers. Readers with vestibular motion disorders may wish to enable the reduce motion feature on their device before viewing the animation.
The `prefers-re... | [
-0.7247021794319153,
-0.629366934299469,
-1.4236094951629639,
0.7422582507133484,
-0.547791600227356,
-0.33931753039360046,
0.6459465622901917,
0.54986971616745,
0.2819809913635254,
0.9799394011497498,
-0.4270903170108795,
-0.6565636992454529,
-0.28333139419555664,
-0.042002566158771515,
... |
css/reference/at-rules/@media/prefers-reduced-motion/index.md | CSS - At-rules - @media - prefers-reduced-motion - Syntax:
- `no-preference`: Indicates that a user has made no preference known on the device. This keyword value evaluates as false.
- `reduce`: Indicates that a user has enabled the setting on their device for reduced motion. The `reduce` keyword value evaluates as tr... | [
-0.7745546102523804,
-0.20332005620002747,
-0.7335408926010132,
0.5197203159332275,
-0.6715222001075745,
-0.8963961005210876,
0.7560808658599854,
1.2741323709487915,
0.42850178480148315,
0.645423173904419,
-0.788816511631012,
-0.9042035937309265,
-0.7745503187179565,
-0.23231390118598938,
... |
css/reference/at-rules/@media/prefers-reduced-motion/index.md | CSS - At-rules - @media - prefers-reduced-motion - User preferences:
Use the following settings to honor the `reduce` request:
- In GTK/GNOME: Settings > Accessibility > Seeing > turn on "Reduced animation".
- In older versions of GNOME, GNOME Tweaks > General tab (or Appearance, depending on version) > Animations ... | [
-0.17323116958141327,
-0.4908139109611511,
-1.0504138469696045,
-0.0931788831949234,
0.14222657680511475,
-1.6630231142044067,
0.16247765719890594,
1.1652171611785889,
0.31182125210762024,
0.3904400169849396,
-0.577133297920227,
-0.41294828057289124,
-0.15764954686164856,
0.099831685423851... |
css/reference/at-rules/@media/prefers-reduced-motion/index.md | CSS - At-rules - @media - prefers-reduced-motion - Examples:
This example uses a scaling animation to demonstrate `prefers-reduced-motion`. If you enable the setting for reducing motion in the accessibility preferences on your device, the `prefers-reduced-motion` media query will detect your preference and the CSS wit... | [
-1.130784273147583,
-0.3413081169128418,
-1.022166132926941,
0.6004077792167664,
-0.5765599012374878,
-0.8179203867912292,
0.23501574993133545,
1.0194538831710815,
0.17094027996063232,
1.329182505607605,
-0.5143331289291382,
-1.2570616006851196,
-0.29077744483947754,
0.12610438466072083,
... |
css/reference/at-rules/@media/prefers-reduced-motion/index.md | CSS - At-rules - @media - prefers-reduced-motion - Examples - Toning down the animation scaling - HTML:
Example:
<div class="animation">animated box</div> | [
-1.39767587184906,
0.04683327674865723,
-0.523817777633667,
0.1710798442363739,
-0.8307181596755981,
-0.7684082984924316,
0.14409013092517853,
1.2083797454833984,
-0.6041802763938904,
0.7891255617141724,
-0.473824143409729,
-0.7370503544807434,
-0.9679235219955444,
-0.19683381915092468,
... |
css/reference/at-rules/@media/prefers-reduced-motion/index.md | CSS - At-rules - @media - prefers-reduced-motion - Examples - Toning down the animation scaling - CSS:
Example:
.animation {
animation: pulse 1s linear infinite both;
background-color: purple;
}
/* Tone down the animation to avoid vestibular motion triggers. */
@media (prefers-reduced-motion: reduce) {
.animat... | [
-1.3099626302719116,
0.4128554165363312,
-0.8065466284751892,
0.1895630955696106,
-0.5254793167114258,
-1.3134421110153198,
0.34753236174583435,
1.025949239730835,
0.05291929841041565,
1.3835251331329346,
-0.4172731339931488,
-0.7230849266052246,
-0.04611773043870926,
-0.05443808436393738,... |
css/reference/values/timeline-range-name/index.md | CSS - Values - timeline-range-name:
The `<timeline-range-name>` `enumerated` data type is a CSS identifier representing one of the predefined named timeline ranges inside a view progress timeline.
The `<timeline-range-name>` keyword values are used in keyframe selectors and the following longhand and shorthand proper... | [
-1.1936208009719849,
-0.8139639496803284,
-1.8204832077026367,
0.5256478190422058,
-0.3847831189632416,
-1.3222887516021729,
0.18884937465190887,
2.052504301071167,
-0.8731815218925476,
0.35650262236595154,
0.24139046669006348,
-0.18429657816886902,
-0.31108829379081726,
0.2621648907661438... |
css/reference/values/timeline-range-name/index.md | CSS - Values - timeline-range-name - Syntax:
Valid `<timeline-range-name>` values:
- `cover`: Represents the full range of a view progress timeline, from the point where the subject element's start border edge first enters the scrollport's view progress visibility range (`0%` progress) to the point where the end bord... | [
-0.9652800559997559,
0.2517106235027313,
-0.7312172651290894,
0.1930978000164032,
0.38977015018463135,
-1.2091655731201172,
-0.7842219471931458,
1.5301122665405273,
-0.3003302216529846,
-0.033357299864292145,
0.4442063570022583,
0.2792545258998871,
-0.3060206472873688,
0.7220054864883423,
... |
css/reference/values/timeline-range-name/index.md | CSS - Values - timeline-range-name - Examples:
See the View timeline range visualizer. | [
-0.35240811109542847,
-0.08672408759593964,
-1.483317494392395,
0.06776304543018341,
-0.9870502948760986,
-0.40403392910957336,
0.3076830208301544,
2.1200904846191406,
-0.05369691550731659,
0.04125896841287613,
0.4513304829597473,
-0.21795587241649628,
0.19011636078357697,
-0.4043548405170... |
css/reference/values/color_value/color/index.md | CSS - Values - color value - color:
The `color()` functional notation allows a color to be specified in a particular, specified `color space` rather than the implicit sRGB color space that most of the other color functions operate in.
Support for a particular color space can be detected with the `color-gamut` CSS med... | [
-1.1777406930923462,
-0.4146852195262909,
-1.6120545864105225,
0.2713490128517151,
-0.006901703774929047,
-1.703532338142395,
0.012370452284812927,
0.7479625940322876,
0.07278198003768921,
-0.007369503378868103,
0.5049245357513428,
-0.28583213686943054,
-0.03223438560962677,
0.014294341206... |
css/reference/values/color_value/color/index.md | CSS - Values - color value - color - Syntax:
Example:
/* Absolute values */
color(display-p3 1 0.5 0);
color(display-p3 1 0.5 0 / .5);
/* Relative values */
color(from green srgb r g b / 0.5)
color(from #123456 xyz calc(x + 0.75) y calc(z - 0.35)) | [
-0.22471806406974792,
0.10133787244558334,
-1.0308301448822021,
-0.10936299711465836,
-0.7181594371795654,
-1.2667875289916992,
0.7697759866714478,
1.4043530225753784,
-0.06354519724845886,
-0.37000319361686707,
0.05570666491985321,
-0.08457468450069427,
-0.05576442927122116,
0.16145855188... |
css/reference/values/color_value/color/index.md | CSS - Values - color value - color - Syntax - Values:
Below are descriptions of the allowed values for both absolute and relative colors. | [
-0.2420821636915207,
-0.18016710877418518,
-0.7981427907943726,
-0.5302448272705078,
-0.7176550030708313,
-1.7547539472579956,
0.582186222076416,
1.7195531129837036,
0.23291712999343872,
-0.6506402492523193,
0.18945100903511047,
-0.26053375005722046,
0.34590116143226624,
0.3667773306369781... |
css/reference/values/color_value/color/index.md | CSS - Values - color value - color - Syntax - Values - Absolute value syntax:
Example:
color(colorspace c1 c2 c3[ / A])
The parameters are as follows:
- `colorspace`: An `<ident>` denoting one of the predefined color spaces: `srgb`, `srgb-linear`, `display-p3`, `display-p3-linear`, `a98-rgb`, `prophoto-rgb`, ... | [
-0.949968159198761,
0.03219475969672203,
-0.9297908544540405,
-0.16821958124637604,
0.6652527451515198,
-0.7877146005630493,
-0.05954993516206741,
1.3853768110275269,
-0.3773389756679535,
-0.2752920091152191,
0.31395888328552246,
-0.1951330006122589,
0.027778934687376022,
0.371277928352355... |
css/reference/values/color_value/color/index.md | CSS - Values - color value - color - Syntax - Values - Relative value syntax:
Example:
color(from <color> colorspace c1 c2 c3[ / A])
The parameters are as follows:
- `from <color>`: The keyword `from` is always included when defining a relative color, followed by a `<color>` value representing the origin colo... | [
-1.2697107791900635,
0.11971800029277802,
-0.7423258423805237,
-0.25025951862335205,
0.2988929748535156,
-0.7397027611732483,
-0.47558385133743286,
1.396803617477417,
-0.11759231984615326,
-0.1549830287694931,
-0.12390516698360443,
-0.1933988332748413,
-0.10738451033830643,
0.3306281864643... |
css/reference/values/color_value/color/index.md | CSS - Values - color value - color - Syntax - Values - Defining relative color output channel components:
When using relative color syntax inside a `color()` function, the browser converts the origin color into an equivalent color in the specified color space (if it is not already specified as such). The color is defi... | [
-0.8033820390701294,
0.25081539154052734,
-0.8441528081893921,
-0.04513181746006012,
0.23938366770744324,
-0.4011583924293518,
-0.2699304521083832,
1.464017629623413,
-0.5674515962600708,
0.061579979956150055,
-0.4438087046146393,
0.319551020860672,
-0.3902116119861603,
-0.1706787645816803... |
css/reference/values/color_value/color/index.md | CSS - Values - color value - color - Examples - Using predefined color spaces with color():
The following example shows the effect of varying the lightness, a-axis, and b-axis values of the `color()` function. | [
-0.49062591791152954,
0.0038527995347976685,
-1.6372156143188477,
-0.10385938733816147,
-0.7293589115142822,
-0.6974802017211914,
1.083449125289917,
1.51548171043396,
-0.6570093035697937,
-0.5224140286445618,
0.019587095826864243,
-0.027659807354211807,
-0.07291331887245178,
-0.61142659187... |
css/reference/values/color_value/color/index.md | CSS - Values - color value - color - Examples - Using predefined color spaces with color() - HTML:
Example:
<div data-color="red-a98-rgb"></div>
<div data-color="red-prophoto-rgb"></div>
<div data-color="green-srgb-linear"></div>
<div data-color="green-display-p3"></div>
<div data-color="green-display-p3-linear"></di... | [
-1.7780065536499023,
-0.3813480734825134,
-0.46140560507774353,
-0.5672457218170166,
-0.1879921853542328,
-0.7804050445556641,
-0.20671431720256805,
0.7511113882064819,
-0.4665195047855377,
-0.304672509431839,
-0.19860875606536865,
0.4908730387687683,
0.2989036738872528,
-0.018995780497789... |
css/reference/values/color_value/color/index.md | CSS - Values - color value - color - Examples - Using predefined color spaces with color() - CSS:
Example:
div {
width: 50px;
height: 50px;
padding: 5px;
margin: 5px;
display: inline-block;
border: 1px solid black;
}
Example:
[data-color="red-a98-rgb"] {
background-color: color(a98-rgb 1 0 0);
}
[data... | [
-0.9252040982246399,
-0.061989676207304,
-0.9187679886817932,
-0.6421329975128174,
0.3412686288356781,
-1.0408884286880493,
-0.5910699963569641,
1.211395263671875,
-0.19478440284729004,
0.10279953479766846,
-0.10899201780557632,
0.06317110359668732,
0.3083752393722534,
0.3438768982887268,
... |
css/reference/values/color_value/color/index.md | CSS - Values - color value - color - Examples - Using the xyz color space with color():
The following example shows how to use the `xyz` color space to specify a color. | [
-0.7189728617668152,
0.3656969368457794,
-1.1338984966278076,
0.20700737833976746,
-0.5995467901229858,
-0.49272292852401733,
0.9773486852645874,
0.47468259930610657,
0.049827054142951965,
-0.4178280532360077,
0.8394625186920166,
-0.24666664004325867,
0.20537100732326508,
-0.31860667467117... |
css/reference/values/color_value/color/index.md | CSS - Values - color value - color - Examples - Using the xyz color space with color() - HTML:
Example:
<div data-color="red"></div>
<div data-color="green"></div>
<div data-color="blue"></div> | [
-1.7500724792480469,
0.10254712402820587,
-0.6744886636734009,
-0.10776796191930771,
-0.7296304106712341,
-0.44849660992622375,
0.7750899791717529,
0.3033638000488281,
-0.1369018256664276,
-0.26926788687705994,
0.5862354040145874,
0.41977038979530334,
0.4169568121433258,
-0.322166681289672... |
css/reference/values/color_value/color/index.md | CSS - Values - color value - color - Examples - Using the xyz color space with color() - CSS:
Example:
div {
width: 50px;
height: 50px;
padding: 5px;
margin: 5px;
display: inline-block;
border: 1px solid black;
}
Example:
[data-color="red"] {
background-color: color(xyz 45 20 0);
}
[data-color="green... | [
-0.9678382277488708,
0.030989155173301697,
-1.0034412145614624,
-0.20668329298496246,
0.4511408805847168,
-0.8708009123802185,
-0.2213020920753479,
0.8606795072555542,
-0.3998301029205322,
0.05910275876522064,
0.4052483141422272,
-0.19538767635822296,
0.1270015835762024,
0.3370296955108642... |
css/reference/values/color_value/color/index.md | CSS - Values - color value - color - Examples - Using color-gamut media queries with color():
This example shows how to use the `color-gamut` media query to detect support for a particular color space and use that color space to specify a color. | [
-0.6600725650787354,
-0.12323790043592453,
-1.175562858581543,
-0.1105131134390831,
-1.0516753196716309,
-0.6156635284423828,
0.62143874168396,
0.8349303603172302,
-0.27308619022369385,
-0.5382511615753174,
0.26275399327278137,
-0.1550268530845642,
-0.18216364085674286,
-0.3334356248378753... |
css/reference/values/color_value/color/index.md | CSS - Values - color value - color - Examples - Using color-gamut media queries with color() - HTML:
Example:
<div></div>
<div></div>
<div></div> | [
-0.9668392539024353,
-0.3792664408683777,
-0.8276659846305847,
-0.13022877275943756,
-1.102205753326416,
-0.5025210380554199,
0.6764821410179138,
0.5696765184402466,
-0.9967808723449707,
-0.5461112856864929,
0.31044065952301025,
0.033900536596775055,
-0.3320675492286682,
-0.283663600683212... |
css/reference/values/color_value/color/index.md | CSS - Values - color value - color - Examples - Using color-gamut media queries with color() - CSS:
Example:
div {
width: 50px;
height: 50px;
padding: 5px;
margin: 5px;
display: inline-block;
border: 1px solid black;
}
Example:
@media (color-gamut: p3) {
div {
background-color: color(display-p3 1 ... | [
-1.0143029689788818,
-0.2580537796020508,
-0.5839236974716187,
-0.5371295213699341,
0.17070209980010986,
-0.6489480137825012,
-0.2314143031835556,
0.9111860394477844,
-0.4878261387348175,
-0.15854252874851227,
0.11424492299556732,
0.03795915096998215,
-0.11168668419122696,
0.50573927164077... |
css/reference/values/color_value/color/index.md | CSS - Values - color value - color - Examples - Using relative colors with color():
This example styles three `div` elements with different background colors. The middle one is given the unmodified `--base-color`, while the left and right ones are given lightened and darkened variants of that `--base-color`.
These va... | [
-0.32051074504852295,
-0.15259584784507751,
-1.1367965936660767,
0.004890602082014084,
-0.11914460361003876,
-0.840835452079773,
1.7774351835250854,
1.4573410749435425,
-0.9389821290969849,
0.03798706829547882,
-0.39239558577537537,
0.12746454775333405,
-0.8277583122253418,
-0.211494714021... |
css/reference/values/color_value/color/index.md | CSS - Values - color value - color - Examples - Using relative colors with color() - CSS:
Example:
#container {
display: flex;
width: 100vw;
height: 100vh;
box-sizing: border-box;
}
.item {
flex: 1;
margin: 20px;
}
Example:
:root {
--base-color: orange;
}
#one {
background-color: color(
from v... | [
-0.44055089354515076,
-0.007832450792193413,
-1.019686222076416,
-0.16764935851097107,
0.05469992756843567,
-1.1342079639434814,
-0.38522574305534363,
1.5695884227752686,
-0.46283280849456787,
0.08569592982530594,
0.5054622888565063,
-0.13061922788619995,
0.5602262616157532,
0.171568140387... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.