View
Posted about 8 years ago by Henning Koch.

When your Cucumber feature needs to browse the page HTML, and you are not sure how to express your query...

Posted over 1 year ago by Henning Koch. makandracards.com

In Spreewald 1.10.4+, nested patiently blocks are now patient. Here is an example: patiently do outer_code patiently do

Posted over 5 years ago by Arne Hartherz. jacklmoore.com

Elements will not inherit their parent's opacity in IE for no good reason. This can lead to unexpected behaviour...

Posted over 3 years ago by Henning Koch.

There are a million ways to center s or text in CSS, horizontally or vertically. All the ways are unsatisfying...

Posted almost 2 years ago by Emanuel De.

This cucumber step is useful for testing an image (looking at the src of the image). Then(/^I should see...

Posted over 6 years ago by Tobias Kraze.

Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...

Posted over 8 years ago by Henning Koch.

If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...

Posted almost 2 years ago by Dominik Schöler. geoffmuskett.com

wrap the text with a span use line-height for the spacing between lines ("margin")

Posted almost 2 years ago by Arne Hartherz.

When you print (or print preview) and elements are cut off (e.g. after 1st page, or "randomly") you should check...

Posted about 7 years ago by Ulrich Berkmueller. github.com

Internet Explorer until version 9 has some limitations when parsing CSS files Summarized, these are: Up to 31 CSS files...

Posted almost 2 years ago by Henning Koch.

By default, browsers will not wrap text at syllable boundaries. Text is wrapped at word boundaries only. This card explains...

Posted over 4 years ago by Henning Koch.

Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...

Posted about 4 years ago by Dominik Schöler. devdocs.io

All browsers + IE9 know the CSS :empty selector. It lets you hide an element when it has no content, i.e...

Posted about 2 years ago by Michael Leimstädtner.

If you are using PDFKit / wkhtmltopdf, you might as well want to use custom fonts in your stylesheets. Usually this...

Posted about 2 years ago by Henning Koch. reactarmory.com

The linked article shows how to exploit websites that include unsanitized user input in their CSS. Although the article often...

Posted about 2 years ago by Henning Koch. inclusive-components.design

Hack to implement an inverted "night mode" theme with a few lines of CSS. Colors in images are preserved.

Posted about 4 years ago by Dominik Schöler. csstriggers.com

I figure we needed a definitive reference for what work is triggered by changing various CSS properties. It's something...

Posted over 2 years ago by Henning Koch.

I needed to make sure that an element is visible and not overshadowed by an element that has a higher...

This website uses cookies to improve usability and analyze traffic.
Accept or learn more