|
Parse media attributes and CSSOM media text as media_query_list.
This is per HTML5 and CSSOM specifications.
This change makes the remaining fails in the W3C Media Queries test suite pass.
Some resulting changes:
- Brackets/parentheses balanced correctly.
- Queries split between correct commas.
- Spaces is an empty media query list like the empty string.
- Unexpected EOF like missing parentheses makes the query valid as per CSS21
spec.
- Syntax errors become "not all" as per CSSMQ spec.
- Renamed @-webkit-mediaquery to @-internal-mediaquery to be consistent with
other internal @-rules.
- Removed MediaQueryParserMode which is now the same for all MQ parsing.
BUG= 247657
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152218
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+55 lines, -113 lines) |
Patch |
|
M |
LayoutTests/fast/media/matchmedium-query-api.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
LayoutTests/fast/media/matchmedium-query-api-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
LayoutTests/fast/media/media-descriptor-syntax-06.html
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
LayoutTests/fast/media/media-descriptor-syntax-06-expected.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
LayoutTests/fast/media/media-query-list-01.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
LayoutTests/fast/media/media-query-list-01-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
LayoutTests/fast/media/mq-append-delete.html
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
LayoutTests/fast/media/mq-js-media-except-01.html
|
View
|
|
1 chunk |
+8 lines, -4 lines |
0 comments
|
Download
|
|
M |
LayoutTests/fast/media/mq-parsing-expected.txt
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/css/CSSGrammar.y.in
|
View
|
1
|
3 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
Source/core/css/CSSParser.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/css/CSSParser.cpp
|
View
|
1
|
2 chunks |
+10 lines, -12 lines |
0 comments
|
Download
|
|
M |
Source/core/css/MediaList.h
|
View
|
1
2
|
2 chunks |
+2 lines, -17 lines |
0 comments
|
Download
|
|
M |
Source/core/css/MediaList.cpp
|
View
|
1
2
|
4 chunks |
+14 lines, -59 lines |
0 comments
|
Download
|
Total messages: 13 (0 generated)
|