diff options
author | athenian200 <athenian200@outlook.com> | 2020-09-30 14:05:56 -0500 |
---|---|---|
committer | athenian200 <athenian200@outlook.com> | 2020-09-30 14:09:10 -0500 |
commit | b8c604196b1737c3a49041bc4dfd24355d8d392e (patch) | |
tree | 252a1344eee839f1cade3d3e6d7bb4ccff072ed7 /docs/Component docs/HTML Parser updates.md | |
parent | bc531bfbbaf0da9069b87b02d55190c80275e21b (diff) | |
download | UXP-b8c604196b1737c3a49041bc4dfd24355d8d392e.tar UXP-b8c604196b1737c3a49041bc4dfd24355d8d392e.tar.gz UXP-b8c604196b1737c3a49041bc4dfd24355d8d392e.tar.lz UXP-b8c604196b1737c3a49041bc4dfd24355d8d392e.tar.xz UXP-b8c604196b1737c3a49041bc4dfd24355d8d392e.zip |
Issue #1647 - Followup: Remove excessive VARIANT_OPACITY statements.
I got very anxious about making sure I included VARIANT_OPACITY in all the places VARIANT_NUMBER was included to make sure it couldn't possibly break unexpectedly, and that led to me accidentally breaking a mechanism that prevented percentages from serializing as numbers in other parts of the code. It was a total accident, and these additions were unnecessary. Basically, the situation is that there was one part of the code where it determines what's allowed for the flex statement (and possibly other statements) by checking whether it got stored as a "number", and basically only disallows percentages if it attempted to store/serialize them as percentages.
However, it only got to that part of the code because I accidentally allowed VARIANT_OPACITY as a valid way for certain tokens to parse where it wasn't necessary. If it tries to parse it that way under very specific circumstances... percentages will be marked valid and fed through the system as numbers rather than being rejected and not serialized at all, because the check to disallow percentages there relied on them being stored as percentages.
It's a really weird thing to have a problem with in a lot of ways, because if percentages aren't allowed in a field, you would think people wouldn't try to use them there, much less depend on the broken behavior that results from them not parsing as a related value.
Diffstat (limited to 'docs/Component docs/HTML Parser updates.md')
0 files changed, 0 insertions, 0 deletions