Style tests

Attributes

[disabled]

Should have default cursor style.

[hidden]

The root element

html

Should have sans-serif font.
Should keep text size after orientation change.

Document metadata

head

title

base

link

meta

style

Sections

body

article

section

nav

aside

h1

h2

h3

h4

h5

h6

header

footer

address

Grouping content

p

hr


pre

Should contain overflow. Should contain overflow. Should contain overflow. Should contain overflow. Should contain overflow. Should contain overflow. Should contain overflow. Should contain overflow. Should contain overflow. Should contain overflow. Should contain overflow. Should contain overflow. Should contain overflow. Should contain overflow. Should contain overflow. Should contain overflow.

blockquote

ol

    ul

    li

    dl

    dt

    dd

    figure

    figcaption

    div

    main

    Text-level semantics

    a

    Should have blue foreground color.
    Should have underline.

    a:active

    Should have no background color.
    Should have red foreground color.
    Should have no outline.

    a:hover

    Should have no outline.

    a:visited

    Should have purple foreground color.

    em

    strong

    small

    Should have small font size equivalent to ancestor’s x-height.

    s

    cite

    q

    Should be surrounded by smart quotes.

    dfn

    abbr

    Should have no underline.

    abbr[title]

    Should have dotted underline.

    data

    time

    code

    var

    samp

    kbd

    sub

    X3 x3

    sup

    X3 x3

    i

    b

    u

    mark

    Should have yellow background color.
    Should have black foreground color.

    ruby

    rb

    rt

    rtc

    rp

    bdi

    bdo

    span

    br

    wbr

    Edits

    ins

    del

    Embedded content

    img

    Should have no border.

    iframe

    Should have no border.

    embed

    object

    param

    video

    audio

    audio:not([controls])

    source

    track

    map

    area

    svg

    Should render no overflow.

    Tabular data

    table

    Should render borders collapsed when visible.
    Should have no space between cells.
    Should render with least width.

    caption

    Should align content at left.

    colgroup

    col

    tbody

    thead

    tfoot

    tr

    td

    Should have no padding.

    th

    Should have no padding.
    Should align content at left.

    Forms

    form

    label

    input[type="hidden"]

    input[type="text"]

    text

    input[type="search"]

    search

    input[type="tel"]

    0123-4567-89AB

    input[type="url"]

    https://example.com

    input[type="email"]

    email@example.com

    input[type="password"]

    password

    input[type="date"]

    date

    input[type="time"]

    01:23:45

    input[type="number"]

    0123456789

    input[type="range"]

    range

    input[type="color"]

    color

    input[type="checkbox"]

    Should have no margin and padding.
    checkbox

    input[type="radio"]

    Should have no margin and padding.
    radio

    input[type="file"]

    file

    input[type="submit"]

    submit

    input[type="image"]

    Should render on line bottom.
    image

    input[type="reset"]

    reset

    input[type="button"]

    button

    button

    button
    Should ignore ancestor’s text-transform style.
    button

    select

    Should have no margin.
    select
    Should ignore ancestor’s text-transform style.
    select

    datalist

    optgroup

    Should have no margin.
    optgroup

    option

    option

    textarea

    textarea

    keygen

    output

    progress

    progress

    meter

    meter

    fieldset

    Should have no border.

    legend

    Should render with least width.

    Scripting

    script

    noscript

    template

    canvas