summaryrefslogtreecommitdiff
path: root/Base/res/html/misc
AgeCommit message (Collapse)Author
2022-07-18Base: Add some more fun gradient demosMacDue
Adds tests for: - Multi-stop gradient at arbitrary angles (CPU brr) - Default/calculated color stops - to <corner> - Pre-multiplied alpha mixing
2022-07-17Base: Add simple gradients test pageMacDue
2022-07-04Base: Example of border-radius on iframe and canvas elementsMacDue
2022-07-04Base: Add some border-radius + overflow: hidden HTML examplesMacDue
2022-07-04Base: Move fun canvas demo JavaScript to seperate fileMacDue
This will allow this demo to be reused for other tests.
2022-07-04Base: Add some background-clip + border-radius HTML examplesMacDue
2022-06-30Base: Add example for `calc(<percentage> - <length>)` to calc.htmlLinus Groh
`calc(<percentage> + -<length>)` did work before, but a direct `calc(<percentage> - <length>)` was broken. Let's have a test for both.
2022-06-30Base: Fix label/actual style mismatches in calc.htmlLinus Groh
2022-06-29LibWeb: Use CSO if running script is null in HostPromiseRejectionTrackerLuke Wilde
2022-06-26Base+Browser+BrowserSettings: Add default page for new tabXexxa
2022-06-23Base: Add box-shadow + border-radius HTML examplesMacDue
This now also shows the same box-shadows on the right on top of a background to test the clipping underneath the content.
2022-06-18Base: Optimize a bunch of PNGskleines Filmröllchen
These all save at least a couple of kilobytes.
2022-06-16Base: Add <img> tag + border-radius HTML exampleMacDue
2022-06-16Base: Add background-image + border-radius HTML examplesMacDue
2022-06-15LibWeb: Test parsing of CSS Level 4 rgb and hsl syntaxThomas Fach-Pedersen
2022-06-14Base: Add an elliptical outline border HTML exampleMacDue
2022-06-13LibWeb: Add ability to present LibGL framebuffer and add clearingLuke Wilde
2022-06-13Base: Add some elliptical border radius HTML examplesMacDue
2022-06-05LibWeb: Dispatch mouse events to topmost element instead of hit targetkleines Filmröllchen
This improves our spec compliance by allowing the user to click non-element nodes (like text) and having the click be registered with the parent element (like a div or button). This makes Fandom's cookie accept button work if you click the text. Additionally, the events test page contains a test to check the target element, which would previously not exist when we fired the event at a non-element.
2022-06-02LibWeb: Check recursively if CSS functions contain `var()` or `attr()`Karol Kosek
Previously, `var()` inside functions like `rgb()` wasn't resolved. This will set the background color for badges in the New category on https://ports.serenityos.net. :^)
2022-05-28Base: Add test page for Web Storage APIRafał Babiarz
2022-04-14LibWeb: Allow multiple text-decoration-linesSam Atkins
The spec grammar for `text-decoration-line` is: `none | [ underline || overline || line-through || blink ]` Which means that it's either `none`, or any combination of the other values. This patch makes that parse for `text-decoration-line` and `text-decoration`, stores the results as a Vector, and adjusts `paint_text_decoration()` to run as a loop over all the values that are provided. As noted, storing a Vector of values is a bit wasteful, as they could be stored as flags in a single `u8`. But I was getting too confused trying to do that in a nice way.
2022-04-09Base: Add a test page for CSS font-faceSimon Wanner
2022-04-02LibWeb: Implement flex reverse layoutsEnver Balalic
This builds on the work done by implementing the flex order CSS property and implements flex reverse layouts by just reversing the order and the items within each order bucket.
2022-04-02LibWeb: Implement the flex order CSS propertyEnver Balalic
Adds support for the flex order property and a test page for it on the browser welcome page.
2022-03-31Base: Add a <noscript> test pageLinus Groh
2022-03-30LibWeb: Fix sizing of flex child that has flex-basis 0Enver Balalic
Before if an element didn't have a main min size we would clamp it to a literal zero. If that element also had a flex-basis 0 it's width would end up being 0. This patch adds a determine_min_main_size_of_child function that will calculate the minimum main size for the box based on the content of the box. We use the result of that function now instead of clamping the element main min size to 0. This also adds one more box to the flex.html test page, which is the same flex: 0 0 0 box but with flex-direction: column.
2022-03-29LibWeb: More tests for attribute selectorsDaniel Glazman
2022-03-26Base: Add inline properties to custom-properties test pageKarol Kosek
2022-03-24LibWeb: Support CSS vertical-align values "top" and "bottom"Andreas Kling
2022-03-24LibWeb+Base: Fix `An+B of foo` parsingSam Atkins
When I wrote the An+B parser, it was guaranteed to have no non-whitespace tokens after it. This is no longer true with the `of foo` syntax, so this patch corrects the logic when there is no `+B` segment. This makes this case shown on Twitter work correctly. :^) https://twitter.com/simevidas/status/1506657566012678151
2022-03-24Base: Add a text-shadow test pageSam Atkins
2022-03-22Base: Add a test page for CSS transformsSimon Wanner
This also acts as a little stress test for flexbox layout :^)
2022-03-20Base: Add a :focus/:focus-within test pageSam Atkins
2022-03-18LibWeb: Add some default style for <textarea> elements and a testDaniel Lemos
2022-03-18Base: Add `of foo` tests to nth-child and nth-last-child test pagesSam Atkins
Also split the selector-list up for easier debugging.
2022-03-18Base: Add a test page for the CSS :where() selectorSam Atkins
This behaves identically to :is() except for specificity, so this test page is identical to the other one. It's not because I'm lazy. :^)
2022-03-18Base: Add nested lists to list test-pageSam Atkins
2022-03-18Base: Correct the :not() test page's titleSam Atkins
Oops!
2022-03-18Base: Add a test page for the CSS :is() selectorSam Atkins
2022-03-14LibWeb: Invalidate styles after CSSImportRule loadsSimon Wanner
This replicates the behavior of StyleSheetList::add_sheet, making sure the rules added by the imported style sheet are applied.
2022-03-07Base: Add ratio tests to media-query test pageSam Atkins
Note that only the first test actually functions currently. Single-number ratios instead get parsed as a `<number>`, and will do until the parser gets smarter. (The alternative, where all single-numbers get parsed as `<ratio>`, does make the tests succeed, but numbers are more common than ratios so I have given numbers preference for now.) Also simplified the styling and text a bit. Now, red = fail, green = success. No more "unstyled = fail" stuff.
2022-03-04Base: Replace setInterval test page with a more thorough timer test pageTimothy Flynn
Ensure we test both setTimeout and setInterval (and their cancellation methods), and test scenarios such as raising exceptions in the callback, passing extra arguments, etc.
2022-03-02LibWeb: Correct handling of negative step values in nth-foo() selectorsSam Atkins
This should be 1% on Acid3. :^) Added the `-5n+3` case to all `nth-of-whatever()` selector test pages, so we can easily check that it works.
2022-03-01Base: Remove my copyright from this HTML fileSam Atkins
I didn't notice that CLion had auto-generated this, oops! As wonderful as my web design skills are, I don't actually want to enshrine my name at the top of this file for posterity.
2022-02-28Base: Make it obvious which pseudo-element tests are unimplementedSam Atkins
(Sorry Linus!)
2022-02-26Base: Add :nth-of-type and :nth-last-of-type test pagesSam Atkins
2022-02-25fixup! Base: Add a pseudo-element test pageSam Atkins
2022-02-25Base: Add a pseudo-element test pageSam Atkins
2022-02-20LibWeb+Base: Parse font-style CSS propertyKarol Kosek