зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1639664 - Allow 'opacity' on ::first-letter/::first-line pseudos. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D76387
This commit is contained in:
Родитель
9725d351de
Коммит
7d8f8a5007
|
@ -6754,6 +6754,8 @@ var gCSSProperties = {
|
|||
domProp: "opacity",
|
||||
inherited: false,
|
||||
type: CSS_TYPE_LONGHAND,
|
||||
applies_to_first_letter: true,
|
||||
applies_to_first_line: true,
|
||||
applies_to_placeholder: true,
|
||||
applies_to_cue: true,
|
||||
initial_values: [
|
||||
|
|
|
@ -688,6 +688,7 @@ class PropertyRestrictions:
|
|||
def first_letter(data):
|
||||
props = set([
|
||||
"color",
|
||||
"opacity",
|
||||
"float",
|
||||
"initial-letter",
|
||||
|
||||
|
@ -722,6 +723,7 @@ class PropertyRestrictions:
|
|||
props = set([
|
||||
# Per spec.
|
||||
"color",
|
||||
"opacity",
|
||||
|
||||
# Kinda like css-fonts?
|
||||
"-moz-osx-font-smoothing",
|
||||
|
|
|
@ -18,9 +18,6 @@
|
|||
[margin should be applied to first-letter pseudo elements.]
|
||||
expected: FAIL
|
||||
|
||||
[opacity should be applied to first-letter pseudo elements.]
|
||||
expected: FAIL
|
||||
|
||||
[padding should be applied to first-letter pseudo elements.]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Reference mismatch: ::first-letter supports opacity.</title>
|
||||
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1639664">
|
||||
</head>
|
||||
<body>
|
||||
<p>First</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Reference: ::first-letter supports opacity.</title>
|
||||
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1639664">
|
||||
<link rel="mismatch" href="first-letter-opacity-001-not-ref.html">
|
||||
<style>
|
||||
fl {
|
||||
opacity: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p><fl>F</fl>irst</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Test: ::first-letter supports opacity.</title>
|
||||
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1639664">
|
||||
<link rel="match" href="first-letter-opacity-001-ref.html">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-letter-styling">
|
||||
<style>
|
||||
p::first-letter {
|
||||
opacity: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>First</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Reference mismatch: ::first-line supports opacity.</title>
|
||||
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1639664">
|
||||
</head>
|
||||
<body>
|
||||
<p>First<br>Second</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Reference: ::first-line supports opacity.</title>
|
||||
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1639664">
|
||||
<link rel="mismatch" href="first-line-opacity-001-not-ref.html">
|
||||
<style>
|
||||
fl {
|
||||
opacity: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p><fl>First</fl><br>Second</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Test: ::first-line supports opacity.</title>
|
||||
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1639664">
|
||||
<link rel="match" href="first-line-opacity-001-ref.html">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-styling">
|
||||
<style>
|
||||
p::first-line {
|
||||
opacity: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>First<br>Second</p>
|
||||
</body>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче