haikuwebkit/LayoutTests/fast/css/link-alternate-stylesheet-2...

19 lines
602 B
Plaintext
Raw Permalink Normal View History

Alternate stylesheets (without title attribute) are loaded on refresh https://bugs.webkit.org/show_bug.cgi?id=24354 Patch by Dave Tharp <dtharp@codeaurora.org> on 2012-03-13 Reviewed by David Hyatt. Source/WebCore: Alternate stylesheets are now ignored in <link> tags if they have no title attribute (per spec). Tests: fast/css/link-alternate-stylesheet-1.html fast/css/link-alternate-stylesheet-2.html fast/css/link-alternate-stylesheet-3.html fast/css/link-alternate-stylesheet-4.html fast/css/link-alternate-stylesheet-5.html * dom/Document.cpp: (WebCore::Document::collectActiveStylesheets): LayoutTests: Addapted alternate stylesheet tests from http://robballou.com/switcher/sandbox/alternate1.php * fast/css/link-alternate-stylesheet-1-expected.txt: Added. * fast/css/link-alternate-stylesheet-1.html: Added. * fast/css/link-alternate-stylesheet-2-expected.txt: Added. * fast/css/link-alternate-stylesheet-2.html: Added. * fast/css/link-alternate-stylesheet-3-expected.txt: Added. * fast/css/link-alternate-stylesheet-3.html: Added. * fast/css/link-alternate-stylesheet-4-expected.txt: Added. * fast/css/link-alternate-stylesheet-4.html: Added. * fast/css/link-alternate-stylesheet-5-expected.txt: Added. * fast/css/link-alternate-stylesheet-5.html: Added. * fast/css/resources/basic.css: Added. (body): (code): (#source): * fast/css/resources/high.css: Added. (body): (h1): * fast/css/resources/normal.css: Added. (body): (h1): * fast/css/resources/small.css: Added. (body): Canonical link: https://commits.webkit.org/98202@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@110626 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-03-13 22:40:16 +00:00
Alternate stylesheet (link) title test 2
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS getComputedStyle(element).getPropertyValue('text-decoration') is 'underline'
PASS getComputedStyle(element).getPropertyValue('font-size') is '12px'
PASS getComputedStyle(document.body).getPropertyValue('border-top-color') is 'rgb(0, 128, 0)'
PASS successfullyParsed is true
TEST COMPLETE
Alternate stylesheets
This document has 3 stylesheets, with 1 alternate stylesheet without title. It should:
Have a green border at the top of the page
An underlined H1
12px text