-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LibWeb: Treat import rules as invalid if preceded by non-import rules #3283
Draft
tcl3
wants to merge
1
commit into
LadybirdBrowser:master
Choose a base branch
from
tcl3:libweb_invalid_import_rules
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+78
−0
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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; } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This FIXME isn't necessary. It's confusing, but
@charset
is a weird beast that isn't actually an at-rule that shows up in the CSSOM. https://drafts.csswg.org/css-syntax/#charset-ruleThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...there are order-requirements for
@namespace
though, and I think some others.