summaryrefslogtreecommitdiff
path: root/Base/res/html
AgeCommit message (Collapse)Author
2021-09-19Base: Add page for testing styling on `display: inline` elementsSam Atkins
2021-09-19LibWeb: Implement basic support for MessageChannel and MessagePortAndreas Kling
This patch adds a basic initial implementation of these API's. Since LibWeb currently doesn't support workers, this implementation of messaging doesn't bother with serializing and deserializing messages.
2021-09-17LibWeb: Implement `currentcolor` special valueSam Atkins
The `currentcolor` identifier represents the current value of the `color` property. This is the default value for `border-color` and `text-decoration-color`, and is generally useful to have. :^)
2021-09-16Base: Add CSS styles to SVG test pageSam Atkins
SVG is styleable using CSS, so this adds an extra triangle to the page, which is styled with CSS instead of attributes.
2021-09-15Base: Add test page for testing weird flexbox combinationsSam Atkins
Specifically, this is to help fix a bug with `position: absolute` children of a flex-box still taking up space, when they should not.
2021-09-14Base: Add developer's tests to computed-style.htmlkleines Filmröllchen
2021-09-12Base: Add a very simple test page for getComputedStyle()Andreas Kling
2021-08-26Base: Add a Game of Life WebAssembly demoAli Mohammad Pur
2021-08-26Base: Refer to WebAssembly as 'Wasm' and not 'WASM'Ali Mohammad Pur
2021-08-25Base: Add cascade-keywords.html test page for CSS cascade keyword valuesSam Atkins
These are: - `initial` - `inherit` - `unset` Cascade4 and 5 also define `revert` and `revert-layer`, but let's not get ahead of ourselves. :^)
2021-08-18Base: Add more test cases to fonts.htmlSam Atkins
- More combinations of values - Testing a font (Liberation Serif) which has multiple faces - Add calc() tests for font-size and weight - Check fallback when a font isn't available While I was at it, reorganized the file so the CSS is inline - this keeps it close to the relevant test case.
2021-08-14LibWeb: Implement and use OverflowStyleValueSam Atkins
Also added a test page for the `overflow` properties. They apparently don't work, but at least they do parse.
2021-08-14Base: Correct flipped values in border-radius.htmlSam Atkins
Box 9 and Box 10 were in the wrong order somehow, so now they are not. :^)
2021-08-14LibWeb: Implement and use FlexStyleValueSam Atkins
This is not just moving the code from StyleResolver to Parser. The logic has changed to allow for the `flex-basis` to come before or after the `flex-grow/shrink` values, as well as handle the special one-value cases. Also added test cases to flex.html to check the parsing. It does parse correctly, but elements with `flex-basis: auto` do not calculate their width correctly.
2021-08-14LibWeb: Implement and use TextDecorationStyleValueSam Atkins
Modified text-decoration.html to better test that the values can be in any order, and that it adopts the color from the `color` property if no decoration color is specified. Right now, it always does because we do not support a different decoration color. Later, we need to support the `currentcolor` special CSS value for this purpose.
2021-08-14LibWeb: Implement and use ListStyleStyleValueSam Atkins
Yes, the name is silly, but it's a StyleValue for list-style, so... yeah. :^) Since `list-style-type` and `list-style-image` can both have `none` as a value, and can appear in any order, we have to handle it separately, and then assign either or both of those to `none` depending on how many `none`s there are, and whether those sub-properties already have values. Added some extra test cases to lists.html to cover list-style-image and list-style-position parts of the list-style shorthand, and the `none` values.
2021-08-14LibWeb: Implement and use BackgroundStyleValueSam Atkins
This one represents one secton of a `background` property, since it can have multiple background values separated by commas. Eventually, we will represent that as a List of BackgroundStyleValues. Also modified some background-foo properties in StyleResolver so that the is_background_x() functions could be removed. I realized that our handling of var() in shorthand properties is wrong, so have been removing the is_builtin_or_dynamic() calls from the parsing code for shorthands. This broke our var() test page, so I have replaced the use of 'background' with 'background-color' there.
2021-08-14LibWeb: Implement and use FontStyleValueSam Atkins
After working with the code for a while, it makes more sense to put all the parsing in Parser, instead of some of it living in StyleResolver. That means our current ValueListStyleValue needs to be replaced with specific StyleValue types for the properties that are shorthands or otherwise combine several values together. Here we implement FontStyleProperty, which represents a `font` CSS property. Also adjusted the fonts.html test page so that font-weights are featured in test cases without things we do not yet support.
2021-08-03Base: Organize welcome.htmlSam Atkins
Previously, it was a big list of test pages in no particular order, and it was hard to find anything. This commit breaks it up into sections, and renames some of the links to be more consistent. The categories are slightly arbitrary, and I'm sure everyone will have a different opinion on what they should be, and which links should go where. But hopefully we can all agree that this is an improvement! This also wraps the list into multiple columns on browsers that support it, which unfortunately does NOT include Browser. :^( But hey, once we do it'll be good!
2021-07-31LibWeb: Fix regression of "contenteditable" attributeTheFightingCatfish
2021-07-31Base: Add CSS url(data:...) cases to test pageSam Atkins
Also, it wasn't linked to from welcome.html, so now it is.
2021-07-31Base: Expand test page for CSS attribute selectorsSam Atkins
Now that we support more types of attribute selectors in the parser, we need a way to test them. :^)
2021-07-31LibWeb: Get CSS @import rules working in new parserSam Atkins
Also added css-import.html, which tests the 3 syntax variations on `@import` statements. Note that the optional media-query parameter to `@import` is not handled yet.
2021-07-24Base: Add test page for box-shadowTobias Christiansen
2021-07-24Base: Add a test page for CSS opacity propertyEgor Ananyin
2021-07-24Base: Add a test page for CSS 'calc()' valuesTobias Christiansen
2021-07-22LibWeb: Resolve CSS text-decoration from value listSam Atkins
This detects and resolves these in the text-decoration property, in any order: - text-decoration-color - text-decoration-line - text-decoration-style Only the solid underline renders, but all three sub-properties are assigned correctly.
2021-07-22LibWeb: Resolve CSS font property from value listSam Atkins
The font property now resolves into its various parts: - font-family - font-weight - font-size - font-style - line-height The font-variant and font-stretch parts are left unparsed since LibWeb doesn't know how to render those. Added `fonts.html` as a test for various forms of `font` declarations, based on the examples in the spec.
2021-07-22LibWeb: Implement CSS color parsing from TokensSam Atkins
This was broken when we switched away from using StringStyleValues. While I was at it, I have implemented hsl/a() and the percentage syntax for rgb/a(). As a bonus, added `colors.html` as a test page for the various CSS color syntaxes, since nothing was testing rgb() or rgba() before. Much of the parsing code in LibGFX/Color.h seems to be centered around CSS color values, but this is not used by the new Parser. (And can't be used, because it requires a String value and we have a list of Tokens of some kind instead.) Maybe that should be removed from there when the new CSS parser is operational.
2021-07-19Base: Add a test page for the 'justify-content' CSS propertyTobias Christiansen
This adds a simple page to showcase the justify-content CSS-property.
2021-07-14LibWeb: Use Selectors instead of a String for :not() selectorsSam Atkins
Rather than parsing the selector every time we want to check it, we now parse it once at the beginning. A bonus effect of this is that we now support a selector list in :not(), instead of just a single selector, though only when using the new parser.
2021-07-08Base: Remove www. from link to project website in welcome pagenetworkException
The www subdomain does not allow http and as LibTLS currently has no cipher suite in common the request fails.
2021-07-04Browser: Add Test-Page for listsTobias Christiansen
This test page showcases all our supported ol and ul list-styles.
2021-06-06Browser: Add various test pages to welcomeTobias Christiansen
This adds test pages for border-radius, CSS custom properties and flexboxes to the default page in the Browser. I used those files to develop said features and they can be of use when debugging in the future or just to showcase those features.
2021-05-26Base: Add a WebAssembly mandelbrot demoAli Mohammad Pur
This is now good enough to make a showcase of :P
2021-05-26LibWeb: Implement a very basic WebAssembly JS APIAli Mohammad Pur
This impl is *extremely* simple, and is missing a lot of things, it's also not particularly spec-compliant in some places, but it's definitely a start :^)
2021-05-18LibGfx: Add support for DDS imagesstelar7
2021-05-17Base: Add boxes with multi-part border attributes to borders.htmlTimothy Flynn
2021-05-11Base: Add :nth-last-child test documentmiere43
2021-05-09Browser: Add :nth-child test documentmiere43
2021-04-25LibWeb: Add WebSocket bindingsDexesTTP
The WebSocket bindings match the original specification from the WHATWG living standard, but do not match the later update of the standard that involves FETCH. The FETCH update will be handled later since the changes would also affect XMLHttpRequest.
2021-04-22LibWeb+Base: Use AK::SourceGenerator for error pagesAndreas Kling
Instead of storing a format string in a file, let's be reasonable and use SourceGenerator's template functionality. :^)
2021-04-21LibWeb+Base: Convert String::format() to String::formatted()Andreas Kling
This error page template is slightly hilarious and should probably be replaced with AK::SourceGenerator or some such, but for now let's just get rid of the call to String::format().
2021-04-19Base: Add HTML test page for cursor & tableAdam Hodgen
This page is useful for testing the CSS 'cursor' property, as well as HTML tables
2021-04-16LibWeb: Impose a sane max cookie sizeTimothy Flynn
Drop cookies larger than 4KiB. This value is the RFC's recommendation: https://tools.ietf.org/html/rfc6265#section-6.1
2021-04-15Base: Update cookie test page to include unretrievable cookiesTimothy Flynn
"Unretrievable" meaning from JavaScript via document.cookie. They are settable though and may be viewed with the Dump Cookies command in the Browser.
2021-04-14LibWeb: Implement the CanvasRenderingContext2D::rect path methodIdan Horowitz
This method adds a rectangle to the current 2D path.
2021-04-14Browser: Respect the HttpOnly flag when storing cookiesTimothy Flynn
2021-04-13Base: Update cookie test page with cookies expected to be rejectedTimothy Flynn
2021-04-12Base: Update cookie test page to set some attributesTimothy Flynn