New pages: rule-* shorthand properties - #44895
Conversation
|
Preview URLs (3 pages)
Flaws (10) Found an unexpected or unresolvable flaw? Please report it here. URL:
URL:
URL:
(comment last updated: 2026-07-28 11:26:46) |
chrisdavidmills
left a comment
There was a problem hiding this comment.
Good work, @estelle. A bunch of grammar corrections and such, but nothing major.
|
|
||
| #### HTML | ||
|
|
||
| We create a list of 100 items. Most of the HTML is hidden for brevity. |
There was a problem hiding this comment.
What was your reasoning behind using this example, rather than the 75-item list used in the other two pages? It isn't a massive problem, but this one seems uglier and clumsier than the other one.
It is also taller than the 75-item example, meaning that the live examples all have scrollbars.
There was a problem hiding this comment.
i did this one first, then thought 75 was better. Will change this one.
Co-authored-by: Chris Mills <chrisdavidmills@gmail.com>
Updated examples and descriptions for clarity regarding the grid container dimensions and the use of the repeat() function in the rule-width property.
estelle
left a comment
There was a problem hiding this comment.
i think i got everything
|
|
||
| {{EmbedLiveSample("Basic", "", "600")}} | ||
|
|
||
| ### Multiple values |
There was a problem hiding this comment.
no. i happen to have excess values, but the point is to show more than one value.
|
|
||
| #### HTML | ||
|
|
||
| We create a list of 100 items. Most of the HTML is hidden for brevity. |
There was a problem hiding this comment.
i did this one first, then thought 75 was better. Will change this one.
|
|
||
| This example demonstrates using the `repeat()` function within the `rule-style` property value. We use the same HTML and CSS as in the previous examples. We include a `repeat()` function, setting the list of two `<line-style>` values to be repeated 3 times. | ||
|
|
||
| ```css live-sample___func live-sample___auto |
There was a problem hiding this comment.
good catch. originally there was more content, and i didn't remove the second example when i removed the features
chrisdavidmills
left a comment
There was a problem hiding this comment.
@estelle, a few more bits for you. I think you can get it merged after fixing these, so I'll approve. Great work!
|
|
||
| ## Examples | ||
|
|
||
| ### Basic example |
There was a problem hiding this comment.
FYI, I had a look in Fx, and this example isn't wired up to the non-support banner.
|
|
||
| #### Result | ||
|
|
||
| {{EmbedLiveSample("Multiple", "", "600")}} |
There was a problem hiding this comment.
This example DOES show the non-support banner in Firefox, but it isn't absolutely positioned, meaning that it sits at the top of the other content and causes a scrollbar. It would look tidier if it was abspos'ed, like it is on some of the banners we've been using in other places.
There was a problem hiding this comment.
Same comment for the other two examples below.
|
|
||
| #### Result | ||
|
|
||
| {{EmbedLiveSample("Basic", "", "600")}} |
There was a problem hiding this comment.
This example isn't wired up to the non-support banner either. Tested in Fx.
|
|
||
| #### Result | ||
|
|
||
| {{EmbedLiveSample("Multiple", "", "600")}} |
There was a problem hiding this comment.
Again, it would be good for the non-support banners to be abspos'ed.
|
|
||
| #### HTML | ||
|
|
||
| We create a list of 100 items. Most of the HTML is hidden for brevity. |
There was a problem hiding this comment.
| We create a list of 100 items. Most of the HTML is hidden for brevity. | |
| We create a list of 75 items. Most of the HTML is hidden for brevity. |
|
|
||
| #### Result | ||
|
|
||
| {{EmbedLiveSample("Basic", "", "600")}} |
There was a problem hiding this comment.
Same comment about abspos for the non-support banners.
|
|
||
| {{EmbedLiveSample("func", "", "600")}} | ||
|
|
||
| The `repeat()` function repeats two width values four times, creating a list of ten width values. As there are fewer column and row gutters than total widths, the last values in the list is discarded. |
There was a problem hiding this comment.
| The `repeat()` function repeats two width values four times, creating a list of ten width values. As there are fewer column and row gutters than total widths, the last values in the list is discarded. | |
| The `repeat()` function repeats two width values four times, creating a list of ten width values. As there are fewer column and row gutters than total widths, the last values in the list are discarded. |
This PR includes a the creation of three new reference pages:
rule-stylerule-colorrule-widthThe CSS gaps module page is already live.
Part of openwebdocs/project#238