зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1237633 - Part 1: Percentages are not allowed in a <source-size-value>. r=jdm
MozReview-Commit-ID: E7XUZzq3jr1 --HG-- extra : rebase_source : 3eb2c291658b481b6305912da1314b2435369520 extra : histedit_source : 5eec35e16eb10beaed74968500b9735e1d196e72
This commit is contained in:
Родитель
90aa942f6f
Коммит
0412b0b8c4
|
@ -2136,7 +2136,10 @@ CSSParserImpl::ParseSourceSizeList(const nsAString& aBuffer,
|
|||
query->SetNegated();
|
||||
}
|
||||
|
||||
if (ParseNonNegativeVariant(value, VARIANT_LPCALC, nullptr) !=
|
||||
// https://html.spec.whatwg.org/multipage/embedded-content.html#source-size-value
|
||||
// Percentages are not allowed in a <source-size-value>, to avoid
|
||||
// confusion about what it would be relative to.
|
||||
if (ParseNonNegativeVariant(value, VARIANT_LCALC, nullptr) !=
|
||||
CSSParseResult::Ok) {
|
||||
hitError = true;
|
||||
break;
|
||||
|
|
|
@ -168,18 +168,12 @@
|
|||
[<img srcset="/images/green-1x1.png?e109 50w, /images/green-16x16.png?e109 51w" sizes="not ((max-width:0) or (unknown "general-enclosed")) 100vw, 1px"> ref sizes="1px" (standards mode)]
|
||||
expected: FAIL
|
||||
|
||||
[<img srcset="/images/green-1x1.png?f6 50w, /images/green-16x16.png?f6 51w" sizes="0.1%"> ref sizes="100vw" (standards mode)]
|
||||
expected: FAIL
|
||||
|
||||
[<img srcset="/images/green-1x1.png?f33 50w, /images/green-16x16.png?f33 51w" sizes="1px !important"> ref sizes="100vw" (standards mode)]
|
||||
expected: FAIL
|
||||
|
||||
[<img srcset="/images/green-1x1.png?f42 50w, /images/green-16x16.png?f42 51w" sizes="(min-width:0) 1px foo bar"> ref sizes="100vw" (standards mode)]
|
||||
expected: FAIL
|
||||
|
||||
[<img srcset="/images/green-1x1.png?f43 50w, /images/green-16x16.png?f43 51w" sizes="(min-width:0) 0.1%"> ref sizes="100vw" (standards mode)]
|
||||
expected: FAIL
|
||||
|
||||
[<img srcset="/images/green-1x1.png?f48 50w, /images/green-16x16.png?f48 51w" sizes="calc(1px"> ref sizes="100vw" (standards mode)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -354,18 +348,12 @@
|
|||
[<img srcset="/images/green-1x1.png?e109 50w, /images/green-16x16.png?e109 51w" sizes="not ((max-width:0) or (unknown "general-enclosed")) 100vw, 1px"> ref sizes="1px" (quirks mode)]
|
||||
expected: FAIL
|
||||
|
||||
[<img srcset="/images/green-1x1.png?f6 50w, /images/green-16x16.png?f6 51w" sizes="0.1%"> ref sizes="100vw" (quirks mode)]
|
||||
expected: FAIL
|
||||
|
||||
[<img srcset="/images/green-1x1.png?f33 50w, /images/green-16x16.png?f33 51w" sizes="1px !important"> ref sizes="100vw" (quirks mode)]
|
||||
expected: FAIL
|
||||
|
||||
[<img srcset="/images/green-1x1.png?f42 50w, /images/green-16x16.png?f42 51w" sizes="(min-width:0) 1px foo bar"> ref sizes="100vw" (quirks mode)]
|
||||
expected: FAIL
|
||||
|
||||
[<img srcset="/images/green-1x1.png?f43 50w, /images/green-16x16.png?f43 51w" sizes="(min-width:0) 0.1%"> ref sizes="100vw" (quirks mode)]
|
||||
expected: FAIL
|
||||
|
||||
[<img srcset="/images/green-1x1.png?f48 50w, /images/green-16x16.png?f48 51w" sizes="calc(1px"> ref sizes="100vw" (quirks mode)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -540,18 +528,12 @@
|
|||
[<img srcset="/images/green-1x1.png?e109 50w, /images/green-16x16.png?e109 51w" sizes="not ((max-width:0) or (unknown "general-enclosed")) 100vw, 1px"> ref sizes="1px" (display:none)]
|
||||
expected: FAIL
|
||||
|
||||
[<img srcset="/images/green-1x1.png?f6 50w, /images/green-16x16.png?f6 51w" sizes="0.1%"> ref sizes="100vw" (display:none)]
|
||||
expected: FAIL
|
||||
|
||||
[<img srcset="/images/green-1x1.png?f33 50w, /images/green-16x16.png?f33 51w" sizes="1px !important"> ref sizes="100vw" (display:none)]
|
||||
expected: FAIL
|
||||
|
||||
[<img srcset="/images/green-1x1.png?f42 50w, /images/green-16x16.png?f42 51w" sizes="(min-width:0) 1px foo bar"> ref sizes="100vw" (display:none)]
|
||||
expected: FAIL
|
||||
|
||||
[<img srcset="/images/green-1x1.png?f43 50w, /images/green-16x16.png?f43 51w" sizes="(min-width:0) 0.1%"> ref sizes="100vw" (display:none)]
|
||||
expected: FAIL
|
||||
|
||||
[<img srcset="/images/green-1x1.png?f48 50w, /images/green-16x16.png?f48 51w" sizes="calc(1px"> ref sizes="100vw" (display:none)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -726,18 +708,12 @@
|
|||
[<img srcset="/images/green-1x1.png?e109 50w, /images/green-16x16.png?e109 51w" sizes="not ((max-width:0) or (unknown "general-enclosed")) 100vw, 1px"> ref sizes="1px" (width:1000px)]
|
||||
expected: FAIL
|
||||
|
||||
[<img srcset="/images/green-1x1.png?f6 50w, /images/green-16x16.png?f6 51w" sizes="0.1%"> ref sizes="100vw" (width:1000px)]
|
||||
expected: FAIL
|
||||
|
||||
[<img srcset="/images/green-1x1.png?f33 50w, /images/green-16x16.png?f33 51w" sizes="1px !important"> ref sizes="100vw" (width:1000px)]
|
||||
expected: FAIL
|
||||
|
||||
[<img srcset="/images/green-1x1.png?f42 50w, /images/green-16x16.png?f42 51w" sizes="(min-width:0) 1px foo bar"> ref sizes="100vw" (width:1000px)]
|
||||
expected: FAIL
|
||||
|
||||
[<img srcset="/images/green-1x1.png?f43 50w, /images/green-16x16.png?f43 51w" sizes="(min-width:0) 0.1%"> ref sizes="100vw" (width:1000px)]
|
||||
expected: FAIL
|
||||
|
||||
[<img srcset="/images/green-1x1.png?f48 50w, /images/green-16x16.png?f48 51w" sizes="calc(1px"> ref sizes="100vw" (width:1000px)]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче