forked from LadybirdBrowser/ladybird
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Treat import rules as invalid if preceded by non-import rules
If an import statement is preceded by a valid rule that isn't an import rule or a @layer statement rule, it is now treated as invalid.
- Loading branch information
Showing
6 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
Tests/LibWeb/Ref/expected/wpt-import/css/CSS2/css1/c11-import-000-ref.xht
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
|
||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
|
||
<head> | ||
|
||
<title>CSS Reftest Reference</title> | ||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> | ||
|
||
<style type="text/css"><![CDATA[ | ||
p {color: green;} | ||
]]></style> | ||
|
||
</head> | ||
|
||
<body> | ||
|
||
<p>This text should be green.</p> | ||
|
||
<p>This text should be green.</p> | ||
|
||
<p>This text should be green.</p> | ||
|
||
<p>This text should be green.</p> | ||
|
||
</body> | ||
</html> |
29 changes: 29 additions & 0 deletions
29
Tests/LibWeb/Ref/input/wpt-import/css/CSS2/css1/c11-import-000.xht
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title>CSS Test: Basic Containment</title> | ||
<link rel="help" href="http://www.w3.org/TR/REC-CSS1#containment-in-html"/> | ||
<link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html"/> | ||
<link rel="author" title="Ian Hickson" href="mailto:[email protected]"/> | ||
<style type="text/css"><![CDATA[ | ||
@import url(support/a-green.css); | ||
@import "support/b-green.css"; | ||
.c { color: green; } | ||
@import url(support/c-red.css); | ||
<!-- .d { color: green; } --> | ||
]]></style> | ||
<link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#at-import" title="6.3 The @import rule"/> | ||
<link rel="help" href="http://www.w3.org/TR/css-cascade-3/#at-import"/> | ||
<link rel="help" href="http://www.w3.org/TR/css-cascade-4/#at-import"/> | ||
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#comments" title="4.1.9 Comments"/> | ||
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#uri" title="4.3.4 URLs and URIs"/> | ||
<link rel="match" href="../../../../../expected/wpt-import/css/CSS2/css1/c11-import-000-ref.xht" /> | ||
|
||
</head> | ||
<body> | ||
<p class="a">This text should be green.</p> | ||
<p class="b">This text should be green.</p> | ||
<p class="c">This text should be green.</p> | ||
<p class="d">This text should be green.</p> | ||
</body> | ||
</html> |
1 change: 1 addition & 0 deletions
1
Tests/LibWeb/Ref/input/wpt-import/css/CSS2/css1/support/a-green.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.a { color: green; } |
1 change: 1 addition & 0 deletions
1
Tests/LibWeb/Ref/input/wpt-import/css/CSS2/css1/support/b-green.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.b { color: green; } |
1 change: 1 addition & 0 deletions
1
Tests/LibWeb/Ref/input/wpt-import/css/CSS2/css1/support/c-red.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.c { color: red; } |